public abstract class RobotMovementCallback extends Object
The robot movement callback.
Extend this abstract class to execute custom code when the end user accepts/cancels the request to move the robot or when errors occur.Constructor and Description |
---|
RobotMovementCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onCancel(MovementCancelEvent event)
This method is called if the end user cancels the move request (before reaching the target position).
|
abstract void |
onComplete(MovementCompleteEvent event)
This method is called when the robot has been moved to the desired target position by the end user.
|
void |
onError(MovementErrorEvent event)
This method is called when an error occurs in the move request.
|
public abstract void onComplete(MovementCompleteEvent event)
This method is called when the robot has been moved to the desired target position by the end user.
This method must be overridden.event
- This object holds information related to the onComplete event.public void onCancel(MovementCancelEvent event)
This method is called if the end user cancels the move request (before reaching the target position).
Overriding this method is optional.event
- This object holds information related to the onCancel event.public void onError(MovementErrorEvent event)
This method is called when an error occurs in the move request.
Overriding this method is optional.event
- This object holds information related to the onError event.Copyright © 2020. All rights reserved.