Skip to content

Assign hardware port to docker-compose file  #158

Description

@ipa-rwu

@ipa-nhg
To connect hardware with docker container, we also need to assign hardware port to docker container, e.g.
docker run --rm -it --device=/dev/input/js1 --device=/dev/jackal rachelwu/agriculture_demo_sprint2:agriculture_demo_sprint2

Some of ports are also assigned in launch file, e.g.
<arg name="joy_dev" default="$(optenv JACKAL_JOY_DEVICE /dev/input/ps4)" />

I propose to generate a docker-compose file also for rossystem(without ComponentStack). So we can assign a port like:

devices:
  - "/dev/input/js1:/dev/input/js1"

But there is an issue: how can I get this information from model level?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions