Browse Source

change odtolanelet, set default velocity to 10.

yuchuli 1 year ago
parent
commit
5b1ce6315a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/map/odtolanelet/odtolanelet.cpp

+ 2 - 2
src/map/odtolanelet/odtolanelet.cpp

@@ -388,7 +388,7 @@ void odtolanelet::linetolet(lanelet::LaneletMapPtr & laneletMap,std::vector<lane
         xlet.setAttribute("odr:lane",lanelet::Attribute(static_cast<int>(ncenterlane-i) ));
         xlet.setAttribute("odr:lane",lanelet::Attribute(static_cast<int>(ncenterlane-i) ));
         xlet.setAttribute("location",lanelet::Attribute("urban"));
         xlet.setAttribute("location",lanelet::Attribute("urban"));
         xlet.setAttribute("one_way",lanelet::Attribute("yes"));
         xlet.setAttribute("one_way",lanelet::Attribute("yes"));
-        xlet.setAttribute("speed_limit",lanelet::Attribute("30"));
+        xlet.setAttribute("speed_limit",lanelet::Attribute("10"));
         xlet.setAttribute("subtype",lanelet::Attribute("road"));
         xlet.setAttribute("subtype",lanelet::Attribute("road"));
         xlet.setAttribute("turn_direction",lanelet::Attribute("straight"));
         xlet.setAttribute("turn_direction",lanelet::Attribute("straight"));
         RoadTurnDirection::TURNDIRECTION xturn;
         RoadTurnDirection::TURNDIRECTION xturn;
@@ -410,7 +410,7 @@ void odtolanelet::linetolet(lanelet::LaneletMapPtr & laneletMap,std::vector<lane
         xlet.setAttribute("odr:lane",lanelet::Attribute(static_cast<int>(i-ncenterlane+1) *(-1)));
         xlet.setAttribute("odr:lane",lanelet::Attribute(static_cast<int>(i-ncenterlane+1) *(-1)));
         xlet.setAttribute("location",lanelet::Attribute("urban"));
         xlet.setAttribute("location",lanelet::Attribute("urban"));
         xlet.setAttribute("one_way",lanelet::Attribute("yes"));
         xlet.setAttribute("one_way",lanelet::Attribute("yes"));
-        xlet.setAttribute("speed_limit",lanelet::Attribute("30"));
+        xlet.setAttribute("speed_limit",lanelet::Attribute("10"));
         xlet.setAttribute("subtype",lanelet::Attribute("road"));
         xlet.setAttribute("subtype",lanelet::Attribute("road"));
         xlet.setAttribute("turn_direction",lanelet::Attribute("straight"));
         xlet.setAttribute("turn_direction",lanelet::Attribute("straight"));
         RoadTurnDirection::TURNDIRECTION xturn;
         RoadTurnDirection::TURNDIRECTION xturn;