/reduct-ros-example

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

Primary LanguagePythonMIT LicenseMIT

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:

ros2 run usb_cam usb_cam_node_exe --ros-args --params-file ./usb_cam_config.yaml

Ressources