-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
- Loading branch information
1 parent
26ff2b8
commit 3ac9338
Showing
8 changed files
with
569 additions
and
66 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
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,40 @@ | ||
services: | ||
minimal-ros1-sim: | ||
image: ghcr.io/open-rmf/free_fleet/minimal-ros1-sim:noetic-latest | ||
stop_signal: SIGINT | ||
network_mode: host | ||
privileged: true | ||
stdin_open: true | ||
tty: true | ||
|
||
minimal-nav1-bringup: | ||
image: ghcr.io/open-rmf/free_fleet/minimal-nav1-bringup:noetic-latest | ||
stop_signal: SIGINT | ||
network_mode: host | ||
privileged: true | ||
stdin_open: true | ||
tty: true | ||
|
||
minimal-zenoh-bridge-ros1: | ||
image: ghcr.io/open-rmf/free_fleet/minimal-zenoh-bridge-ros1:noetic-latest | ||
network_mode: host | ||
stdin_open: true | ||
tty: true | ||
|
||
minimal-zenoh-router: | ||
image: eclipse/zenoh | ||
restart: unless-stopped | ||
network_mode: host | ||
stdin_open: true | ||
tty: true | ||
environment: | ||
- RUST_LOG=debug | ||
|
||
minimal-rmf: | ||
image: ghcr.io/open-rmf/free_fleet/minimal-rmf:jazzy-latest | ||
network_mode: host | ||
stdin_open: true | ||
tty: true | ||
environment: | ||
- ROS_DOMAIN_ID=0 | ||
- RMW_IMPLEMENTATION=rmw_fastrtps_cpp |
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,27 @@ | ||
ARG ROS_DISTRO=jazzy | ||
FROM docker.io/ros:$ROS_DISTRO-ros-base | ||
ARG RMF_BRANCH=main | ||
ARG FREE_FLEET_BRANCH=main | ||
|
||
RUN apt update && apt install -y curl ros-$ROS_DISTRO-rmw-cyclonedds-cpp | ||
|
||
RUN mkdir -p /rmf && cd /rmf \ | ||
&& curl -sL https://github.com/open-rmf/free_fleet/archive/refs/heads/$FREE_FLEET_BRANCH.tar.gz -o free_fleet.tar.gz \ | ||
&& mkdir -p /rmf/src/free_fleet && tar zxf free_fleet.tar.gz -C /rmf/src/free_fleet --strip-components=1 && rm free_fleet.tar.gz \ | ||
&& curl -sL https://github.com/open-rmf/rmf_demos/archive/refs/heads/$RMF_BRANCH.tar.gz -o rmf_demos.tar.gz \ | ||
&& mkdir -p /rmf/src/rmf_demos && tar zxf rmf_demos.tar.gz -C /rmf/src/rmf_demos --strip-components=1 && rm rmf_demos.tar.gz | ||
|
||
RUN rosdep update && rosdep install --from-paths /rmf/src -yi | ||
|
||
RUN cd /rmf \ | ||
&& . /opt/ros/$ROS_DISTRO/setup.sh \ | ||
&& colcon build --merge-install --install-base /opt/rmf --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to free_fleet_examples \ | ||
&& rm -rf /rmf | ||
|
||
ENV RMW_IMPLEMENTATION=rmw_cyclonedds_cpp | ||
|
||
RUN rm -rf \ | ||
/var/lib/apt/lists \ | ||
/dist | ||
|
||
ENTRYPOINT ["bash", "-c", ". /opt/rmf/setup.bash && ros2 launch free_fleet_examples turtlebot3_world_rmf_common.launch.xml"] |
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,45 @@ | ||
name: e2e-tests | ||
|
||
on: push | ||
|
||
jobs: | ||
e2e-tests: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
container: | ||
image: osrf/ros:${{ matrix.ros_distribution }}-desktop-noble | ||
strategy: | ||
matrix: | ||
ros_distribution: | ||
- jazzy | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install docker-compose | ||
run: | | ||
sudo apt update && sudo apt install docker-compose -y | ||
- name: Start test fixture containers | ||
run: docker-compose -f ".github/docker/e2e-tests/e2e-docker-compose.yaml" up -d --build | ||
|
||
- name: build-and-test | ||
uses: ./.github/actions/build-and-test | ||
with: | ||
ros-distribution: ${{ matrix.ros_distribution }} | ||
zenoh-version: 1.1.0 | ||
e2e-testing: ON | ||
|
||
- name: Stop test fixture containers | ||
if: always() | ||
run: docker-compose -f ".github/docker/e2e-tests/e2e-docker-compose.yaml" down | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
files: ros_ws/coveragepy/.coverage | ||
flags: tests | ||
fail_ci_if_error: true | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
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
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
Empty file.
Oops, something went wrong.