Skip to content

This package contains python scripts and ROS packages utils for keyframe extraction, trajectory comparison.

Notifications You must be signed in to change notification settings

Alexander-guo/utils_ros2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AFRL Utils

Python Scripts

This folder contains python scripts that are used for various tasks that do not need to run as ros nodes. The README.md file inside the folder contains more information on the scripts in that folder.

ROS2 Package

Build

mkdir -p ~/utils_ros2_ws/src 
cd ~/utils_ros2_ws/src
git clone https://github.com/Alexander-guo/utils_ros2.git
cd ..
colcon build --packages-select utils_ros2 --symlink-install
source ~/utils_ros2_ws/install/setup.bash # Or add this to ~/.bashrc to make it permanent

Usage

Extract Keyframes

To extract keyframes from a ros2bag, run the following command:

ros2 launch utils_ros2 write_keyframe_images.xml bag_file:=bag_file image_dir:=dir_to_save_images traj_file:=VIO_trajectory_file config_file:=camera config file

Note: By default, the keyframes are undistorted. The reason being COLMAP undistortion changes image size in an effort to maximize information from images.

The gopro config files are inside the config/gopro folder.

Check the launch file for additional parameters.

About

This package contains python scripts and ROS packages utils for keyframe extraction, trajectory comparison.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 51.1%
  • Python 43.1%
  • CMake 5.8%