luxonis / depthai-ros

Official ROS Driver for DepthAI Sensors.
MIT License
239 stars 173 forks source link

Add camera image orientation param #364

Closed jasiex01 closed 10 months ago

jasiex01 commented 11 months ago

Overview

Author: Jan Hernas

Issue

Issue link (if present): - Issue description: I have the OAK camera installed on my robot upside down (rotated 180 degrees). The depthai api gives a couple of options for rotating the image. All I did was output them to a ROS parameter and enabled the user to set a parameter that will rotate the image if necessary. Related PRs -

Changes

ROS distro: Humble List of changes: -Add a map from string to CameraImageOrientation -Add a parameter for camera image orientation and set the image orientation based on this parameter both in color camera and mono camera

Testing

Hardware used: OAK D-W, UpBoard 4000 Depthai library version: 2.22.0

Visuals from testing

Add screenshots/gifs/videos from RVIZ or other visualizers demonstrating the effect of the changes when applicable. Screenshot from 2023-08-08 11-35-09

jasiex01 commented 10 months ago

Changed the parameter name