-
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
[ros2-beta] Missing TFs in "/tf" topic when tf_publish_rate > 0 #2522
Comments
Hi @Tristis116 In Intel's ros2_beta wrapper documentation, it states for tf_publish_rate that "double, positive values mean dynamic transform publication with specified rate, all other values mean static transform publication. Default is 0". The documentation also states that if the /static_tf topic is disabled then transformations will be published if tf_publish_rate is set to 1.0 in the launch file or on the command-line using https://github.com/IntelRealSense/realsense-ros/tree/ros2-beta#limitations |
Hi @MartyG-RealSense |
I will highlight your query to the RealSense ROS team. Thanks very much for your patience! |
Hi @Tristis116 Just an update to let you know that I have been discussing your case with the RealSense ROS team. At this time it is not known why you are experiencing the reported issue with /tf, unfortunately. |
Hi @MartyG-RealSense
/tf has only transformation for color:
This behavior doesn't correspond to the
If I disable color stream, then /tf has only transforms for depth. /tf has only the last transform of /tf_static. And the last transform of /tf_static depends on enabled streams and output of rs2::device::query_sensors. |
I have passed your latest information above to the RealSense ROS team. Thanks very much for the update. |
Hi @Tristis116 The issue is still under discussion with the RealSense ROS team, so I have added an Enhancement label to this case to signify that it should be kept open. Thanks very much for your patience! |
@MartyG-RealSense, PR #2676 was merged. |
Thanks so much, @SamerKhshiboun :) |
Thanks very much @Tristis116 for the update! |
When parameter
tf_publish_rate
> 0, the node publishes all TFs from_static_tf_msgs
.This line clears static transforms saved in the RS node before adding transforms for each sensor. After all sensors initialization,
_static_tf_msgs
has only TFs for the last sensor.So, dynamic transform publisher doesn't publish all TFs as static transform publisher does, but only TFs of the last initialized sensor.
It looks like a mistake, because
_static_tf_msgs
, as its name suggests, should have all static TFs inside it for the dynamic transform publisher.The text was updated successfully, but these errors were encountered: