coincar-sim / lanelet_rviz_plugin_ros

BSD 3-Clause "New" or "Revised" License
32 stars 11 forks source link

display some points in lanelet map #8

Closed xiaozhi12345678 closed 5 years ago

xiaozhi12345678 commented 5 years ago

Hi,I want to display some points which are on the centerline in my lanelet map,I use “BasicPoint3d point=p1.forward(centerline_point);”,I send point to rviz use geometry_msgs::Point,but the point in rviz is not on the lanelet centerline,it is far away from the map.Is there something wrong?

m-naumann commented 5 years ago

The lanelet map internally stores all the data in Cartesian coordinates using the Projection that you determined while loading the map.

Can you share all relevant parts of the code? What is centerline_point and p1? Actually the whole centerline should consist of ConstPoint3d, so you can transform that into geometry_msgs::Point straight away.