OnMoveEvent¶
Event that triggers if the robot moves.
Constructor
OnMoveEvent ([action, d, t]) |
Event that triggers if the robot moves. |
Details
-
class
OnMoveEvent
(action=None, d=5, t=0)[source]¶ Constructs an OnMoveEvent.
Parameters: - action – The function that will be called when the robot moves.
- d – The minimum distance that the robot has to move before this event triggers.
- t – Time to wait before this event becomes active. Usefull if the event is trigger by movement, and you wish to give the robot some time to come to a halt before triggering the event.