Robotics StackExchange | Archived questions

How can we convert LIDAR scan data to cartesian coordinates (x,y).

How can we convert LIDAR scan data to cartesian coordinates (x,y)and make square on rviz with the help of turtlebot3 in cpp.

Asked by Robomaker on 2021-06-04 01:54:28 UTC

Comments

Answers

See this answer on how to convert a laser scan into a point cloud: https://answers.ros.org/question/11232/how-to-turn-laser-scan-to-point-cloud-map/

Asked by Martin Günther on 2021-06-04 07:29:30 UTC

Comments

Thanks for your reply which helps me a lot, But i want to make a rectangle around robot with respect to base_footprint.

Asked by Robomaker on 2021-06-04 08:18:21 UTC

So you want to filter out a rectangle from the laser scans? In that case, look at http://wiki.ros.org/laser_filters#LaserScanBoxFilter .

Asked by Martin Günther on 2021-06-04 09:53:41 UTC