-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add plotter 2D for arbitrary message types and fields #20
base: main
Are you sure you want to change the base?
Conversation
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.
hi! thank you so much for the contribution, and thank you for your patience until i finally review this.
I looked at the diff to the original JSK implementation, that looks good.
I like the ability to access numeric fields of any topic, but i don't want to merge that as is for the following reason: The "easy" use case of selecting a F32 topic in the "create visualization" dialog ("Add" button) does not create a working display, and selecting a F32 topic from the "Topic" drop down does not work (it does not show any topics).
The first issue is due to required "topic field" and "topic message type" properties which are empty by default (which is never a valid state), the second is related, but may just be a missing filter for F32 message type in the RosTopicProperty (i'm not very familiar, and it doesnt seem to have any docs?)
If those issues are harder to work around than i think (maybe due to ros/rviz expecting a fixed message type) i would prefer just sticking with F32 message for now, trading some flexibility for user experience.
I think the average rviz UX is already rather bad and can't really afford even the smallest papercuts...
Last, please add a brief sentence to the docs about the capability/necessity to select a message field and specifying the topic type.
-Jonas
* Copyright (c) 2012, Willow Garage, Inc. | ||
* Copyright (c) 2017, Bosch Software Innovations GmbH. | ||
* Copyright (c) 2024, rcp1 |
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.
is this actually from willow garage and bosch or just a copy-paste oversight? if so, where can i find the original source? (and can we maybe depend on some upstream package for this?)
/** @brief Convenience typedef so subclasses don't have to change their implementation compared to | ||
* templated topic display. */ | ||
typedef RosBabelFishTopicDisplay RTDClass; |
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.
i dont understand this, it seems unused?
#include <rviz_common/properties/float_property.hpp> | ||
#include <rviz_common/properties/int_property.hpp> | ||
#include <rviz_common/properties/string_property.hpp> | ||
#include <rviz_common/properties/ros_topic_property.hpp> |
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.
unused
Ported the jsk plotter 2D.
I've enhanced it with ros_babel_fish to subscribe to any message type and extract any field which is implicitly convertable to double.