Skip to content
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

rviz2 MarkerArray transform problem #1194

Open
johannesn opened this issue May 3, 2024 · 2 comments
Open

rviz2 MarkerArray transform problem #1194

johannesn opened this issue May 3, 2024 · 2 comments
Assignees

Comments

@johannesn
Copy link

johannesn commented May 3, 2024

In our project we have a vehicle driving around, doing localization and regognizing objects in its surrounding as it goes. The localization determines how the vehicle moves through the world frame and thus publishes the transform from vehicle to world frame. The objects are published as a MarkerArray in the vehicle frame. The algorithm for recognizing objects takes less time than the localization, thus the MarkerArray is published before the transform from vehicle frame to odometry frame is ready. In rviz2 we use the world frame (i.e. odometry frame) as Fixed frame. Now rviz2 does not display the MarkerArray and reports a lot of errors of the kind "transform would require extrapolation into the future". However if we use multiple Marker's instead of the MarkerArray, the transform is successful. The transform is successfully applied to a multitude of messages (e.g. PointCloud2, PoseArray) however MarkerArray is the only message with problems with the transformation.

In our project, we have a vehicle moving around, performing localization and object recognition in its surroundings as it progresses. Localization determines how the vehicle moves through the world frame and thus publishes the transform from the vehicle to the world frame. Objects are published as a MarkerArray in the vehicle frame. The object recognition algorithm takes less time than localization, so the MarkerArray is published before the transform from the vehicle frame to the odometry frame is ready. In rviz2, we use the world frame (i.e., odometry frame) as the Fixed frame. Now rviz2 does not display the MarkerArray and reports many errors of the kind "transform would require extrapolation into the future." However, if we use multiple Markers instead of the MarkerArray, the transform is successful. The transform is successfully applied to a multitude of messages (e.g., PointCloud2, PoseArray); however, MarkerArray is the only message with problems with the transformation.

Maybe this issue is related to another issue here:
#363

I set up a sample project with sample data:
https://github.com/johannesn/rviz_marker/blob/main/README.md

In the following pictures, the red boxes are Marker's, while the blue ones is a MarkerArray.
Failing transformation in different frame
Bildschirmfoto 2024-05-03 um 11 16 35
Successful transformation in same frame
Bildschirmfoto 2024-05-03 um 11 37 41

Bildschirmaufnahme.2024-05-03.um.11.17.53.mov
@Gabry993
Copy link

Gabry993 commented Dec 3, 2024

Hello, are there any updates about this? I have the same issue with marker arrays published before tf is available. Is it possible that rviz in this case is not looking for the latest available transform, but it's using the timestamp from the array message?

@johannesn
Copy link
Author

Also still waiting for updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants