Cannot use the XV 11 Lidar Neato
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_driver/Tutorials/Running%20the%20XV-11%20Node, but when I run:
rosrun xv11laserdriver neatolaserpublisher 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?
Asked by yuril on 2020-02-18 10:25:24 UTC
Comments
can you please try to run
cat /dev/ttyACM0
andcat /etc/udev/rules.d/52-ftdi.rules
and post the output of both.Asked by ct2034 on 2020-02-18 11:31:45 UTC
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}"
Asked by yuril on 2020-02-18 12:57:52 UTC
Thats odd. I am confused because the udev rules says
ttyUSB
but the commandttyACM0
. What you can do is: 1) Disconnect the lidar 2) startdmesg -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)Asked by ct2034 on 2020-02-18 13:34:18 UTC
it is showing too many lines, but no information with a /dev path. What can I do?
Asked by yuril on 2020-02-18 14:32:51 UTC
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/
Asked by ct2034 on 2020-02-19 04:03:22 UTC
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.
Asked by yuril on 2020-03-03 09:20:15 UTC
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/microcontrollers/arduino/avr/udev.php
Asked by ct2034 on 2020-03-05 05:35:32 UTC