GithubHelp home page GithubHelp logo

Comments (2)

julionce avatar julionce commented on August 22, 2024

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.

Kelly-Coffey avatar Kelly-Coffey commented on August 22, 2024

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

  1. First verify FTDI FT232 Serial device is seen by the Host machine.
  2. In VirtualBox Menus "Devices>USB>USB Devices" enable "FTDI FT232R USB UART"
  3. 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:

  1. 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

  2. You should see
    Serial agent initialization... OK
    Enter 'q' for exit

from docker.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.