ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

MY RPlidar stopped spinning and sending data

asked 2015-07-07 10:36:49 -0600

Will Phoenix gravatar image

updated 2015-07-13 11:18:31 -0600

i have an Arduino Leonardo and the RPLidar. I also have a RGB shield attached to it. I got the liar to spin on windows but have recently just changed to macintosh and it isn't spinning anymore. The code loads in fine through arduino but there is no output just 0's. /Users/williamphoenix/Desktop/Screen Shot 2015-07-07 at 11.23.37 AM.png Here is a screen shot of my error on my program.

I also have loaded many others onto the board and none of them seem to get the liar going and spitting back data.

Thank you

Sorry Just Starting out on this and trying new things

Idk how else toe the image into the blog it says that i need 5 of something.

The error is /Users/williamphoenix/Documents/Arduino/libraries/RPLidarDriver/RPLidar.h:56:10: note: no known conversion for argument 1 from 'Serial_' to 'HardwareSerial&' no matching function for call to 'RPLidar::begin(Serial_&)'

As well as i have loaded a few of the Arduino written libraries into my Arduino leonardo which is connected to my RPlidar and it doesn't spin anymore but the green LED is lighting up along with the board is responding but the liar will not spin

edit retag flag offensive close merge delete

Comments

can you please host the image somewhere else? also, please provide a more thorough explanation of the error, so that we might be able to help.

mgruhler gravatar image mgruhler  ( 2015-07-10 01:27:05 -0600 )edit

Sorry Just Starting out on this and trying new things

Idk how else toe the image into the blog it says that i need 5 of something.

The error is /Users/williamphoenix/Documents/Arduino/libraries/RPLidarDriver/RPLidar.h:56:10: note: no known conversion for argument 1 from 'Serial_' to 'HardwareSeria

Will Phoenix gravatar image Will Phoenix  ( 2015-07-13 09:16:34 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-07-13 10:44:44 -0600

updated 2015-07-13 11:26:53 -0600

Every time I open the serial of my rplidar here without the ROS node it does the same, it stops spinning.
I guess there the serial adapter somehow controls the reset line using the hardware signals RTS/CTS.

You should maybe check to not interfere with them, maybe the reset line of the LIDAR is pulled to reset or not connected or has a lose contact...


If you use them seperately (e.g. USB serial interfaces):

Maybe you opened the wrong serial I guess Arduino and RPLidar register to the same kind of device names /dev/ttyACM0 (maybe your Arduino Software opened the one of the RPLidar)

Replug both and check with dmesg which one is Arduino and which one is RPLidar

Regards

Christian

edit flag offensive delete link more
0

answered 2023-06-23 06:00:58 -0600

teknetik gravatar image

thanks @cyborg-x1,

This was just the hint I needed. I had 2 USB serial devices and some times during development one, more or both might be plugged in at the same time meaning the /dev/ttyUSBx would change. At the point of confusion my motor controller was pointing at the rplidar vs the motor controller.

I solved this my making udev rules to mapp the actual hardware to /dev/lidar and /dev/motor_controller

(posted for others reference who might hit this same type of problem)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-07-07 10:36:49 -0600

Seen: 1,523 times

Last updated: Jul 13 '15