|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.mapping.AbstractMapper<SunriseMappingToken>
com.kuka.roboticsAPI.controllerModel.sunrise.mapping.SunriseMapper
com.kuka.roboticsAPI.controllerModel.sunrise.mapping.RobotMapper
public abstract class RobotMapper
Mapper for robot objects.
| Nested Class Summary | |
|---|---|
static class |
RobotMapper.ValueType
Which type of measurement to use by default. |
| Field Summary | |
|---|---|
protected static String |
DEVICE_MAPPING_ALPHA_INPORT
Key used to identify alpha inport of device. |
protected static String |
DEVICE_MAPPING_PORTS_KEY
Key used to identify the device mapping ports data. |
protected static String |
DEVICE_MAPPING_TYPE_KEY
Key used to identify the device mapping type data. |
static String |
IGNORE_MASTERING_STATE
If this key is set, the motion will not be stopped if the robot is unmastered. |
static String |
NO_AXIS_LIMIT
If this key is set validator module will not take axis limit into account. |
static String |
NO_DEFAULT_STOP_STRATEGY
If this key is set, no default mapping of the safety stop signal will be applied. |
| Constructor Summary | |
|---|---|
RobotMapper()
|
|
| Method Summary | |
|---|---|
protected boolean |
addAxisValidator(ISunriseRobot robot)
Indicates that the axis validator should be included and assigned to the resulting SPR. |
static RobotObserver |
createObserver(Robot robot,
SPR spr)
Creates an observer for the given robot. |
static IMotionControlMode |
getCurrentMotionControlMode(Device currentRobot)
Gets the current motion control mode of the given robot. |
protected static OutPort |
getObserverAlphaOutport(Robot robot,
RobotObserver observer)
Gets the alpha output port of the observer depending on the last motion. |
protected static OutPort |
getObserverCartPositionOutport(Robot robot,
RobotObserver observer)
Gets the cartesian position output port of the observer depending on the last motion. |
protected static String |
getPipeName(ISunriseRobot robot,
IMotionControlMode mode)
Gets the name of the pipe for the specified device and controlMode. |
void |
map(SunriseMappingToken info)
This method is called when the mapper should map a command for which it is registered. |
protected abstract void |
mapControlMode(SunriseMappingToken info,
IMotionControlMode mode,
DeviceMappingResult mapResult)
Specialized control mode mapping. |
protected abstract IMotionControlMode |
normalizeControlMode(SunriseMappingToken info,
IMotionControlMode originalMode)
Normalizes the control mode that will be mapped. |
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.mapping.SunriseMapper |
|---|
beforeMap |
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.mapping.AbstractMapper |
|---|
getMapperTable, getMappingTypes, performMapping, register |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NO_AXIS_LIMIT
public static final String NO_DEFAULT_STOP_STRATEGY
public static final String IGNORE_MASTERING_STATE
protected static final String DEVICE_MAPPING_TYPE_KEY
protected static final String DEVICE_MAPPING_PORTS_KEY
protected static final String DEVICE_MAPPING_ALPHA_INPORT
| Constructor Detail |
|---|
public RobotMapper()
| Method Detail |
|---|
public final void map(SunriseMappingToken info)
map in class AbstractMapper<SunriseMappingToken>info - The mapping information for the current mapping process.
protected abstract IMotionControlMode normalizeControlMode(SunriseMappingToken info,
IMotionControlMode originalMode)
info - mapping tokenoriginalMode - the original control mode
protected abstract void mapControlMode(SunriseMappingToken info,
IMotionControlMode mode,
DeviceMappingResult mapResult)
info - mapping tokenmode - The control mode. This mode should be the result of a prior
call to normalizeControlMode(SunriseMappingToken, IMotionControlMode) .mapResult - Contains the result of a device mapping.protected boolean addAxisValidator(ISunriseRobot robot)
robot - Robot name
protected static String getPipeName(ISunriseRobot robot,
IMotionControlMode mode)
robot - the robot that executes the motion.mode - motion control mode for the motion.
protected static OutPort getObserverCartPositionOutport(Robot robot,
RobotObserver observer)
robot - the robot for the motionobserver - the used observer
protected static OutPort getObserverAlphaOutport(Robot robot,
RobotObserver observer)
robot - the robot for the motionobserver - the used observer
public static IMotionControlMode getCurrentMotionControlMode(Device currentRobot)
currentRobot - robot for which the control mode is used.
public static RobotObserver createObserver(Robot robot,
SPR spr)
robot - The robot.spr - SPR for which created observer should be used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||