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

Serial Connection to Hokuyo from Master

asked 2018-07-16 03:42:57 -0500

Justin-RR2-IP gravatar image

updated 2018-07-20 00:38:43 -0500

Hi,

I am currently getting the error:

[ERROR] [1531729856.715593296]: Error connecting to Hokuyo: Could not open serial Hokuyo:
/dev/ttyACM0 @ 115200
could not open serial device.

Initially, after encountering this problem, I was able to resolve it by adding myself to the dialout list as suggested: https://answers.ros.org/question/2866... I was able to view the data from the Hokuyo after doing this.

I am now trying to access the Hokuyo from a different machine. On the drone (where the Hokuyo is connected), I changed ROS_MASTER_URI and ROS_IP to match the PC. On the PC, I then ran:

$ roscore
$ ssh drone-user@drone-IP

I am able to run '$ rostopic list' correctly. However, after typing '$ rosrun urg_node urg_node', I receive the error mentioned above.

Any help is greatly appreciated.

Thanks,

Justin

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-07-18 22:25:20 -0500

Justin-RR2-IP gravatar image

I have managed to fix the error, it was caused by a large discrepancy in time between the PC and the drone.
Connecting both devices to the internet and synchronizing their times was enough to resolve the issue. Initially, I tried using the 'chrony' package for Ubuntu but I was unable to synchronize the times using this.

Any suggestions on how to get the drone to synchronize its time to match the PC's would be greatly appreciated!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-07-16 03:42:57 -0500

Seen: 504 times

Last updated: Jul 18 '18