Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: video support #113

Merged
merged 6 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,16 @@ RUN --mount=type=bind,source=.,target=/scenario_execution \
RUN --mount=type=bind,source=.,target=/scenario_execution \
pip3 install -r /scenario_execution/requirements.txt && \
pip3 install -r /scenario_execution/libs/scenario_execution_floorplan_dsl/requirements.txt

# install rosbag2_to_video used within github actions
SHELL ["/bin/bash", "-xo", "pipefail", "-c"]
WORKDIR /rosbag2_to_video/src
RUN git clone https://github.com/ivanpauno/rosbag2_to_video.git
WORKDIR /rosbag2_to_video/src/rosbag2_to_video
RUN git checkout 6bb3ada33aa2cb5c2ebd506f8c7ac22c39ec20d9
WORKDIR /rosbag2_to_video
RUN apt-get update && \
rosdep install --from-paths src --ignore-src -y && \
rm -rf "/var/lib/apt/lists/*" && \
. /opt/ros/${ROS_DISTRO}/setup.bash && \
colcon build
13 changes: 13 additions & 0 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,19 @@ jobs:
with:
name: test-example-multirobot-result
path: test_example_multirobot/test.xml
- name: Convert video
if: always()
shell: bash
run: |
source /opt/ros/humble/setup.bash
source /rosbag2_to_video/install/setup.bash
ros2 bag to_video -t /static_camera/image_raw -o test_example_multirobot/example_multi_robot/example-multi-robot.mp4 test_example_multirobot/example_multi_robot/rosbag2_* --fps 5 --codec mp4v
- name: Upload video
uses: actions/upload-artifact@ef09cdac3e2d3e60d8ccadda691f4f1cec5035cb
if: always()
with:
name: test-example-multirobot-video
path: test_example_multirobot/example_multi_robot/example-multi-robot.mp4
- name: Upload ros bag
uses: actions/upload-artifact@ef09cdac3e2d3e60d8ccadda691f4f1cec5035cb
if: always()
Expand Down
Loading