|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MobileRobotManager
The robot manager is the central class where mobile robots are managed. Mobile robots must establish a connection to a robot manager to appear in the system and be considered online. So a list of all online robots can be obtained here.
| Method Summary | ||
|---|---|---|
void |
addListener(MobileRobotListener listener)
Adds a listener for events if any mobile robot is added to or removed from the system. |
|
AsyncCount |
getCount()
|
|
ResourcePool |
getResourcePool()
Provides access to the mobile robot resources directly. |
|
|
getRobot(Class<T> robotInterface,
int robotId)
Provides a more specialised access to a robot. |
|
|
getRobot(Class<T> robotInterface,
String name)
Provides a more specialised access to a robot. |
|
MobileRobot |
getRobot(int robotId)
|
|
MobileRobot |
getRobot(String name)
|
|
Collection<MobileRobot> |
getRobots()
|
|
|
getRobots(Class<T> robotInterface)
Returns only those robots that are compatible with a specialised robot facade type. |
|
MobileRobotType |
getType(int typeId)
Returns the mobile robot type specified by the corresponding type id. |
|
MobileRobotType |
getType(String typeName)
Returns the mobile robot type specified by the corresponding type name. |
|
Collection<MobileRobotType> |
getTypes()
Returns all available mobile robot types. |
|
boolean |
hasRobot(int robotId)
|
|
boolean |
hasRobot(String name)
|
|
boolean |
hasType(int typeId)
Returns true if the mobile robot type with the given id exists. |
|
boolean |
hasType(String typeName)
Returns true if the mobile robot type with the given name exists. |
|
| Methods inherited from interface com.kuka.resource.pool.FacadePool |
|---|
addFacadeListener, facade, getAll, getAll, getAny, getAny, getAny, getFacade, removeFacadeListener, size |
| Method Detail |
|---|
ResourcePool getResourcePool()
AsyncCount getCount()
boolean hasRobot(String name)
name - a robot name
MobileRobot getRobot(String name)
name - a robot name
<T> T getRobot(Class<T> robotInterface,
String name)
T - the specialised robot interface typerobotInterface - a specialised robot interface typename - name of the robot
IllegalArgumentException - if the specified facade type is incompatible with the robotboolean hasRobot(int robotId)
robotId - a robot id
MobileRobot getRobot(int robotId)
robotId - a robot id
<T> T getRobot(Class<T> robotInterface,
int robotId)
T - the specialised robot interface typerobotInterface - a specialised robot interface typerobotId - a robot id
IllegalArgumentException - if the specified facade type is incompatible with the robotCollection<MobileRobot> getRobots()
<T> Collection<T> getRobots(Class<T> robotInterface)
T - the specialised robot interface typerobotInterface - a specialised robot interface type
void addListener(MobileRobotListener listener)
listener - a listener for mobile robots going on- or offlineCollection<MobileRobotType> getTypes()
boolean hasType(int typeId)
typeId - the id of the mobile robot type
MobileRobotType getType(int typeId)
typeId - the id of the mobile robot type
boolean hasType(String typeName)
typeName - the name of the mobile robot type
MobileRobotType getType(String typeName)
typeName - the name of the mobile robot type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||