Both Device (turtlebot and SparkFun Razer 9DOF IMU) use /dev/ttyUSB0 and have conflict
When I tired to roslaunch turtlebot_bringup minimal.launch
and rosrun razer_imu_9dof imu_node.py
, imu_node.py
gave me the following error:
File "/home/turtlebot/catkin_ws/src/razor_imu_9dof/nodes/imu_node.py", line 161, in <module>
discard = ser.readlines()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 495, in read
raise SerialException('device reports readiness to read but returned no data (device disconnected or multiple access on port?)')
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
I believe this has to do with both device using dev/ttyUSB0. Its there a way to make the imu or the turtlebot to use another port? I tried to make the turtlebot use dev/ttyS0 but it will not publish any odom message. Can anyone help me with this issue?
I am using ROS Kinetic and Ubuntu 16.04