Simulating a strip of addressable LEDs?

asked 2020-02-21 22:47:54 -0500

mikepurvis gravatar image

I am doing a small project using some strips of individually-addressable LEDs similar to these:

I already have a ROS interface to the microcontroller generating the PWM signal, now I'm hoping to use Gazebo to help visualize what the strips will do in reaction to various sensor inputs. As far as I can tell, the simplest thing would be to have a plugin that just generates a small cube of geometry for each individual LED and then changes the color of each in response to the command.

However, this seems clunky and involves a lot of extra geometry, especially if the strips will just be laying flat on a surface. So I'm curious for any alternative ideas around this— for example, is there a way to update an object's texture to something generated programmatically at runtime?

I'm using Gazebo 11.

edit retag flag offensive close merge delete