|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Commandable
Central interface for issuing commands to a mobile robot.
| Method Summary | ||
|---|---|---|
void |
addCommandStateListener(com.kuka.command.ICommandStateListener listener)
Adds a state listener to the command pipe. |
|
void |
addRequestStateListener(RequestStateListener<RequestContainer> listener)
Adds a state listener to request state changes. |
|
void |
cancelAll()
Cancels all commands and requests, including those that have been started by another commanding instance and may still be running. |
|
void |
cancelAllCommands()
Cancels all command execution containers which are currently executed or queued. |
|
void |
cancelAllRequests()
Cancels all active request containers. |
|
|
canExecute(C command)
Tests whether the command can be executed by this robot and if the parameters are correct for this robot. |
|
|
execute(C command)
Issues a command to the robot and blocks until it is finished executing, i.e. the state of the corresponding container changed to NavExecutionState.FINISHED. |
|
|
execute(Request<R> request)
Issues a request to the robot and blocks till the request is first updated. |
|
|
executeAsync(C command)
Issues a command to the robot and returns immediately so the command is executed asynchronously. |
|
|
executeAsync(Request<R> request)
Issues a request to the robot. |
|
Collection<com.kuka.command.ICommandExecutionContainer<?,?,?>> |
getAllCommands()
|
|
Collection<RequestContainer> |
getAllRequests()
|
|
void |
removeCommandStateListener(com.kuka.command.ICommandStateListener listener)
Removes the given state listener from the command pipe. |
|
void |
removeRequestStateListener(RequestStateListener<RequestContainer> listener)
Removes the given state listener from receiving request state changes. |
|
| Method Detail |
|---|
<C extends com.kuka.command.ICommand<C,O>,O extends com.kuka.command.ICommandExecutionContainer<C,?,?>> boolean canExecute(C command)
C - The command type.O - The type of the command container.command - A command.
<C extends com.kuka.command.ICommand<C,O>,O extends com.kuka.command.ICommandExecutionContainer<C,?,?>> O execute(C command)
NavExecutionState.FINISHED.
C - The command type.O - The type of the command container.command - The command to execute.
<C extends com.kuka.command.ICommand<C,O>,O extends com.kuka.command.ICommandExecutionContainer<C,?,?>> O executeAsync(C command)
C - The command type.O - The type of the command container.command - The command to execute.
void cancelAll()
The method blocks until all known containers have finished. After the execution of this method no more command execution containers are executed.
void cancelAllCommands()
The method blocks until all containers have finished. After the execution of this method no more command
execution containers are executed. Future calls to the method ICommandPipe.execute(ICommand) and to the
method ICommandPipe.executeAsync(ICommand) are ignored.
Collection<com.kuka.command.ICommandExecutionContainer<?,?,?>> getAllCommands()
void addCommandStateListener(com.kuka.command.ICommandStateListener listener)
listener - A state listener which is called (asynchronous) whenever a command execution container changes its
state.void removeCommandStateListener(com.kuka.command.ICommandStateListener listener)
listener - The state listener which has to be removed from the command pipe.<R extends RequestContainer> R execute(Request<R> request)
R - The type of the result container.request - The request to the robot.
<R extends RequestContainer> R executeAsync(Request<R> request)
R - The type of the result container.request - The request to the robot.
void cancelAllRequests()
Collection<RequestContainer> getAllRequests()
void addRequestStateListener(RequestStateListener<RequestContainer> listener)
listener - a state listenervoid removeRequestStateListener(RequestStateListener<RequestContainer> listener)
listener - a state listener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||