From 62444a74b7b8023c05dc6056c43b1f4b9dc3790f Mon Sep 17 00:00:00 2001 From: Sergi Hernandez Juan <shernand@iri.upc.edu> Date: Wed, 4 Oct 2023 18:51:24 +0200 Subject: [PATCH] For the map topic, generate the lane geometry instead of the segment one. --- src/opendrive_planner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opendrive_planner.cpp b/src/opendrive_planner.cpp index 72bdbdf..5c16cde 100644 --- a/src/opendrive_planner.cpp +++ b/src/opendrive_planner.cpp @@ -175,7 +175,7 @@ void OpendriveGlobalPlanner::create_opendrive_map(std::string &filename,double r this->full_path_.header.stamp = ros::Time::now(); this->full_path_.info.map_load_time = ros::Time::now(); this->full_path_.info.resolution = resolution; - road.get_segment_geometry(x,y,heading); + road.get_lane_geometry(x,y,heading); for(unsigned int i=0;i<x.size();i++) { if(x[i]>max_x) -- GitLab