depthai-ros icon indicating copy to clipboard operation
depthai-ros copied to clipboard

rgb stream for oak 1

Open aditdoshi333 opened this issue 4 years ago • 2 comments

Hello,

Currently I am using OAK 1. I just want to consume rgb stream from ros. Can you please help which example I have to run? And how to change the image resolution? And do I need to change the calibration file?

aditdoshi333 avatar Oct 12 '21 06:10 aditdoshi333

For 4k stream, I did the following change

colorCam->setResolution(dai::ColorCameraProperties::SensorResolution::THE_4_K); at https://github.com/luxonis/depthai-ros-examples/blob/6c7af8ccc6fe2480a8bec73b160ecd16cd6d6194/depthai_examples/src/rgb_publisher.cpp#L22

Currently it is using color.yaml file. Do I need to change that also?

aditdoshi333 avatar Oct 12 '21 06:10 aditdoshi333

Yes. that would send 4K. And color.yaml intrinsic needs to be scaled accordingly. But the necessity of the camera_info depends on your task

saching13 avatar Oct 12 '21 19:10 saching13

Closing due to inactivity, if you think this should remain open, please tag me in a comment here.

Serafadam avatar Nov 07 '22 10:11 Serafadam