diff --git a/LibCarla/source/carla/opendrive/parser/ObjectParser.cpp b/LibCarla/source/carla/opendrive/parser/ObjectParser.cpp index a2b43e846..04150a02a 100644 --- a/LibCarla/source/carla/opendrive/parser/ObjectParser.cpp +++ b/LibCarla/source/carla/opendrive/parser/ObjectParser.cpp @@ -19,17 +19,17 @@ namespace parser { void ObjectParser::Parse( const pugi::xml_document &xml, carla::road::MapBuilder &map_builder) { - + std::vector points; - + for (pugi::xml_node node_road : xml.child("OpenDRIVE").children("road")) { - // parse all objects + // parse all objects pugi::xml_node node_objects = node_road.child("objects"); if (node_objects) { for (pugi::xml_node node_object : node_objects.children("object")) { - + // type Crosswalk std::string type = node_object.attribute("type").as_string(); if (type == "crosswalk") { @@ -47,7 +47,7 @@ namespace parser { // get road id road::RoadId road_id = node_road.attribute("id").as_uint(); road::Road *road = map_builder.GetRoad(road_id); - + // create the object map_builder.AddRoadObjectCrosswalk(road, node_object.attribute("name").as_string(), @@ -65,7 +65,7 @@ namespace parser { } } } - } + } } } // namespace parser } // namespace opendrive diff --git a/LibCarla/source/carla/road/Map.cpp b/LibCarla/source/carla/road/Map.cpp index f585f3587..74b4600b6 100644 --- a/LibCarla/source/carla/road/Map.cpp +++ b/LibCarla/source/carla/road/Map.cpp @@ -108,7 +108,7 @@ namespace road { const T container, const double s, const LaneId lane_id) { - + // lane_id can't be 0 RELEASE_ASSERT(lane_id != 0); @@ -261,7 +261,7 @@ namespace road { float lane_width = 0.0f; float lane_tangent = 0.0f; - + if (waypoint.lane_id < 0) { // right lane const auto side_lanes = MakeListView( @@ -415,7 +415,7 @@ namespace road { pivot.TransformPoint(v2); result.push_back(v2); } - } + } } } return result; diff --git a/LibCarla/source/carla/road/MapBuilder.cpp b/LibCarla/source/carla/road/MapBuilder.cpp index 86740b1a3..9dab1124b 100644 --- a/LibCarla/source/carla/road/MapBuilder.cpp +++ b/LibCarla/source/carla/road/MapBuilder.cpp @@ -86,7 +86,7 @@ namespace road { const double t, const double zOffset, const double hdg, - const double pitch, + const double pitch, const double roll, const std::string orientation, const double width,