Error in connecting to SegwayRMP [closed]
The goal of my small project is to control SegwayRMP 210 with a joystick using ROS (Ubuntu 12.04 with ROS Hydro). I installed the segway RMP package using the following command
sudo apt-get install ros-hydro-segway-rmp
Which i beleive is the same package as available on https://github.com/segwayrmp/segway-r...
I am able to correctly install and run the package but the ROS node does not connect to Segway RMP robot using serial.
Command line execution of ROS node:
rosrun segway_rmp segway_rmp_node _interface_type:="serial" _serial_port="/dev/ttyACM0"
Output:
[ INFO] [1403651441.961049099]: Accel limits: linear: pos = 0.000000, neg = 0.000000, angular: pos = 0.000000, neg = 0.000000.
[ INFO] [1403651441.966015479]: Velocity limits: linear: 0.000000, angular: 0.000000.
[ INFO] [1403651441.975693745]: Connecting to Segway RMP via serial on serial port: /dev/ttyACM0
[ERROR] [1403651441.987917081]: Exception while connecting to the SegwayRMP, check your cables and power buttons.
[ERROR] [1403651441.988096560]: ConnectionFailedException occurred at line 36 of `/tmp/buildd/ros-hydro-libsegwayrmp-0.2.10-0precise-20140617-0350/src/impl/rmp_serial.cc`: Error connecting to the SegwayRMP: IO Exception (13): Permission denied, file /tmp/buildd/ros-hydro-serial-1.1.7-0precise-20140617-0113/src/impl/unix.cc, line 150.
[ WARN] [1403651441.988215851]: Not connected to the SegwayRMP, will retry in 5 seconds...
[ERROR] [1403651446.988773196]: Exception while connecting to the SegwayRMP, check your cables and power buttons.
[ERROR] [1403651446.988898198]:
[ WARN] [1403651446.988958962]: Not connected to the SegwayRMP, will retry in 5 seconds...
[ERROR] [1403651451.989506473]: Exception while connecting to the SegwayRMP, check your cables and power buttons.
[ERROR] [1403651451.989643138]: ConnectionFailedException occurred at line 36 of `/tmp/buildd/ros-hydro-libsegwayrmp-0.2.10-0precise-20140617-0350/src/impl/rmp_serial.cc`: Error connecting to the SegwayRMP: IO Exception (13): Permission denied, file /tmp/buildd/ros-hydro-serial-1.1.7-0precise-20140617-0113/src/impl/unix.cc, line 150.
All I can grab from the above log is that there is certainly some comms issue. Questions:
- Is libsegwayrmp compatible with Segway RMP 210?
- Does a serial port change from ttyUSB to ttyACM make a significant difference to execution?
Looking forward to a reply. Thanks in advance.