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

Use components for RobotPropertyKind #265

Open
wants to merge 3 commits into
base: xiyu/optional_model_properties
Choose a base branch
from

Conversation

xiyuoh
Copy link
Member

@xiyuoh xiyuoh commented Feb 3, 2025

This PR is a follow up to #263, specifically this review comment about avoiding excessive serialization of Robot property data. The previous approach opted to store all Robot properties and property kinds in json to avoid having to query multiple different components on load/save. This PR expanded on the plugin approach by triggering updates to components via the property plugin's systems and only serialize data when a value has changed.

Another change is the use of a reusable plugin template InspectRobotPropertyKindPlugin with widget systems for all Robot property kinds rather than having the widgets stored in a resource. This allows each of the property kind plugins to have better access to world variables, instead of having to pass variables through ShowRobotPropertyWidgetFn in the previous implementation.

Signed-off-by: Xiyu Oh <xiyu@openrobotics.org>
Signed-off-by: Xiyu Oh <xiyu@openrobotics.org>
Signed-off-by: Xiyu Oh <xiyu@openrobotics.org>
@xiyuoh xiyuoh requested a review from mxgrey February 3, 2025 14:29
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

Successfully merging this pull request may close these issues.

1 participant