-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
need RGB and DEPTH image topic of the same size #643
Comments
Hi @IacopoFornai, resizing images is a little bit tricky since we have two separate resize mechanisms, this is explained on this and this documentation pages. Although I don't think you can set it to output 250x250 image without issues in the alignment, you can get close to that and resize further by the means of writing some additional ROS nodes to do that.
You could also try setting Regarding message types, by |
Hi @Serafadam thanks for your help again, i'm still trying to find a good configuration to run rtabmap, now i'm working with [component_container-1] [WARN] [1737645770.865692379] [rtabmap]: We received odometry message, but we cannot get the corresponding TF odom->oak at data stamp 1737645770.358590s (odom msg stamp is 1737645770.325299s). Make sure TF of odometry is also published to get more accurate pose estimation. This warning is only printed once. [component_container-1] [WARN] [1737645771.551586273] [rgbd_odometry]: The time difference between rgb and depth frames is high (diff=0.033313s, rgb=1737645770.525279s, depth=1737645770.491966s). You may want to set approx_sync_max_interval lower than 0.02s to reject spurious bad synchronizations or use approx_sync=false if streams have all the exact same timestamp. can you give me some hints for solving these problems? Regarding the second warnings i used to set |
Hi @IacopoFornai, you can refer to this part of documentation w.r.t syncing |
hi @Serafadam, i'm trying to launch [component_container-1] terminate called after throwing an instance of 'std::system_error' i tried to launch just camera.launch.py and i have the same error, so i think the problem is there, i attach my terminal lines do you have any hints on how to solve this problem? |
small follow up: it seems like remappings the topics in the launch file brings problem, i explain what i've done. i remapped in this way: remappings = [ if i make this change, then i have the problem i wrote in the issue above, if i leave the launch file as it is, rtabmap starts without problem |
Hi, could you provide logs after enabling DEPTHAI_DEBUG=1? |
hi @Serafadam ! i'm working with a turtlebot4 equipped with oak-d camera. i'm launching
ros2 launch turtlebot4_bringup oakd.launch.py
and i see that this launch file runs something from depthai-ros-driver.
changing config file https://github.com/turtlebot/turtlebot4_robot/blob/humble/turtlebot4_bringup/config/oakd_pro.yaml
i change
i_pipeline_type: RGB to RGBD to get depth image topic
i_height: 720 to 250 to match preview_image size 250x250 (rgb image)
i_width: 1280 to 250 to match preview_image size 250x250 (rgb image)
i need bgr and depth images to be the same size beacuse it is a requirement i need for running a visual odometry algorithm (rtabmap)
but when i change i_height and i_width to 250 and run the launch file, camera is not working anymore and i'm getting an error on terminal.
Is there a way to fix it or maybe another approach to have bgr and depth images of the same size? i tried all depthai-ros-driver and depthai-example and i found images of the same size but i had big delays, intead using
ros2 launch turtlebot4_bringup oakd.launch.py and changing i_pipeline_type: RGB to RGBD i'm getting fewer delays so it could be the best solution.
another requirement is that i need ros2 message of type Image and not CompressedImage
Thank you for your help!
The text was updated successfully, but these errors were encountered: