Skip to content

reductstore/reduct-ros-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reduct-ros-example

This application demonstrates a simple setup for using ROS 2 with ReductStore.

Python environment

To use Python environment:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

You need to add COLCON_IGNORE to the .venv directory to avoid colcon trying to build it.

touch .venv/COLCON_IGNORE

Build with colcon

Build the ROS package:

colcon build --packages-select reduct_camera

Source the ROS package:

source install/local_setup.bash

Run ReductStore in a Docker container

Run the ReductStore container:

docker run -d -p 8383:8383 -v ${PWD}/data:/data reduct/store:latest

Run the ROS package

Run the package with the default parameters:

ros2 run reduct_camera capture_and_store

Test the application with a USB camera

Launch the webcam:

ls /dev/video*
# You should see /dev/video0 (and possibly /dev/video1, etc. if multiple video capture interfaces are connected)

Run the USB camera (e.g. /dev/video0 at 1280x720):

ros2 run v4l2_camera v4l2_camera_node --ros-args -p image_size:="[1280,720]" -p video_device:="/dev/video0"

Ressources

About

This application demonstrates a simple setup for using ROS with ReductStore.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages