Closed FilipeAlmeida-Movai closed 2 years ago
Should we change the name material_controller into something more specific like emissive_property_controller?
We can change it.
Should we change the name material_controller into something more specific like emissive_property_controller?
We can change it.
Cool. Just thought the material_controller is too wide context.
This PR adds the EmissivePropertyController GUI plugin that enables the ability to change Mode_Link material emissive color during runtime simulation. It is subscribing to a StringMsg on topic /model/material The message must follow the structure: "Model_Name::Link_Name-RED-GREEN-BLUE-ALPHA" The color data accept float range 0.0 to 1.0. Also, this is a GUI plugin that needs to be loaded in the simulation to enable the color change.
Test:
ign topic -t /model/material -m ignition.msgs.StringMsg -p "data: 'tugbot::led_link-1-0-0-1'"
This will change the led_link of the tugbot model to the Red color. You can change the message to send different colors.
[^note]: Put an
x
into the [ ] to show you have filled the information. The template comes from https://github.com/MOV-AI/.github/blob/master/.github/pull_request_template.md You can override it by creating .github/pull_request_template.md in your own repository