Removing spaces

This commit is contained in:
bernat 2021-07-20 20:30:50 +02:00
parent 71102a2336
commit 76a51b9010
3 changed files with 4 additions and 5 deletions
LibCarla/source/carla/client
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Server

View File

@ -16,7 +16,7 @@
namespace carla {
namespace client {
static auto MakeMap(const std::string &opendrive_contents) {
auto stream = std::istringstream(opendrive_contents);
auto map = opendrive::OpenDriveParser::Load(stream.str());
@ -29,7 +29,6 @@ namespace client {
Map::Map(rpc::MapInfo description, std::string xodr_content)
: _description(std::move(description)),
_map(MakeMap(xodr_content)){}
Map::Map(std::string name, std::string xodr_content)
: Map(rpc::MapInfo{

View File

@ -172,7 +172,7 @@ namespace detail {
_open_drive_file = _client.GetMapData();
_cached_map = MakeShared<Map>(map_info, _open_drive_file);
}
return _cached_map;
}

View File

@ -374,7 +374,7 @@ void FCarlaServer::FPimpl::BindActions()
if (folder[folder.size() - 1] != '/' && folder[folder.size() - 1] != '\\') {
folder += "/";
}
// Get the map's folder absolute path and check if it's in its own folder
const auto mapDir = FPaths::GetPath(UCarlaStatics::GetGameInstance(Episode->GetWorld())->GetMapPath());
const auto folderDir = mapDir + "/" + folder.c_str();
@ -394,7 +394,7 @@ void FCarlaServer::FPimpl::BindActions()
return result;
};
BIND_SYNC(request_file) << [this](std::string name) -> R<std::vector<uint8_t>>
{
REQUIRE_CARLA_EPISODE();