Skip to content
Snippets Groups Projects
Commit 910decae authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Updated the example with the new changes in the library API.

parent adc944db
No related branches found
No related tags found
1 merge request!2Solved a bug when creating a new geometry object: the sale factor is...
...@@ -9,7 +9,7 @@ int main(int argc, char *argv[]) ...@@ -9,7 +9,7 @@ int main(int argc, char *argv[])
// TOpendriveWorldPose closest_pose; // TOpendriveWorldPose closest_pose;
std::vector<double> x,y; std::vector<double> x,y;
COpendriveRoad road,new_road,new_road2; COpendriveRoad road,new_road,new_road2;
std::vector<unsigned int> path; std::vector<unsigned int> path,new_path;
TOpendriveWorldPose end_pose,start_pose; TOpendriveWorldPose end_pose,start_pose;
double length=5.0; double length=5.0;
std::string xml_file="/home/shernand/iri-lab/adc_ws/code/autonomous_driving_tools/src/xml/add.xodr"; std::string xml_file="/home/shernand/iri-lab/adc_ws/code/autonomous_driving_tools/src/xml/add.xodr";
...@@ -162,8 +162,8 @@ int main(int argc, char *argv[]) ...@@ -162,8 +162,8 @@ int main(int argc, char *argv[])
end_pose.y=2.2; end_pose.y=2.2;
end_pose.heading=3.14159; end_pose.heading=3.14159;
length=100.0; length=100.0;
road.get_sub_road(path,end_pose,new_road); new_path=road.get_sub_road(path,end_pose,new_road);
new_road.get_sub_road(start_pose,end_pose,length,1.0,new_road2); new_path=new_road.get_sub_road(start_pose,end_pose,length,1.0,new_road2,new_path);
// std::cout << "road3" << std::endl; // std::cout << "road3" << std::endl;
// std::cout << new_road << std::endl; // std::cout << new_road << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment