I'm using the rplidar package in ROS to interface with my A1 lidar. When the launch file is executed I find the scan topic has no data being published to it.
I disconnect the lidar from the raspberry pi and connected it to my computer, the scan massages are plentiful and free flowing.
I edited node.cpp and placed a print statement after if (op_result == RESULT_OK) { .... checking the value of op_result. On the raspberry pi op_result is 16 and as before the scan topic is empty of data.
But on my computer op_result is 0 and the scan topic has the required data.
The only difference in both scenarios is the computer so the lidar is undamaged. Both computer are running Ubuntu 16:04 and ROS Kinetic.
Looking for help here because the debug output mentioned above is different on both computers and I'm not sure why.
I'm using the rplidar package in ROS to interface with my A1 lidar. When the launch file is executed I find the scan topic has no data being published to it.
I disconnect the lidar from the raspberry pi and connected it to my computer, the scan massages are plentiful and free flowing.
I edited node.cpp and placed a print statement after
if (op_result == RESULT_OK) { ....
checking the value ofop_result
. On the raspberry pi op_result is 16 and as before the scan topic is empty of data. But on my computer op_result is 0 and the scan topic has the required data.The only difference in both scenarios is the computer so the lidar is undamaged. Both computer are running Ubuntu 16:04 and ROS Kinetic.
Looking for help here because the debug output mentioned above is different on both computers and I'm not sure why.