FlapSensor & FlapState ¶
FlapSensor represents a sensor associated with a flap that can be open or closed.
See also javadoc: FlapSensor.
FlapState is a structure grouping the flap state of a
FlapSensor (open or not) and the last time this state changed.
See also javadoc: FlapState.
How to use it¶
Retrieving the charging flap sensor¶
Pepper is equipped with a charging flap at his back. When his charging flap is open, all autonomous wheel motion is disabled, which makes it useful for the application developer to retrieve the charging flap state. The Power service exposes a flap sensor object representing that charging flap.
null if the robot does not have a charging flap.
Reading a flap state¶
To read the
FlapState of a
FlapSensor, use the