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

Solved a bug when updating the start position of a ParamPoly3 geometry.

parent 1ef3ee18
No related branches found
No related tags found
1 merge request!2Solved a bug when creating a new geometry object: the sale factor is...
...@@ -942,8 +942,13 @@ COpendriveRoadSegment *COpendriveRoadSegment::get_sub_segment(node_up_ref_t &new ...@@ -942,8 +942,13 @@ COpendriveRoadSegment *COpendriveRoadSegment::get_sub_segment(node_up_ref_t &new
new_pose.x=new_point.x; new_pose.x=new_point.x;
new_pose.y=new_point.y; new_pose.y=new_point.y;
new_pose.heading=new_point.heading; new_pose.heading=new_point.heading;
geom_it->opendrive->set_start_pose(new_pose); if(geom_it->opendrive->get_name()=="Parametric polynomial 3th degree")
geom_it->opendrive->set_max_s(geom_it->opendrive->get_max_s()-length); ((COpendriveParamPoly3 *)geom_it->opendrive)->set_start_pose(new_pose,geom_it->opendrive->get_max_s()-length);
else
{
geom_it->opendrive->set_start_pose(new_pose);
geom_it->opendrive->set_max_s(geom_it->opendrive->get_max_s()-length);
}
break; break;
} }
else else
......
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