-
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
lookupTransform at tf2::TimePointZero returns TransformStamped with wrong stamp #565
Comments
Update: I have this behavior only for static transforms |
So I don't actually think that the problem is static transforms, or, at least, not only static transforms. On Rolling, if I do:
Then I get:
That said, there does look to be a corner case in tf2 where it can return a zero timestamp: geometry2/tf2/src/buffer_core.cpp Lines 636 to 651 in 9139e0c
TimePointZero , and the frame number is not in the cache, then it can return an identity transform with a zero time. Could that possibly be what you are seeing?
|
I have the same result as you if doing geometry2/tf2_ros/src/tf2_echo.cpp Lines 140 to 143 in 9139e0c
|
Fixed tf: timestamp of tf is 0With
Non fixed tf: timestamp is from last availableWith
|
Bug report
Required Info:
Steps to reproduce issue
Use
with time
set
totf2::TimePointZero
Check the returned
geometry_msgs::msg::TransformStamped
header.stamp
Expected behavior
It should be set to the actual time of the last available transform between
target_frame
andsource_frame
.Actual behavior
The returned
geometry_msgs::msg::TransformStamped
header.stamp
is 0Additional information
Maybe it is the actual intended behavior, but then how to know the time of the returned transform ?
The text was updated successfully, but these errors were encountered: