|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.api.SPRComponent
com.kuka.roboticsAPI.controllerModel.sunrise.api.Module
com.kuka.roboticsAPI.controllerModel.sunrise.predefinedCompounds.StopEvaluatorModule
public class StopEvaluatorModule
Module that collects and evaluates stop requests.
| Nested Class Summary | |
|---|---|
static interface |
StopEvaluatorModule.IMotionStoppedListener
Interface for registering for the MotionStopped event. |
| Field Summary | |
|---|---|
static String |
MOTION_STOPPED_EVENT
Name of the MotionStopped event. |
| Constructor Summary | |
|---|---|
StopEvaluatorModule(int numDof)
Creates an instance of the class with the default parameters SuppressStopRequestInTuning=true, NumModules=1, numModules=1, numModulesInt=0
. |
|
StopEvaluatorModule(int numDof,
boolean suppressStopRequestInTuning,
int numModules,
int numModulesInt)
Creates an instance of the class. |
|
| Method Summary | |
|---|---|
void |
addMotionStoppedListener(StopEvaluatorModule.IMotionStoppedListener listener)
Adds a listener for the MotionStoppedEvent. |
boolean |
checkMotionStoppedEvent(Message message)
Checks whether the message is an event of type "MotionStopped" from a StopEvaluator module and stores the current joint position. |
InPort |
getAltSafetyStopRequestIn()
|
InPort |
getAppStateIn()
|
double[] |
getAxisQCmdFromMotionStopEvent()
Get the axisQCmd values from the MotionStop event. |
InPort |
getAxisQCmdIn()
|
double[] |
getAxisQCmdReturnValue()
Get the axisQCmd values from the return value. |
OutPort |
getCloseBrakesOut()
|
InPort |
getIpoStoppedIn()
|
InPort |
getIpoStoppedIn(boolean useInt)
|
boolean |
getIsMotionStopped()
|
InPort |
getStopMotionRequestIn()
|
OutPort |
getStopMotionRequestOut()
|
void |
onAsyncEvent(Message msg)
Called when a compound event was received. |
void |
onInitialize()
Called when the SPR-runtime is initialized. |
void |
removeMotionStoppedListener(StopEvaluatorModule.IMotionStoppedListener listener)
Removes the listener from the MotionStoppedEvent.. |
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.api.Module |
|---|
getComponentType, getComponentVersion |
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.api.SPRComponent |
|---|
addInPort, addInPort, addOutPort, addOutPort, addParameter, getChecksum, getExpressionSegmentString, getInPort, getInPorts, getInstanceName, getName, getOutPort, getOutPorts, getParameter, getParameterList, getSPR, hasSameDataAs, onFinished, onSerialization, onSPRStateChanged, onSPRStateChangedSync, setInstanceName, setName, toString, tryGetParameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String MOTION_STOPPED_EVENT
| Constructor Detail |
|---|
public StopEvaluatorModule(int numDof,
boolean suppressStopRequestInTuning,
int numModules,
int numModulesInt)
numDof - Number of elements of the "axisQCmd" input portsuppressStopRequestInTuning - Ignore stop requests in tuningnumModules - Number of elements of the "ipoStopped" input port (boolean
input)numModulesInt - Number of elements of the "ipoStopped" input port (integer
input)public StopEvaluatorModule(int numDof)
SuppressStopRequestInTuning=true, NumModules=1, numModules=1, numModulesInt=0
.
numDof - Number of elements of the "axisQCmd" input port| Method Detail |
|---|
public InPort getIpoStoppedIn()
public InPort getIpoStoppedIn(boolean useInt)
useInt - true: get the IpoStoppedIntIn port, false:get the
IpoStoppedIn port
IpoStopped input port corresponding to the
useInt parameterpublic InPort getStopMotionRequestIn()
public InPort getAppStateIn()
public InPort getAxisQCmdIn()
public InPort getAltSafetyStopRequestIn()
public OutPort getStopMotionRequestOut()
public OutPort getCloseBrakesOut()
public boolean getIsMotionStopped()
True if the motion stopped event was received, otherwise
false.public void onAsyncEvent(Message msg)
SPRComponent
onAsyncEvent in class SPRComponentmsg - Message containing compound eventpublic void onInitialize()
SPRComponent
onInitialize in class SPRComponentpublic void addMotionStoppedListener(StopEvaluatorModule.IMotionStoppedListener listener)
listener - The StopEvaluatorModule.IMotionStoppedListener to call for.
null is not allowed.
IllegalArgumentException - if listener is null or the same listener is
already registeredpublic void removeMotionStoppedListener(StopEvaluatorModule.IMotionStoppedListener listener)
listener - The StopEvaluatorModule.IMotionStoppedListener to be removed.
null is not allowed.public double[] getAxisQCmdFromMotionStopEvent()
nullpublic double[] getAxisQCmdReturnValue()
IllegalStateException - when the module is not part of an SPR or the AxisQCmdIn has
no valid assignmentpublic boolean checkMotionStoppedEvent(Message message)
message - Message that may contain the event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||