ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Gazebo doesn't have fluid simulation, so it would have to be some other visual indicator involving motion of rigid bodies or lights.

You could have a brightly colored object with no <collision> that is on a linear/prismatic actuator that retracts inside another object that hides it when off, then is set to protrude out and become visible when the valve is on.

Lights aren't yet well integrated, it looks like there is now a pull request to make it possible to attach lights to a robot https://bitbucket.org/osrf/gazebo/issues/900/allow-attachment-of-lights-to-links though that will take a while to make it into a major gazebo release and be integrated with gazebo_ros. It is possible to create a light through the gazebo_ros spawn model service and then turn the light on and off through another service call, and it could also be manually positioned through a gazebo ros topic interface to move around with a mobile robot.

You might also consider only putting visual indicators of this sort in rviz visualizations (a Marker could change color from red to green very easily in rviz) instead of gazebo.