-
Notifications
You must be signed in to change notification settings - Fork 562
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
RGB-D odometry using turtlebot4 #1245
Comments
does your robot have base_link link? As the warning said it doesn't exist |
i think it doesn't have a base_link link because i launch driver connecting the camera to my PC through usb connection. So maybe i can see just camera's frame. Running |
I think it's good because every robot has base_link. |
You should use the base frame on the robot/camera of your TF tree ( You can add
What kind of driver? You should make sure that the depth image is correctly registered to your RGB camera. If you are using an OAK camera, they would have already depth computed on the camera. |
i'm running this driver: i tried also to change parameter setting in ssh (without usb connection): is /turtlebot4_1/oakd/stereo/image_raw a ros2 topic for depth image? i'm asking because the encoding is 16UC1 but when i check the parameter: ros2 param get /turtlebot4_1/oakd .oakd.stereo.image_raw.format |
When doing:
I see this:
So for a quick rtabmap test, you can do:
On my machine and my camera (OAK-D), the result is kinda laggy because the camera has huge delay up to 800 ms!
There is may a bug on depthai example. |
there is a weird problem: if i launch |
The frame rate is not constant, the camera driver stops publishing the images for a couple of seconds. You can debug the frame rates with |
Are the preview image and depth correctly registered together? Can you share a rosbag of the three input topics? The update time looks also very long, too long (>400 ms), the robot cannot move very fast or it will lose track of odometry. You may try starting the camera driver with smaller resolution, or set |
i think preview images and depth images are not registered together but i don't know a way to inspect it, how can i share you a rosbag?I cannot send it here beacuse file type is not supported. |
If you have a dropbox or google drive, you can share a public link to that file. |
hi! i'm running
ros2 run rtabmap_odom rgbd_odometry --ros-args
-r /rgb/image:=/color/video/image
-r /depth/image:=/stereo/depth
-r /rgb/camera_info:=/color/video/camera_info
-p approx_sync_max_interval:=0.02
i need the remappings because i've launched a driver to get a depth image topic (otherwise by defalut the turtlebot doesn't have one).
/color/video/image is a bgr image topic (bgr8 encoding)
/stereo/depth is a depth image (16UC1 encoding)
i need to set approx_sync_max_interval:=0.02 to avoid some warnings
the problem is that i'm not able to see anything but warnings:
[ WARN] (2024-11-27 11:20:32.863) MsgConversion.cpp:1994::getTransform() (can transform base_link -> oak_rgb_camera_optical_frame?) Invalid frame ID "base_link" passed to canTransform argument target_frame - frame does not exist. canTransform returned after 0.101187 timeout was 0.1. (wait_for_transform=0.100000)
how can i solve this problem? Thank you in advance
The text was updated successfully, but these errors were encountered: