-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Could not transform IMU msg from frame "camera_imu_optical_frame" to frame "base_link" #2909
Comments
Hi @cgroves3 What happens if you change unite_imu_method from '1' to '2'? 2 is the value for Linear Interpolation. The other setting is Copy. |
Hey @MartyG-RealSense , thanks for the reply. Unfortunately, I get the same error with unite_imu_method=2. By the way, I've included my tf_tree in case that helps |
I note that in the section of your launch code where you define which streams are enabled (depth and color), there are not commands for enabling the IMU streams (gyro and accel). Setting unite_imu_method alone does not enable IMU, as the IMU topics are disabled by default. Please try adding gyro and accel enable instructions to your parameters list.
|
After enabling them, I get
|
As you are using rtabmap, please try changing the rtabmapviz parameter in your launch arguments to True (it is currently false) and leaving the rviz parameter as false.
|
A new window opened up with some axes, but the axes stayed stationary when I rotated the camera around. |
Thank you. And what happens with the opposite settings?
|
Interesting, so I followed the steps in the video in #2563 and it appears to be working?
|
Does this message cause any problems for your project other than the inconvenience of the log filling up with the messages, please? |
It causes some issues when using RTABMAP for SLAM since it can't find the transform. Today, I found the final missing piece was that I think I needed to change the Thank you for your time and effort @MartyG-RealSense ! |
You are very welcome. It's great to hear that you found the solution. Thanks very much for the update! |
Hi @cgroves3, can you please provide the final launch file? Thx! |
@JTShuai I think you just need this part in replacement of the
I'd prefer not to show to whole file as I'm working on a project that I plan to commercialize. I hope this helps! |
@cgroves3 Thanks for the reply! My current
For the field |
Ah, I think I should not set I also opened a new issue #3173 . Any help would be greatly appreciated! |
I'm experiencing an issue similar to #2215. Here is my launch script. Please bear with me as I'm a little new to ros2
I'm getting the following error messages:
[realsense2_camera_node-4] [INFO] [1697910508.551350146] [camera.realsense_camera]: Stopping Sensor: Stereo Module
[realsense2_camera_node-4] [INFO] [1697910508.567269853] [camera.realsense_camera]: Starting Sensor: Stereo Module
[realsense2_camera_node-4] [INFO] [1697910508.653729059] [camera.realsense_camera]: Open profile: stream_type: Infra(1), Format: Y8, Width: 848, Height: 480, FPS: 30
[realsense2_camera_node-4] [INFO] [1697910508.653857093] [camera.realsense_camera]: Open profile: stream_type: Infra(2), Format: Y8, Width: 848, Height: 480, FPS: 30
[realsense2_camera_node-4] [INFO] [1697910508.653883589] [camera.realsense_camera]: Open profile: stream_type: Depth(0), Format: Z16, Width: 848, Height: 480, FPS: 30
[realsense2_camera_node-4] [INFO] [1697910508.654059240] [camera.realsense_camera]: Stopping Sensor: RGB Camera
[realsense2_camera_node-4] [INFO] [1697910508.662696770] [camera.realsense_camera]: Starting Sensor: RGB Camera
[realsense2_camera_node-4] [INFO] [1697910508.676393751] [camera.realsense_camera]: Open profile: stream_type: Color(0), Format: RGB8, Width: 1280, Height: 720, FPS: 30
[realsense2_camera_node-4] [INFO] [1697910508.676623995] [camera.realsense_camera]: Stopping Sensor: Motion Module
[realsense2_camera_node-4] [INFO] [1697910508.684884718] [camera.realsense_camera]: Starting Sensor: Motion Module
[realsense2_camera_node-4] [INFO] [1697910508.691061468] [camera.realsense_camera]: Open profile: stream_type: Accel(0)Format: MOTION_XYZ32F, FPS: 63
[realsense2_camera_node-4] [INFO] [1697910508.691175166] [camera.realsense_camera]: Open profile: stream_type: Gyro(0)Format: MOTION_XYZ32F, FPS: 200
[realsense2_camera_node-4] [INFO] [1697910508.694376247] [camera.realsense_camera]: RealSense Node Is Up!
[realsense2_camera_node-4] [WARN] [1697910508.709285409] [camera.realsense_camera]:
[imu_filter_madgwick_node-1] [INFO] [1697910508.869217380] [imu_filter]: First IMU message received.
[rgbd_odometry-2] [ERROR] [1697910509.072118500] [rtabmap.rgbd_odometry]: Could not transform IMU msg from frame "camera_imu_optical_frame" to frame "base_link", TF not available at time 1697910508.850821
[rgbd_odometry-2] [ERROR] [1697910509.274238295] [rtabmap.rgbd_odometry]: Could not transform IMU msg from frame "camera_imu_optical_frame" to frame "base_link", TF not available at time 1697910508.856719
[rgbd_odometry-2] [ERROR] [1697910509.477363644] [rtabmap.rgbd_odometry]: Could not transform IMU msg from frame "camera_imu_optical_frame" to frame "base_link", TF not available at time 1697910508.991390
[rgbd_odometry-2] [ERROR] [1697910509.680161339] [rtabmap.rgbd_odometry]: Could not transform IMU msg from frame "camera_imu_optical_frame" to frame "base_link", TF not available at time 1697910509.137486
[rgbd_odometry-2] [ERROR] [1697910509.883610982] [rtabmap.rgbd_odometry]: Could not transform IMU msg from frame "camera_imu_optical_frame" to frame "base_link", TF not available at time 1697910509.253501
[rgbd_odometry-2] [ERROR] [1697910510.087743900] [rtabmap.rgbd_odometry]: Could not transform IMU msg from frame "camera_imu_optical_frame" to frame "base_link", TF not available at time 1697910509.507531
[rgbd_odometry-2] [ERROR] [1697910510.291350698] [rtabmap.rgbd_odometry]: Could not transform IMU msg from frame "camera_imu_optical_frame" to frame "base_link", TF not available at time 1697910509.698227
[rgbd_odometry-2] [ERROR] [1697910510.494141992] [rtabmap.rgbd_odometry]: Could not transform IMU msg from frame "camera_imu_optical_frame" to frame "base_link", TF not available at time 1697910509.929486
[rgbd_odometry-2] [ERROR] [1697910510.697950425] [rtabmap.rgbd_odometry]: Could not transform IMU msg from frame "camera_imu_optical_frame" to frame "base_link", TF not available at time 1697910510.115256
[rgbd_odometry-2] [ERROR] [1697910510.900790041] [rtabmap.rgbd_odometry]: Could not transform IMU msg from frame "camera_imu_optical_frame" to frame "base_link", TF not available at time 1697910510.337561
The text was updated successfully, but these errors were encountered: