bumper. Bumpers visualize collisions by changing the color of all child objects.
true denotes a collision.
<sensor type="bumper"> <name>bumper1</name> <transform> <translate system="world">0.12 0 0</translate> </transform> <children> <cube> <scale>0.02 0.1 0.05</scale> </cube> </children> <params> <color name="active_color" r="0.8" g="0" b="0"/> </params> </sensor>
In the client, feed the sensor data by doing:
bool bumper_collision = ...;
peekabot::SensorData s;
scan.write(bumper_collision);
proxy.set_sensor_data(handle_to_your_sensor, s);
1.5.6