Skip to content

a simple ros2 node for saving all images from the ros topic

License

Notifications You must be signed in to change notification settings

dark516/ros2_image_saver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROS2 image saver

This is a simple ros2 node that allows you to save every frame sent to the ros topic. This can be useful in saving logs, program execution results, and other things.

Installation

Prerequirements

  • ROS2 Rolling (or your desired ROS2 distribution)
  • A topic with data to save (sensor_msgs/msg/Image)

Setting Up the Node

  1. Clone this repository to your ROS2 workspace:
cd ~/ros2_ws/src
git clone https://github.com/dark516/ros2_image_saver
  1. Build the package:
cd ~/ros2_ws
colcon build --packages-select ros2_image_saver
  1. Source the workspace:
source ~/ros2_ws/install/setup.bash

Running the Node

  1. Run the node with an explicit indication of the port received in the previous step
ros2 run ros2_image_saver_pkg image_saver --dir /path/to/save/images (default: images)

And now every frame sent to the topic will be saved to the specified directory

Photos of the node's work

About

a simple ros2 node for saving all images from the ros topic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages