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

Used the desired resolution when getting a node at a desired location.

parent e91e16ab
No related branches found
No related tags found
1 merge request!2Solved a bug when creating a new geometry object: the sale factor is...
......@@ -883,7 +883,7 @@ COpendriveRoadNode* COpendriveRoad::get_node_at(TOpendriveWorldPose &pose)
for(unsigned int i=0;i<nodes.size();i++)
{
node_pose=this->nodes[i]->get_pose();
if(std::abs(pose.x-node_pose.x)<0.01 && std::abs(pose.y-node_pose.y)<0.01)
if(std::abs(pose.x-node_pose.x)<this->resolution && std::abs(pose.y-node_pose.y)<this->resolution)
return this->nodes[i];
}
......
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