Skip to content

Commit 4c0b620

Browse files
committed
Tentative ROS1/ROS2 test setup
1 parent 8ee40da commit 4c0b620

File tree

7 files changed

+33
-67
lines changed

7 files changed

+33
-67
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

docker/ros2/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM ros:iron
2+
LABEL maintainer "Gonzalo Casas <[email protected]>"
3+
4+
SHELL ["/bin/bash","-c"]
5+
6+
# Install rosbridge
7+
RUN apt-get update && apt-get install -y \
8+
ros-iron-rosbridge-suite \
9+
ros-iron-tf2-web-republisher \
10+
ros-iron-ros-tutorials \
11+
ros-iron-actionlib-tutorials \
12+
--no-install-recommends \
13+
# Clear apt-cache to reduce image size
14+
&& rm -rf /var/lib/apt/lists/*
15+
16+
# Copy entrypoint
17+
COPY ./integration-tests.launch /
18+
19+
EXPOSE 9090
20+
21+
CMD ["bash"]

docker/ros2/integration-tests.launch

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<launch>
2+
<include file="$(find-pkg-share rosbridge_server)/launch/rosbridge_websocket_launch.xml">
3+
<arg name="port" value="9092"/>
4+
</include>
5+
<!-- <node pkg="tf2_web_republisher" type="tf2_web_republisher" name="tf2_web_republisher"></node> -->
6+
</launch>

docker/ros2/ros_entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# setup ros2 environment
5+
source "/opt/ros/$ROS_DISTRO/setup.bash" --
6+
exec "$@"

0 commit comments

Comments
 (0)