8000 GitHub - Escargot05/measurement-station-ros-docker: Containerized version of my measurement station, including all necessary dependencies and a development container.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Containerized version of my measurement station, including all necessary dependencies and a development container.

License

Notifications You must be signed in to change notification settings

Escargot05/measurement-station-ros-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker for measurement station on ROS

Author: Dominik Zagórnik

Containerized version of my measurement station, including all necessary dependencies and a development container.

Prerequisites

Install docker (I recommend using the apt repository) and vcstool.

sudo apt install python3-vcstool

Set-up

Import station and sensors repositories.

vcs import < src/.repos src

Modify serial_port parameter in the rplidar launch file (in this case rplidar_a2m8.launch).

<param name="serial_port" type="string" value="/dev/rplidar"/>

Create udev rules on the host.

./src/rplidar/scripts/create_udev_rules.sh
./src/measurement_station/scripts/create_udev_rules.sh
./src/astra/scripts/create_udev_rules

Running

Using plain a Dockerfile

Build the image and then run the measurement station launch files:

docker build -f docker/Dockerfile --target base -t station:base .
docker run --rm -it station:base bash -c "roslaunch measurement_station station_client.launch"
docker run --rm -it station:base bash -c "roslaunch measurement_station station_server.launch"

Using Docker Compose

The station_client should be started using run instead of up because it requires an interactive shell.

docker compose -f docker/docker-compose.yaml up station_server
docker compose -f docker/docker-compose.yaml run station_client

Developing inside container

To develop inside container, run:

docker compose -f docker/docker-compose-dev.yaml up station-dev

Then attach a new terminal window:

docker exec -it station-dev-1 bash

Alternatively, you can use VS Code's DevContainer feature.

Helpful resources

Tobit Flatscher ROS inside Docker

Allison Thackston VSCode, Docker, and ROS2

Sebastian Castro An Updated Guide to Docker and ROS 2

About

Containerized version of my measurement station, including all necessary dependencies and a development container.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0