Added LedPlugin system for simulating LEDs/Indicators#3353
Open
jasmeet0915 wants to merge 18 commits intogazebosim:gz-sim10from
Open
Added LedPlugin system for simulating LEDs/Indicators#3353jasmeet0915 wants to merge 18 commits intogazebosim:gz-sim10from
LedPlugin system for simulating LEDs/Indicators#3353jasmeet0915 wants to merge 18 commits intogazebosim:gz-sim10from
Conversation
Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
…vice Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
…ponent Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
…xample world robot Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
Signed-off-by: Jasmeet Singh <jasmeet0915@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎉 New feature
Closes #3245
Summary
gazebo_led_plugin_demo_final-2025-12-28_23.24.45.mp4
<led>element (see example snippet below). Internally the plugin uses the names from the<visual_name>and<light_name>elements with theentitiesFromScopedName()function to get their respective entities<mode>in the SDF each of which can contain a bunch of<step>that describes the state of the mode's<active_leds>during that step in terms of<color>,<on_time>and<intensity>. The plugin applies the different steps of a mode sequentially to the required LEDs inPreUpdate():change_modeservice is advertised by the plugin namespaced with the<led_group_name>or the model name if no LED group name is provided. This service can be requested to trigger a mode change by passing the string name of the required mode.VisualCmdandLightCmdcomponents of the associated visual and light entities of the defined LEDs to set the required color and intensity (intensity is only for light).Test it
The plugin can be tested with the example world added with this PR (video attached above):
Checklist
codecheckpassed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-byandGenerated-bymessages.Backports: If this is a backport, please use Rebase and Merge instead.