Cannot use the XV 11 Lidar Neato

asked 2020-02-18 09:25:24 -0500

yuril gravatar image

Hi, I am trying to use the XV 11- Neato Lidar, but it is not working. I am using the Ros Kinetic on Ubunto 16.04. I followed this tutorial: http://wiki.ros.org/xv_11_laser_drive..., but when I run:

rosrun xv_11_laser_driver neato_laser_publisher port_:=/dev/ttyACM0

I get the following error: [ERROR] [1582038870.703246684]: Error instantiating laser object. Are you sure you have the correct port and baud rate? Error was open: No such file or directory

I am using a power source of 3.0 V for the Motor and a another 5V power for the Lidar. I am receiving the data on an arduino Uno and sending to the serial for my computer. I know I am receiving data of the arduino, because I can read it from the serial.

But I cannot use the ros driver and I want some help on using it, do you guys have any suggestion?

edit retag flag offensive close merge delete

Comments

can you please try to run cat /dev/ttyACM0 and cat /etc/udev/rules.d/52-ftdi.rules and post the output of both.

ct2034 gravatar image ct2034  ( 2020-02-18 10:31:45 -0500 )edit

Outputs:

cat /dev/ttyACM0 48 12 0 53 0 236 10 250 151 0 53 0 53 0 130 52 5

cat /etc/udev/rules.d/52-ftdi.rules SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="sensors/ftdi_%s{serial}"

yuril gravatar image yuril  ( 2020-02-18 11:57:52 -0500 )edit
1

Thats odd. I am confused because the udev rules says ttyUSB but the command ttyACM0. What you can do is: 1) Disconnect the lidar 2) start dmesg -w in a terminal 3) Plug in lidar again and watch what comes up in the terminal. (and post the couple of lines here, it will contain the right /dev path)

ct2034 gravatar image ct2034  ( 2020-02-18 12:34:18 -0500 )edit

it is showing too many lines, but no information with a /dev path. What can I do?

yuril gravatar image yuril  ( 2020-02-18 13:32:51 -0500 )edit

I mean only the new lines, that are added to dmesg, when you plugin the lidar. If they are to many, use something like https://pastebin.com/

ct2034 gravatar image ct2034  ( 2020-02-19 03:03:22 -0500 )edit

sorry about the delay, I was using an arduino to see the data from the lidar and to send it to the usb. I think that was the problem, I change it to a Usb Serial Ttl Uart converter and all went fine, thanks for your answers. I still don't know what was the problem about doing that, since it should do the same thing as the converter.

yuril gravatar image yuril  ( 2020-03-03 08:20:15 -0500 )edit

Yes, the arduino would do the same thing, but the path will be different. And you also need a different udev rule. I like this overview: http://www.joakimlinde.se/microcontro...

ct2034 gravatar image ct2034  ( 2020-03-05 04:35:32 -0500 )edit