Skip to content

Commit

Permalink
movie_publisher: Cleaned up dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
peci1 committed Feb 13, 2025
1 parent 00fa01e commit ad0f461
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 98 deletions.
5 changes: 0 additions & 5 deletions .github/ci.noetic.rosinstall
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-FileCopyrightText: Czech Technical University in Prague

- git:
local-name: ros-utils
uri: https://github.com/ctu-vras/ros-utils.git
version: master
1 change: 0 additions & 1 deletion movie_publisher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ install(PROGRAMS

catkin_install_python(PROGRAMS
nodes/fix_bag_timestamps
nodes/merge.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

install(FILES
Expand Down
8 changes: 5 additions & 3 deletions movie_publisher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ This package contains several tools for using movie files in ROS (playback, conv
It handles any file formats the system installation of ffmpeg can decode.

**Important: This package used to be implemented in Python using pip-installed libraries. That is no longer needed
as the package now uses C++ API of ffmpeg/libav.**
as the package now uses C++ API of ffmpeg/libav.** Some things have changed and work a bit differently, but a big effort
was spent to keep the new version as backwards compatible as possible.

It can also extract interesting image/video metadata like GPS coordinates and camera calibrations and provide them as
ROS-native types.

## Main tools

Expand All @@ -23,8 +27,6 @@ as the package now uses C++ API of ffmpeg/libav.**
- `fix_bag_timestamps`: A batch script that rewrites bag files so that the message publication time is taken from the
message header. This allows you to generate bagfile data at high speed and then reprocess them to have more suitable
publication timestamps.
- `merge.py`: A copy of [srv_tools/merge.py](https://github.com/srv/srv_tools/blob/kinetic/bag_tools/scripts/merge.py)
which is not available in indigo.

## movie_publisher_node and nodelet movie_publisher/movie_publisher_nodelet

Expand Down
2 changes: 1 addition & 1 deletion movie_publisher/nodes/add_movie_to_bag
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ rosrun movie_publisher movie_to_bag _movie:="${movie}" _bag:="${bag_tmp}" _topic

echo "Merging into ${bag_out}"

rosrun movie_publisher merge.py --output "${bag_out}" "${bag_in}" "${bag_tmp}" || exit 6
rosrun cras_bag_tools merge_bag --compress "${bag_out}" "${bag_in}" "${bag_tmp}" || exit 6

echo "Merged"

Expand Down
83 changes: 0 additions & 83 deletions movie_publisher/nodes/merge.py

This file was deleted.

6 changes: 1 addition & 5 deletions movie_publisher/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<build_depend>tf2_ros</build_depend>

<exec_depend>compass_conversions</exec_depend>
<exec_depend>cras_bag_tools</exec_depend>
<exec_depend>cras_topic_tools</exec_depend>
<exec_depend>ffmpeg</exec_depend>
<exec_depend>image_geometry</exec_depend>
Expand All @@ -53,11 +54,6 @@
<depend>sensor_msgs</depend>

<exec_depend>ffmpeg</exec_depend>
<exec_depend condition="$ROS_DISTRO != noetic">python-imageio</exec_depend>
<exec_depend condition="$ROS_DISTRO == noetic">python3-imageio</exec_depend>
<!--exec_depend>python-moviepy-pip</exec_depend--> <!-- recommended but optional dependency -->
<exec_depend condition="$ROS_DISTRO != noetic">python-opencv</exec_depend>
<exec_depend condition="$ROS_DISTRO == noetic">python3-opencv</exec_depend>
<exec_depend version_gte="1.0.2">rosbash_params</exec_depend>
<exec_depend>rospy</exec_depend>

Expand Down

0 comments on commit ad0f461

Please sign in to comment.