tork-a / roomblock

47 stars 16 forks source link

Failed to open device /dev/ttyACM0 #15

Open QbHead opened 4 years ago

QbHead commented 4 years ago

Hello!

Im trying to run this on a raspberry pi 3 and on a Roomba 605 with an rplidar a1. I setted up everything, remapped the usb ports to dev/rplidar and dev/roomba but it misses the dev/ttyACM0. Am I set sometting up something in the wrong way? (the code on the end is looping until I press ctrl+c and wait a bit.)

And sorry if im writing to the wrong place this is my first git issue.

roslaunch roomblock_bringup roomblock.launch

... logging to /home/ubuntu/.ros/log/c2c7bf0c-78ef-11ea-972d-000c29ef6605/roslaunch-ubiquityrobot-3970.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://192.168.1.117:37213/

SUMMARY
========

PARAMETERS
 * /imu/burst_mode: False
 * /imu/device: /dev/ttyACM0
 * /imu/frame_id: imu_link
 * /imu/publish_temperature: False
 * /imu/rate: 100
 * /imu_filter/publish_debug_topics: False
 * /imu_filter/publish_tf: False
 * /imu_filter/use_mag: False
 * /raspicam_node/camera_frame_id: raspicam
 * /raspicam_node/camera_info_url: package://roomblo...
 * /raspicam_node/framerate: 15
 * /raspicam_node/hFlip: True
 * /raspicam_node/height: 240
 * /raspicam_node/vFlip: True
 * /raspicam_node/width: 320
 * /robot_description: <?xml version="1....
 * /robot_pose_ekf/freq: 10.0
 * /robot_pose_ekf/imu_used: True
 * /robot_pose_ekf/odom_used: True
 * /robot_pose_ekf/output_frame: odom
 * /robot_pose_ekf/publish_tf: True
 * /robot_pose_ekf/sensor_timeout: 1.0
 * /robot_pose_ekf/vo_used: False
 * /robot_state_publisher/publish_frequency: 5.0
 * /rosdistro: kinetic
 * /rosversion: 1.12.14
 * /rplidarNode/angle_compensate: True
 * /rplidarNode/frame_id: laser
 * /rplidarNode/inverted: False
 * /rplidarNode/serial_baudrate: 115200
 * /rplidarNode/serial_port: /dev/rplidar
 * /turtlebot_node/bonus: False
 * /turtlebot_node/has_gyro: False
 * /turtlebot_node/operation_mode: 2
 * /turtlebot_node/port: /dev/roomba
 * /turtlebot_node/robot_type: roomba
 * /turtlebot_node/update_rate: 30.0

NODES
  /
    imu (adi_driver/adis16470_node)
    imu_filter (imu_filter_madgwick/imu_filter_node)
    raspicam_node (raspicam_node/raspicam_node)
    robot_pose_ekf (robot_pose_ekf/robot_pose_ekf)
    robot_state_publisher (robot_state_publisher/robot_state_publisher)
    rplidarNode (rplidar_ros/rplidarNode)
    turtlebot_node (create_node/turtlebot_node.py)

ROS_MASTER_URI=http://192.168.1.116:11311

process[robot_state_publisher-1]: started with pid [3985]
process[rplidarNode-2]: started with pid [3986]
process[turtlebot_node-3]: started with pid [3987]
process[robot_pose_ekf-4]: started with pid [3994]
process[raspicam_node-5]: started with pid [3995]
process[imu-6]: started with pid [3996]
process[imu_filter-7]: started with pid [4002]
openPort: No such file or directory
[ERROR] [1586285341.477169762]: Failed to open device /dev/ttyACM0
get_product_id: Bad file descriptor
write_register: Bad file descriptor
read_register: Bad file descriptor
read_register: Bad file descriptor
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
[ERROR] [1586285341.691254554]: Failed to create camera component
[ERROR] [1586285341.692165022]: init_cam: Failed to create camera component
[FATAL] [1586285342.482966949]: Tried to start capture before camera is inited
openPort: No such file or directory
[ERROR] [1586285342.488363355]: Failed to open device /dev/ttyACM0
get_product_id: Bad file descriptor
write_register: Bad file descriptor
read_register: Bad file descriptor
read_register: Bad file descriptor
[raspicam_node-5] process has died [pid 3995, exit code -11, cmd /opt/ros/kinetic/lib/raspicam_node/raspicam_node __name:=raspicam_node __log:=/home/ubuntu/.ros/log/c2c7bf0c-78ef-11ea-972d-000c29ef6605/raspicam_node-5.log].
log file: /home/ubuntu/.ros/log/c2c7bf0c-78ef-11ea-972d-000c29ef6605/raspicam_node-5*.log
openPort: No such file or directory
[ERROR] [1586285343.499295126]: Failed to open device /dev/ttyACM0
get_product_id: Bad file descriptor
write_register: Bad file descriptor
read_register: Bad file descriptor
read_register: Bad file descriptor
openPort: No such file or directory
[ERROR] [1586285344.510118198]: Failed to open device /dev/ttyACM0