Home

Awesome

<a href="https://107-systems.org/"><img align="right" src="https://raw.githubusercontent.com/107-systems/.github/main/logo/107-systems.png" width="15%"></a> :floppy_disk: l3xz_openmv_camera

Build Status Spell Check status

ROS driver for OpenMV Cam H7 R2, including support for thermal vision with FLIR Lepton adapter module.

<p align="center"> <a href="https://github.com/107-systems/l3xz"><img src="https://raw.githubusercontent.com/107-systems/.github/main/logo/l3xz-logo-memento-mori-github.png" width="40%"></a> </p> <p align="center"> <img src="doc/img/rgb.png" width="300" height="300"><img src="doc/img/thermal.png" width="300" height="300"> </p>

Setup

Prepare camera

  1. Connect camera via USB
  2. Copy camera_script/main.py to the USB drive of the camera
  3. Unmount camera
  4. Reconnect camera

Additional dependencies

How-to-build

cd $COLCON_WS/src
git clone --recursive https://github.com/107-systems/l3xz_openmv_camera
cd $COLCON_WS
source /opt/ros/humble/setup.bash
PYTHONWARNINGS=ignore:::setuptools.command.install,ignore:::setuptools.command.easy_install,ignore:::pkg_resources colcon build --packages-select l3xz_openmv_camera

How-to-run

cd $COLCON_WS
. install/setup.bash
ros2 run l3xz_openmv_camera l3xz_openmv_camera

Interface Documentation

Published Topics

Default nameTypeDescription
/l3xz/openmv/image_colorsensor_msgs/ImageCamera image
/l3xz/openmv/image_color_compressedsensor_msgs/CompressedImageJPEG compressed image
/l3xz/openmv_camera_infosensor_msgs/CameraInfoCamera info
/l3xz/openmv/input_nstd_msgs/BoolState of GPIO configured as input

Services

Default nameDescription
/l3xz/openmv/rgbSet binary values to RGB LED
/l3xz/openmv/irSet IR LED
/l3xz/openmv/gpio_configConfigure GPIO pin
/l3xz/openmv/gpio_setSet GPIO pin configured as output

Parameters

NameDefaultDescription
image_topicimage_colorRGB image
image_queue1Queue size for RGB image topic
info_topiccamera_infoCamera configuration
info_queue1Queue size for camera info topic
show_imagefalseShow RGB image in OpenCV window
port/dev/ttyACM0Serial port of camera
frames_hz10fps
gpio_hz1GPIO update rate
frame_idopenmv_camera_framecamera tf frame
resolutionQQVGAimage resolution