|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.Controller
com.kuka.roboticsAPI.controllerModel.sunrise.AbstractSunriseController
com.kuka.roboticsAPI.controllerModel.sunrise.SunriseController
public class SunriseController
Controller class for Sunrise. It manages a connection to Sunrise and provides the necessary services to access Sunrise.
| Constructor Summary | |
|---|---|
SunriseController(RoboticsAPIContext context,
String name)
Creates a new sunrise controller instance. |
|
| Method Summary | |
|---|---|
void |
acknowledgeError()
Sends an acknowledge message to Sunrise. |
void |
addOverrideListener(IApplicationOverrideListener listener)
Adds a listener for the changes of the application override. |
protected void |
afterDispose()
Called after the controller was disposed. |
boolean |
afterInitialize()
Called when the controller was initialized. |
void |
cancelSPR(SPR spr)
|
Collection<com.kuka.roboticsAPI.controllerModel.StatePortData> |
collectStatePortData()
Gets the states of all state ports of sunrise. |
void |
connectionLost()
Called to indicate that the connection was lost. |
protected ConditionService |
createConditionServiceInstance()
Create a condition service instance. |
protected ExecutionService |
createExecutionServiceInstance()
Should return an uninitialized instance of the ExecutionService for this controller. |
protected RecordingService |
createRecordingServiceInstance()
Create a recording service instance. |
protected RequestService |
createRequestServiceInstance()
Should return an uninitialized instance of the RequestService for this controller. |
ICommandContainer |
executeSPR(SPR spr)
|
protected void |
fireConnectionLost()
|
protected void |
fireDeviceSafetyStateChanged(Device device,
SunriseSafetyState newSafetyState)
Informs all listeners about a change of the safety state of the controller. |
ApplicationStateModule |
getApplicationStateModule()
Get application state module. |
SPR |
getApplicationStateSPR()
Get application state SPR. |
protected ControllerInformation |
getControllerInformationInstance()
Should return an initialized instance of the controller information for this controller. |
SunriseExecutionService |
getExecutionService()
Gets the service from the controller dealing with execution of commands. |
NameserverProxy |
getNameserver()
Returns the nameserver instance used for the controller. |
double |
getProcessorLoad()
Gets the load of the sunrise system. |
SunriseRequestService |
getRequestService()
Gets the service from the controller dealing with requests. |
protected Map<String,com.kuka.roboticsAPI.controllerModel.StatePortData> |
getStatePortCache()
Gets the complete map of all StatePort cache. |
com.kuka.roboticsAPI.controllerModel.StatePortData |
getStatePortData(String statePortName)
Gets the data of the specified StatePort from the cache by name. |
SunriseConnection |
getSunriseConnection()
Gets the connection wrapper to Sunrise. |
ControllerBootInfo |
getSystemState()
Gets the state of the system. |
void |
handleMessage(Message message)
Handles the given message. |
boolean |
isPausable()
Is this Controller pausable? |
void |
killAllSPRsOnRealtimeSystems()
Kills VERY All SPRs !!! |
protected void |
mapApplicationStateSPR()
In order to get access to the mapped ApplicationStateSPR before it is actually executed, first the SPR is mapped... |
void |
onInitialize()
Called when the controller get's initialized. |
void |
onInitializeFailed()
Called when the controller initialization failed. |
protected void |
onSetParameters(com.kuka.common.ParameterSet attributeMap)
Sets the attributes for this controller. |
void |
removeOverrideListener(IApplicationOverrideListener listener)
Remove an application override listener. |
void |
sendAsynchronousSSR(SSR ssr)
|
Message |
sendSynchronousSSR(SSR ssr)
|
Message |
sendSynchronousSSR(SSR ssr,
int timeout,
TimeUnit timeUnit)
|
void |
setAlwaysResetOnMotion(boolean alwaysReset)
Ensures that every executed motion sets the reset flag for the interpolator to true. |
void |
startTrace(double hz)
Starts a controller trace. |
void |
stopTrace()
Stops a formerly started trace. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SunriseController(RoboticsAPIContext context,
String name)
context - The context for this controller. null is not allowed.name - The name of the controller. null is not allowed.| Method Detail |
|---|
public NameserverProxy getNameserver()
protected ControllerInformation getControllerInformationInstance()
Controller
getControllerInformationInstance in class Controllerprotected RequestService createRequestServiceInstance()
Controller
createRequestServiceInstance in class Controllerprotected ExecutionService createExecutionServiceInstance()
Controller
createExecutionServiceInstance in class Controllerprotected ConditionService createConditionServiceInstance()
Controller
createConditionServiceInstance in class Controllerprotected RecordingService createRecordingServiceInstance()
Controller
createRecordingServiceInstance in class Controllerpublic void onInitialize()
The method is called before any other initialization of the controller occurred. The controller will return false for the isInitialized method and no service will be available.
onInitialize in class Controllerpublic void onInitializeFailed()
onInitializeFailed in class Controllerprotected void onSetParameters(com.kuka.common.ParameterSet attributeMap)
Controller
onSetParameters in class ControllerattributeMap - The attributes defined for this controller.protected void afterDispose()
ControllerThis method is the last method called during the disposal process.
afterDispose in class Controllerpublic ControllerBootInfo getSystemState()
getSystemState in class Controllerpublic boolean afterInitialize()
Note that this method instead of the onInitialize method is called after the controller was initialized. The isInitialized method will return true and each service should be available.
afterInitialize in class Controller
protected void fireDeviceSafetyStateChanged(Device device,
SunriseSafetyState newSafetyState)
device - The device that changed its state.newSafetyState - The new state of the safety signals.public final void handleMessage(Message message)
handleMessage in interface IMessageHandlermessage - The message to be handled. Will never be null.public final void connectionLost()
connectionLost in interface IMessageHandlerprotected void fireConnectionLost()
public final SunriseConnection getSunriseConnection()
public final SunriseExecutionService getExecutionService()
Fails if the controller is not initialized.
getExecutionService in class Controllerpublic SunriseRequestService getRequestService()
Fails if the controller is not initialized.
getRequestService in class Controllerpublic final Message sendSynchronousSSR(SSR ssr)
ssr - The SSR which should be sent.
SunriseRequestService.sendSynchronousSSR(com.kuka.roboticsAPI.controllerModel.sunrise.api.SSR)
public final Message sendSynchronousSSR(SSR ssr,
int timeout,
TimeUnit timeUnit)
ssr - The SSR which should be sent.timeout - the timeout to wait for the response.timeUnit - the timeout unit for the timeout
SunriseRequestService.sendSynchronousSSR(com.kuka.roboticsAPI.controllerModel.sunrise.api.SSR)public final void sendAsynchronousSSR(SSR ssr)
ssr - The SSR which should be sent.SunriseRequestService.sendAsynchronousSSR(com.kuka.roboticsAPI.controllerModel.sunrise.api.SSR)public final ICommandContainer executeSPR(SPR spr)
spr - The SPR which should be executed.
SunriseExecutionService.executeSPR(com.kuka.roboticsAPI.controllerModel.sunrise.api.SPR)public final void cancelSPR(SPR spr)
spr - The SPR which should be cancelled.SPRRuntime.cancel()public void startTrace(double hz)
hz - The hertz values in which trace values will get collected.public void stopTrace()
public void acknowledgeError()
public void killAllSPRsOnRealtimeSystems()
public double getProcessorLoad()
Note that the return values is only an approximation.
public Collection<com.kuka.roboticsAPI.controllerModel.StatePortData> collectStatePortData()
public com.kuka.roboticsAPI.controllerModel.StatePortData getStatePortData(String statePortName)
statePortName - name of the StatePort
protected Map<String,com.kuka.roboticsAPI.controllerModel.StatePortData> getStatePortCache()
public SPR getApplicationStateSPR()
getApplicationStateSPR in class AbstractSunriseControllerpublic ApplicationStateModule getApplicationStateModule()
protected void mapApplicationStateSPR()
public void setAlwaysResetOnMotion(boolean alwaysReset)
alwaysReset - when true, the reset flag is always set to true for every motion.public boolean isPausable()
public void addOverrideListener(IApplicationOverrideListener listener)
IControllerWithOverride
addOverrideListener in interface IControllerWithOverridelistener - the listenerpublic void removeOverrideListener(IApplicationOverrideListener listener)
IControllerWithOverride
removeOverrideListener in interface IControllerWithOverridelistener - the listener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||