Cannot see the scan data of rplidar on raspberry pi
Hello everyone, I am running ROS indigo on Raspberry Pi, I successfully installed ROSARIA
for Pioneer robot and openni2_camera
for Asus Xtion Live Pro, they both works well.
I successfully installed rplidar_ros
, the nodes are properly launched, but when I run
$ rostopic echo /scan
I can't see any output. I tried it on my PC(Ubuntu 14.04 LTS, x86_86), everything goes well. I also tried to run the demo of rplidar SDK, the output data is right. It is so strange, could you give me some advice to solve the problem?
Hi, I encountered the same problem, and wondering whether you've found a solution yet? I connect rplidar to the Pi via usb. RPLidar health status : 0 (which means ok), but rostopic echo /scan shows nothing as you. Thanks
Yes, I've got the solution. Here is what I encountered, once I connect rplidar to my laptop, a new device /dev/ttyUSB0 will appear, however, when I tried to read data from it, /dev/ttyUSB0 disappears! This may cause the problem. You can check.
This may be an issue of Raspberry Pi. I use a USB hub, and solve the problem, so weired......
I see. thanks for your response. I tried to power the raspberry pi with a 2.1A usb battery pack, and it seems to work (more testing needed for its reliability), but not with 1A power supply. I think the issue might come down to whether we provide enough power or not.
Hi Krist, my solution with 2.1A usb battery pack is not very reliable. It's good sometimes, but not always. So, when you use the USB hub, do you connect them as battery > RPi > USB hub > RPLidar? Or do you have a 2nd battery pack to power the USB hub? Thanks
No, I don't have a 2nd battery.
hmmm, so a usb hub without additional power somehow works... interesting... let me give it a shot. thanks!