robopeak / rplidar_ros

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

No scan message received #37

Closed Playfish closed 7 years ago

Playfish commented 7 years ago

Hi, I got a problem that rplidar A1 can used on PC but can not get scan data in Jetson Tk1. Under is output message about rplidar a1. ubuntu@tegra-ubuntu:~/catkin_ws/src/rplidar_ros$ roslaunch rplidar_ros view_rplidar.launch ... logging to /home/ubuntu/.ros/log/71dfd04e-1dd2-11b2-a063-f0421cf8ef80/roslaunch-tegra-ubuntu-4669.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://localhost:45894/

SUMMARY

PARAMETERS

NODES / rplidarNode (rplidar_ros/rplidarNode) rviz (rviz/rviz)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found process[rplidarNode-1]: started with pid [4687] process[rviz-2]: started with pid [4689] RPLIDAR running on ROS package rplidar_ros SDK Version: 1.5.7 RPLIDAR S/N: 98FEFBF2C8E49CCFC6E49FF1662C530D Firmware Ver: 1.20 Hardware Rev: 0 RPLidar health status : 0 Everything is normal but cannot get data. And also I give permissions for rplidar. sudo chmod 777 /dev/ttyUSB0 Thanks!

kintzhao commented 7 years ago

you can test it using linux-driver-test in the SDK at first. such as simple_grabber (rplidar_sdk_v1.5.7\sdk\app\simple_grabber)(not using ROS at first).

I suggest that you support power to the motor of rpliadr by alone in the embedded computer system.

Playfish commented 7 years ago

Hi! @kintzhao Thanks answer my issue, and I follow your suggestion and under is test output:

OUTPUT

ubuntu@tegra-ubuntu:~/rplidar_sdk/sdk/output/Linux/Release$ ./simple_grabber /dev/ttyUSB1 115200 RPLIDAR S/N: 98FEFBF2C8E49CCFC6E49FF1662C530D Version: 1.5.7 Firmware Ver: 1.20 Hardware Rev: 0 RPLidar health status : OK. (errorcode: 0) waiting for data...






















Do you want to see all the data? (y/n) y Error, cannot grab scan data.

Above is test result and when I use another rplidar A1 test output follow:

ANOTHER RPLIDAR A1

ubuntu@tegra-ubuntu:~/rplidar_sdk/sdk/output/Linux/Release$ ./simple_grabber /dev/ttyUSB1 115200 RPLIDAR S/N: 437CFBF2C8E49CCFC6E49FF1BDAE530D Version: 1.5.7 Firmware Ver: 1.20 Hardware Rev: 0 RPLidar health status : OK. (errorcode: 0) waiting for data...

Did Rplidar A1 using long time will reduce power of Rpliar A1? Thanks!

Playfish commented 7 years ago

Hi! @kintzhao I got the problem where cause I can not received scan data, Because I only have one USB3.0 so I used Hub to connect mobile base and rpliar, I check out cable individual and found its Hub problem, when I change another one its ok, Thanks and I will close this issue.

uffe commented 6 years ago

I struggled with the same problem, and found my solution to be a dodgy USB cable.

XunshanMan commented 5 years ago

I got the same problem and puzzled me for an afternoon. Finally I found the problem came from the bad connection of the line.

lenaNzrva commented 2 years ago

Hi! I use rplidar a1m8 I have pretty same output using simple_grabber.exe

Output: RPLIDAR S/N: 548DED93C0EA98C7C2E29EF5A6574060 Version: 1.10.0 Firmware Ver: 1.29 Hardware Rev: 7 RPLidar health status : OK. (errorcode: 0) waiting for data... WARN YOU ARE USING DEPRECATED API: grabScanData(), PLEASE MOVE TO grabScanDataHq() WARN YOU ARE USING DEPRECATED API: ascendScanData(rplidar_response_measurement_node_t, size_t), PLEASE MOVE TO ascendScanData(rplidar_response_measurement_node_hq_t, size_t) --------------------------------------------------------------------------- Do you want to see all the data? (y/n) y Error, cannot grab scan data.

If i use ultra_simple.exe or frame_grabber.exe I can't see any output. If I use ros I can see for distances only as inf. I have checked my connection to the line even with multimeter everything seems okay. A few days ago my liodar worked and I saw my data in the Rviz

Probably somebody can help me

blued-ttd commented 1 year ago

Hi @lenaNzrva ! I use rplidar a1m8 I have the same problem as you when running simple_grabber.exe If you fixed the error please help me fix it!

lenaNzrva commented 1 year ago

Hi @tothaiduong ! My problem was the hardware one. The lidar just did not emit a laser beam. Write to your provider - my lidar was replased