-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding dockerfiles for building tests
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
- Loading branch information
1 parent
57b17fc
commit 8332d4a
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
ARG ROS_DISTRO=jazzy | ||
FROM docker.io/ros:$ROS_DISTRO-ros-base | ||
|
||
RUN apt update && apt install -y curl ros-$ROS_DISTRO-nav2-bringup ros-$ROS_DISTRO-rmw-cyclonedds-cpp | ||
|
||
RUN mkdir -p /tb3 && cd /tb3 \ | ||
&& curl -sL https://github.com/ROBOTIS-GIT/turtlebot3_simulations/archive/refs/heads/master.tar.gz -o turtlebot3_simulations.tar.gz \ | ||
&& mkdir -p /tb3/turtlebot3_simulations && tar zxf turtlebot3_simulations.tar.gz -C /tb3/turtlebot3_simulations --strip-components=1 && rm turtlebot3_simulations.tar.gz | ||
|
||
ENV RMW_IMPLEMENTATION rmw_cyclonedds_cpp | ||
ENV GAZEBO_MODEL_PATH "$GAZEBO_MODEL_PATH:/tb3/turtlebot3_simulations/turtlebot3_gazebo/models" | ||
|
||
RUN rm -rf \ | ||
/var/lib/apt/lists \ | ||
/dist | ||
|
||
# TODO(ac): set up proper parameter file | ||
ENTRYPOINT ["bash", "-c", ". /opt/ros/$ROS_DISTRO/setup.bash && ros2 launch nav2_bringup tb3_simulation_launch.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
ARG ROS_DISTRO=jazzy | ||
FROM docker.io/ros:$ROS_DISTRO-ros-base | ||
ARG ZENOH_VERSION=0.11.0 | ||
ARG BRANCH=efc/ci | ||
|
||
RUN apt update && apt install -y wget unzip ros-jazzy-rmw-cyclonedds-cpp | ||
|
||
RUN mkdir -p /zenoh-bridge && cd /zenoh-bridge \ | ||
&& wget https://github.com/eclipse-zenoh/zenoh-plugin-ros2dds/releases/download/$ZENOH_VERSION/zenoh-plugin-ros2dds-$ZENOH_VERSION-x86_64-unknown-linux-gnu-standalone.zip \ | ||
&& unzip zenoh-plugin-ros2dds-$ZENOH_VERSION-x86_64-unknown-linux-gnu-standalone.zip \ | ||
&& rm zenoh-plugin-ros2dds-$ZENOH_VERSION-x86_64-unknown-linux-gnu-standalone.zip \ | ||
&& wget https://github.com/open-rmf/free_fleet/archive/$BRANCH.tar.gz -o free_fleet.tar.gz \ | ||
&& mkdir -p /zenoh-bridge/free_fleet && tar zxf free_fleet.tar.gz -C /zenoh-bridge/free_fleet --strip-components=1 \ | ||
&& rm free_fleet.tar.gz | ||
|
||
ENV RMW_IMPLEMENTATION rmw_cyclonedds_cpp | ||
|
||
RUN rm -rf \ | ||
/var/lib/apt/lists \ | ||
/dist | ||
|
||
ENTRYPOINT ["bash", "-c", ". /opt/ros/$ROS_DISTRO/setup.bash && . /zenoh-bridge/zenoh-bridge-ros2dds -c /zenoh-brdige/free_fleet/free_fleet_examples/zenoh_configs/turtlebot3_1_zenoh_config.json5"] |