Skip to content

Commit

Permalink
- Updates dockerfile with more required packages
Browse files Browse the repository at this point in the history
- Changes docker compose to use ghcr images
- FIxes tmusinator to specify docker compose yml
  • Loading branch information
ngxingyu committed Feb 10, 2024
1 parent b8b0cbf commit b319450
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
2 changes: 2 additions & 0 deletions devcontainers/noetic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ RUN apt-get update && apt-get upgrade -y && \
apt-get install -y \
bash-completion \
byzanz \
ccache \
git \
imagemagick \
iputils-ping \
Expand Down Expand Up @@ -111,6 +112,7 @@ RUN pip3 install transforms3d ultralytics pandas numpy==1.21 opencv-python motra
RUN apt-get update && apt-get install -y qtbase5-dev libqt5svg5-dev libzmq3-dev libdw-dev ros-noetic-ros-babel-fish \
ros-$ROS_DISTRO-foxglove-bridge \
ros-$ROS_DISTRO-map-server \
ros-$ROS_DISTRO-octomap-server \
ros-$ROS_DISTRO-rosmon \
ros-$ROS_DISTRO-pybind11-catkin ros-$ROS_DISTRO-ros-numpy\
&& apt-get clean
Expand Down
16 changes: 8 additions & 8 deletions docker-compose-uuv.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: '2.4'
services:
simulator:
# image: ghcr.io/bumblebeeas/simulator_uuv
build:
context: ./
dockerfile: ./simulators/simulator-uuv/Dockerfile
image: ghcr.io/bumblebeeas/simulator_uuv
# build:
# context: ./
# dockerfile: ./simulators/simulator-uuv/Dockerfile
ipc: host
network_mode: host
security_opt:
Expand Down Expand Up @@ -36,10 +36,10 @@ services:
workspace:
# env_file:
# - .env
build:
context: ./
dockerfile: ./devcontainers/noetic/Dockerfile
#image: ghcr.io/ngxingyu/ros-devcontainer:noetic-dev
# build:
# context: ./
# dockerfile: ./devcontainers/noetic/Dockerfile
image: ghcr.io/bumblebeeas/ros-devcontainer:noetic-dev
ipc: host
network_mode: host
security_opt:
Expand Down
6 changes: 3 additions & 3 deletions tmuxinator/noetic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ root: ~/bb/ros-devcontainer/
# on_project_start: docker compose pull

# Run on project start, the first time
on_project_first_start: docker compose pull
on_project_first_start: docker compose -f docker-compose-nosim-noetic.yml pull

# Run on project start, after the first time
# on_project_restart: command
Expand All @@ -24,7 +24,7 @@ on_project_first_start: docker compose pull
# on_project_exit: command

# Run on project stop
on_project_stop: docker compose down
on_project_stop: docker compose -f docker-compose-nosim-noetic.yml down

# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
# pre_window: rbenv shell 2.0.0-p247
Expand All @@ -50,7 +50,7 @@ windows:
layout: main-vertical
panes:
- vglrun -d :0 docker compose -f docker-compose-nosim-noetic.yml up
- ./join.bash ros-devcontainer-workspace-1 "/ros_entrypoint.sh roscore"
# - ./join.bash ros-devcontainer-workspace-1 "/ros_entrypoint.sh roscore"
- workspace:
layout: main-vertical
pre:
Expand Down
12 changes: 6 additions & 6 deletions tmuxinator/uuv_sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ root: ~/bb/ros-devcontainer/
# on_project_start: command

# Run on project start, the first time
on_project_first_start: docker compose pull
on_project_first_start: docker compose -f docker-compose-uuv.yml pull

# Run on project start, after the first time
# on_project_restart: command
Expand All @@ -24,7 +24,7 @@ on_project_first_start: docker compose pull
# on_project_exit: command

# Run on project stop
on_project_stop: docker compose down
on_project_stop: docker compose -f docker-compose-uuv.yml down

# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
# pre_window: rbenv shell 2.0.0-p247
Expand All @@ -50,20 +50,20 @@ windows:
layout: tiled
panes:
- vglrun -d :0 docker compose -f docker-compose-uuv.yml up
- sleep 1s; ./join.bash ros-devcontainer-simulator-1 "/ros_entrypoint.sh roscore"
# - ./join.bash ros-devcontainer-simulator-1 "/ros_entrypoint.sh ros2 launch vrx_gz competition.launch.py urdf:=bbasv3.urdf"
- ./join.bash ros-devcontainer-simulator-1 "/ros_entrypoint.sh roslaunch bbauv_gazebo_worlds sauvc_2024.launch gui:=false use_gt_odom:=false"
- workspace:
layout: tiled
pre:
- sleep 2s
- sleep 4s
# pre:
# - ./join.bash ros-devcontainer-workspace-1
# Synchronize all panes of this window, can be enabled before or after the pane commands run.
# 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
# synchronize: after
panes:
- ./join.bash ros-devcontainer-workspace-1 "/entrypoint.sh mon launch /workspace/src/bbauv4.launch"
- ./join.bash ros-devcontainer-workspace-1 "/entrypoint.sh rosrun auv_localization controls_interface_action_server.py"
- ./join.bash ros-devcontainer-simulator-1 "/ros_entrypoint.sh roslaunch bbauv_gazebo_worlds sauvc_2024.launch gui:=false use_gt_odom:=false x:=-24.2 y:=-8.5 z:=0 --wait"
- ./join.bash ros-devcontainer-workspace-1 "/entrypoint.sh rosrun rosmon rosmon /workspace/src/bbauv4.launch"
- ./join.bash ros-devcontainer-workspace-1 "/entrypoint.sh roslaunch auv_localization auv4_localization.launch --wait"
- ./join.bash ros-devcontainer-workspace-1 "/entrypoint.sh rviz -d /workspace/src/auv4.rviz"
# - ./join.bash ros-devcontainer-workspace-1 "/entrypoint.sh roslaunch controlkit controlkit.launch ns:=auv4 --wait"
Expand Down

0 comments on commit b319450

Please sign in to comment.