ROBOTIS-GIT / hls_lfcd_lds_driver

ROS package for HLDS HLS-LFCD LDS driver
http://turtlebot3.robotis.com
BSD 3-Clause "New" or "Revised" License
88 stars 70 forks source link

The first byte is not 0xFA #32

Closed PierrePeng closed 6 years ago

PierrePeng commented 6 years ago

I power on the lidar and the motor of the lidar is on work.Then I run the driver.But the first byte is not 0xFA.It throws error "An exception was thrown: read: End of line" after several times.

routiful commented 6 years ago

Hi :)

Have you get the problem when you executed launch file we provide?? Or special development environment?? If you upload some image or copy and paste error messages on terminal window??

PierrePeng commented 6 years ago

Hi I have tried using launch file which is provide by you,but the program is process die.As the picture. PS:I have tried sending 'b' to laser in the terminal, the motor can revolve and I can receive the data.So I can confirm the serial ID set correctly and computer make connect to the laser succeed. image

PierrePeng commented 6 years ago

Hi I have tried canceling the command of start motor in the construct,and it pass the first byte verification which is equal to 0xFA. But the program still returns process die by End of file when it runs in boost::asio::read().I guess it read too fast.so I have tried adding usleep() before boost::asio::read().It is on work.But I dont think its good way to solve this problem,because it takes a long time to receive a frame of scan data.

routiful commented 6 years ago

That's might be firmware problem. If you contact our customer service team(contactus2@robotis.com), they would inform to you how to exchange your lidar.

robotpilot commented 6 years ago

This issue will be closed since there were no actions for a while. You can reopen this issue to show this issue to the users whenever. Thanks.