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

How do I configure the XVLIDAR-ARDUINO MEGA ?

asked 2019-03-23 21:09:27 -0500

Frank95000 gravatar image

updated 2019-03-23 22:49:20 -0500

jayess gravatar image

When I run the line

rosrun xv_11_laser_driver neato_laser_publisher _port: = / dev / ttyUSB0

This message appears:

[ERROR] [1553391719.243142699]: Error instantiating laser object. Are you sure you have the correct port and baud rate? Error was open: Permission denied.

Please help me! :(

edit retag flag offensive close merge delete

Comments

Are you sure that you have the correct port and baud rate? Also, do you have sufficient permissions?

jayess gravatar image jayess  ( 2019-03-23 22:50:36 -0500 )edit
1

Make sure the user is in the dialout group

stevemacenski gravatar image stevemacenski  ( 2019-03-23 23:17:32 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-03-24 02:59:24 -0500

billy gravatar image

That error means you don't have access to the port but implies the port is present.

Try this at terminal prompt:

sudo chmod a=rwx /dev/ttyUSB0

and try your node again to see if it works.

You can get more info on serial from the following(or at least 1,000,000 other links): https://www.cyberciti.biz/faq/find-out-linux-serial-ports-with-setserial/

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-03-23 21:09:27 -0500

Seen: 149 times

Last updated: Mar 24 '19