Robotics StackExchange | Archived questions

How can I change traffic lights?

When I run the traffic lights in the Gazebo model in simulation, it only lights green. In the work I want to do, the lights need to be changed. How can I do that.

Asked by hogun18 on 2021-06-19 11:00:07 UTC

Comments

Answers

I suppose it depends on which traffic light model you are using... The only traffic light that I am aware of was in citysim (plugin and world example), which may do what you need but might need some modification for gazebo-11.

A more involved DIY alternative is to extend the flashlight plugin to have lights cycle in whatever way you want.

Asked by shonigmann on 2021-06-22 13:54:42 UTC

Comments