ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

I have an issue with lidar LD06 and LaserScan

asked 2023-02-21 09:03:32 -0500

Maxlaclasse gravatar image

Hello everyone, Im kind of new in the robotics universe and im actually working on a personnal project. Im trying to make a robot that use SLAM with ros but with cheap material.

I use a LD06 lidar connect via UART to an esp32 and i use websocket to access datas, then i use ROS on my ubuntu 22.04 virtualbox machine to process datas.

The issue I currently have is that i acquire datas but when I publish the laserscan and visualise it on RVIZ2 i only get datas frame per frame, which isn't good for me to visualize if they are coherent.

I search online and found a solution with PointCloud but my main question is : Why the LD06 Launcher they gave when you want to try the lidar by USB, can show datas properly just with laserscan.

To describes datas I received, they are in the format of 12 points per frames, so when i visualise laserscan i only see 12 points which are like 20 degrees of datas.

Thanks for incoming answers, sorry for my vocabulary i'm not native english.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-02-25 23:35:32 -0500

miura gravatar image

rviz normally displays only the most recent data. Therefore, only the most recent single frame was displayed. LaserScan has a way of displaying multiple frames. Try setting the Decay Time to the number of frames you want to display. That may solve the problem.

ref : http://wiki.ros.org/rviz/DisplayTypes...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2023-02-21 09:03:32 -0500

Seen: 303 times

Last updated: Feb 25 '23