https://github.com/hejia-zhang/ros2-humble-docker-dev
https://github.com/hejia-zhang/ros2-humble-docker-dev
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/hejia-zhang/ros2-humble-docker-dev
- Owner: hejia-zhang
- License: apache-2.0
- Created: 2024-04-03T21:13:24.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-03T21:15:53.000Z (about 1 year ago)
- Last Synced: 2024-04-03T22:28:17.975Z (about 1 year ago)
- Language: Dockerfile
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## ROS2 Humble - docker dev template
This repo is based on [this repo](https://github.com/sskorol/ros2-humble-docker-dev-template).
This repo provides a template for a quick start with a ROS2 Humble development in Docker.
### Setup
```shell
git clone https://github.com/sskorol/ros2-humble-docker-dev-template.git && cd ros2-humble-docker-dev-template
./run.sh -h
```
### Building
```shell
./run.sh -w dev_ws -i [YOUR_IMAGE_NAME:TAG] -b
```### Running
- Update `.tmux.conf` if you need to enable additional `tmux` features
- Update `.session.yml` to customize Tmuxinator UINote that the above configs are mapped as volumes to docker image.
```shell
./run.sh -w dev_ws -i [YOUR_IMAGE_NAME:TAG] -r
```### Development
- Follow [this guide](https://code.visualstudio.com/docs/remote/containers) to prepare VSCode for remote development in a container.
- Start the docker container via the command from the [Running](#running) section.
- Open VSCode and [attach](https://code.visualstudio.com/docs/remote/attach-container) to the running container.
- Open your ROS2 workspace and enjoy.### Notes
- Mouse is enabled by default
- Use pageup/pagedown keys to switch between `tmux` windows (mouse click also works)
- Press shift key to select the text via mouse
- `tmux` ctrl+b prefix is remapped to ctrl+a
- ctrl+a -> x -> y series closes the `tmux` and docker session