robopeak / rplidar_ros

BSD 2-Clause "Simplified" License
453 stars 370 forks source link

/scan message stops publishing #20

Closed damanfb closed 8 years ago

damanfb commented 8 years ago

I am using the node for a collision avoidance algorithm I'm working on and sometimes while the node is running it stops publishing the /scan message. I am running rostopic hz /scan and sometimes I get the "no new messages" alert for a long period of time. Sometimes the /scan message comes back, other times I have to power cycle the LIDAR a few times.

Has anyone seen a similar issue?

kintzhao commented 8 years ago

May be you can focus this code ( rplidar_ros/src/node.cpp) : ros::Publisher scan_pub = nh.advertise("scan", 1000);

you can try change the value of cache .