MOV-AI / movai_ign_plugins

Repository for holding the system and gui plugins for the ignition simulator
Other
0 stars 0 forks source link

Feature/color actuator plugin #39

Closed FilipeAlmeida-Movai closed 2 years ago

FilipeAlmeida-Movai commented 2 years ago

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:

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

FilipeAlmeida-Movai commented 2 years ago

Should we change the name material_controller into something more specific like emissive_property_controller?

We can change it.

MithunKinarullathil commented 2 years ago

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.