-
Notifications
You must be signed in to change notification settings - Fork 212
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
Re-enable use of tf message filter #375
Conversation
If I understand this correctly enabling tf filters does not make sure that tf is used as a transformer plugin via the On the other hand the ideas behind #346 were never realized since in fact tf is probably always used. Other usages of rviz without tf and ros messages will make use of completely independent display classes. So maybe it is best to revert #346 as this additional complexity seems unnecessary now and this would also remove the pointer casts from this pr. However, I am not sure how easy this can be done now -> @wjwwood . |
Yes, I guess this defeats the whole purpose of #346. I will try incorporating tf filters into the plugin mechanism itself if it possible. |
This will be very hard, I believe:
That's a problem, where I see only two possible solutions:
I think the second solution is rather awkward and the first is quite hard. Given that, I also believe it would be best to revert the introduction of the transformer plugin hierarchy, if @wjwwood agrees. If it's worthwhile, I could make a PR reverting it to see how difficult it is from a technical perspective. |
Or can this be handled using something similar to |
Yes, that's essentially what I tried to convey with my second option. That will be doable, I just wonder how understandable it'll be afterwards. |
@Martin-Idel @wjwwood Is there any update on the mechanism to be followed? |
Sorry guys, this takes more thought and time than I have at the moment. I'll get to it as soon as I can. |
Any news about this PR? Are message_filters enabled in Rviz2? |
Correct me if I'm wrong, but currently it looks like the only displays that require I spoke with @wjwwood, and we agree that it would be better keep the frame transformer abstraction. |
I've proposed changes to tf2 (ros2/geometry2#121) and opened #422 as a possible approach for supporting the TF message filter with any FrameTransformer. |
May I ask about the current state? |
ros2/geometry2#121 and #422 are ready for review. Once those are in, I suggest we rebase this PR to make use of the changes in order to remove the use of |
@shiveshkhaitan the above dependencies have been merged, are you still interested in following this through? I'm looking forward to this change! |
Yes, I am currently working on the rebase. Should be getting it done in some time soon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!
I've done a first pass. I haven't tested it yet.
rviz_default_plugins/include/rviz_default_plugins/displays/laser_scan/laser_scan_display.hpp
Outdated
Show resolved
Hide resolved
rviz_default_plugins/src/rviz_default_plugins/displays/laser_scan/laser_scan_display.cpp
Outdated
Show resolved
Hide resolved
rviz_default_plugins/src/rviz_default_plugins/displays/map/map_display.cpp
Outdated
Show resolved
Hide resolved
rviz_default_plugins/include/rviz_default_plugins/displays/image/image_display.hpp
Outdated
Show resolved
Hide resolved
rviz_default_plugins/src/rviz_default_plugins/displays/pointcloud/point_cloud2_display.cpp
Outdated
Show resolved
Hide resolved
rviz_default_plugins/src/rviz_default_plugins/displays/pointcloud/point_cloud_display.cpp
Outdated
Show resolved
Hide resolved
rviz_default_plugins/test/rviz_default_plugins/transformation/frame_transformer_tf_test.cpp
Outdated
Show resolved
Hide resolved
We rebased this PR again ontop of the latest nightly packaging job and with changing the |
rviz_default_plugins/test/rviz_default_plugins/transformation/frame_transformer_tf_test.cpp
Outdated
Show resolved
Hide resolved
rviz_default_plugins/src/rviz_default_plugins/displays/laser_scan/laser_scan_display.cpp
Show resolved
Hide resolved
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Thanks @shiveshkhaitan! LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re enable use of TF Filter in rviz_common and rviz_default_plugins. This connects to issue#55 issue#359