Open psj900918 opened 3 years ago
I suggest to run something like mavlink-router or ser2net on the host and use network connections.
May be you should: sudo usermod -a -G docker $USER in your host (and LOGOUT/LOGIN!!!) I am curious to know if you solved this problem.
Issue details
Hi, i'm trying to run MAVROS node at Docker container. In the container running bare-bone ubuntu 18.04 image, i installed
as a root.
I attached a externally-powered Pixhawk, which appears to
/dev/ttyACM0
at the host. Normally this setup worked, as i run asroslaunch mavros px4.launch fcu_url:=/dev/ttyACM0:921600
at the host.However, this dev does not appear at the container, so i added option
-v /dev/ttyACM0:/dev/ttyACM0
at creating container.Then, this fatal log comes
[FATAL] []: FCU: DeviceError:serial:open: Operation not permitted
I read this, although not exactly the same what i trying to, but added this option
-e LOCAL_USER_ID="($id -u)"
but same error occurs.Does anyone have faced this case?
MAVROS version and platform
Mavros: latest ROS: Melodic Ubuntu: 18.04
Autopilot type and version
[ ] ArduPilot [ v ] PX4
Version: latest