Comments (2)
Hi @Kelly-Coffey, did you try to expose the device to the container with the --device option?
I think you could try something like:
sudo docker run -it --device /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI02RNQC-if00-port0 serial --dev /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI02RNQC-if00-port0
I hope it help you.
from docker.
Hello, Thanks for the suggestion.
Since I was able to install and build Micro ROS agent in a ros:dashing docker I was able to make some progress on this issue. I also got some suggestions from Brandon Cannaday's blog https://www.losant.com/blog/how-to-access-serial-devices-in-docker
What resolved this issue is the following:
Setup: On VirtualBox running Ubuntu Virtual Machine with Micro-ROS Dockers
- First verify FTDI FT232 Serial device is seen by the Host machine.
- In VirtualBox Menus "Devices>USB>USB Devices" enable "FTDI FT232R USB UART"
- In the Ubuntu virtual machine find the serial device name with ls /dev/serial/by-id/*
example:
ubu@ubu-VirtualBox:~$ ls /dev/serial/by-id/*
/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI02RNQC-if00-port0
Since the USB serial port can be plug and unplugged mount the /dev folder and run the docker in Privileged mode with the following:
-
sudo docker run -it -v /dev:/dev --privileged microros/micro-ros-agent serial /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI02RNQC-if00-port0
-
You should see
Serial agent initialization... OK
Enter 'q' for exit
from docker.
Related Issues (15)
- Errors building docker images.
- It is recommended to change the calling method of the entrance HOT 1
- Some question about micro-ros-agent dockerfiles HOT 1
- ROS_LOCALHOST_ONLY usage HOT 1
- Fix broken docker files.
- More docker build errors HOT 1
- Update dockerfiles
- Docker Image works in a Desktop but not in a RPI HOT 3
- flash.sh hangs "after flashing" the board HOT 11
- Docker agent command fixs HOT 1
- micro-ros-agent multiarch build HOT 7
- Docker image age? HOT 9
- Whats the right config to use for microROS agent and discovery server? HOT 6
- SHM with microros-agent HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker.