This application demonstrates a simple setup for using ROS 2 with ReductStore.
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 the ROS package:
colcon build --packages-select reduct_camera
Source the ROS package:
source install/local_setup.bash
Run the ReductStore container:
docker run -d -p 8383:8383 -v ${PWD}/data:/data reduct/store:latest
Run the package with the default parameters:
ros2 run reduct_camera capture_and_store
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"