Unable to open serial port error in SICKToolBOX wrapper?
Hi,
I am relatively new to ROS. So apology if this question might sound trivial, but I really need help. I am following the tutorial http://wiki.ros.org/sicktoolbox_wrapp... . However, as I am trying to do rosrun sicktoolbox_wrapper sicklms, I am getting the following error:
Attempting to initialize the Sick LMS...
Attempting to open device @ /dev/ttyUSB0
ERROR: I/O exception - SickLMS2xx::_setupConnection: - Unable to open serial port
ERROR: I/O exception - SickLMS2xx::_setupConnection: - Unable to open serial port
[ERROR] [1462855550.192922717]: Initialize failed! are you using the correct device path?
Could anyone help me troubleshoot what am I doing wrong? I am using LMS291 withRS422 interface and a USB to serial adapter, and doing the following in my command line:
- rosdep install sicktoolbox_wrapper rviz
- rosmake sicktoolbox_wrapper rviz
- ls -l /dev/ttyUSB0
- roscore (in a new terminal)
- rosparam set sicklms/port /dev/ttyUSB0
- rosparam set sicklms/baud 38400
- rosrun sicktoolbox_wrapper sicklms
Thanks, Shantnu Kakkar
Are permissions correctly set for device? What if you do first
sudo chmod 666 /dev/ttyUSB0
?