YDLIDAR / YDLidar-SDK

Driver for receiving YD LiDAR data and more...
Other
119 stars 221 forks source link

turning on the laser works with ROS, but not python #4

Open kevindean opened 4 years ago

kevindean commented 4 years ago

Hello,

like the other person stated, thank you for your product (G2B), it's epic. However, I can only seem to get it to generate a point cloud from ROS; and visualize it in Rviz (other words, laser won't turn on from python environment; it begins to rotate at the set frequency and then the thread is terminated). I've provided a couple images to show this. Are there any next steps I should take in debugging this issue? Thank you for your time - Kevin

DeviceWorkingInROS ROSSuccessInitializingLidar ThreadError

yangfuyuan commented 4 years ago

Hi Kevin, G2B lidar has intensity, so it is necessary to set LidarPropIntenstiy property to True. eg:

    laser.setlidaropt(ydlidar.LidarPropIntenstiy, True);
kevindean commented 4 years ago

Awesome! Works perfectly, thank you very much for the help.

Sincerely, Kevin

On Sun, May 3, 2020 at 8:41 AM yangfuyuan notifications@github.com wrote:

Hi Kevin, G2B lidar has intensity, so it is necessary to set LidarPropIntenstiy property to True. eg: laser.setlidaropt(ydlidar.LidarPropIntenstiy, True);

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/YDLIDAR/YDLidar-SDK/issues/4#issuecomment-623104158, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOSK2HMJLYU2KKEGET7LPDRPVQ7TANCNFSM4MVXSW5Q .