25#include <Ice/Initialize.h>
26#include <Ice/ObjectAdapter.h>
44 std::string currentName =
c.adapter->getName();
45 Ice::Identity currentId = Ice::stringToIdentity(currentName);
71 std::string currentName =
c.adapter->getName();
72 Ice::Identity currentId = Ice::stringToIdentity(currentName);
98 std::string currentName =
c.adapter->getName();
99 Ice::Identity currentId = Ice::stringToIdentity(currentName);
138 throw ResourceUnavailableException(
"Trying to request already owned unit");
142 std::string ownerName =
c.adapter->getName();
143 ownerId = Ice::stringToIdentity(ownerName);
153 std::string callerName =
c.adapter->getName();
154 Ice::Identity callerId = Ice::stringToIdentity(callerName);
158 ARMARX_ERROR <<
"Trying to release unit owned by another component";
159 throw ResourceNotOwnedException(
"Trying to release unit owned by another component");
163 ownerId = Ice::stringToIdentity(
" ");
std::string getName() const
Retrieve name of object.
void start(const Ice::Current &c=Ice::emptyCurrent) override
Set execution state to eStarted.
void release(const Ice::Current &c=Ice::emptyCurrent) override
Release exclusive access to current unit.
UnitExecutionState getExecutionState(const Ice::Current &c=Ice::emptyCurrent) override
Retrieve current execution state.
void init(const Ice::Current &c=Ice::emptyCurrent) override
Set execution state to eInitialized.
virtual void onStart()
callback onStart for subclass hook.
void stop(const Ice::Current &c=Ice::emptyCurrent) override
Set execution state to eStopped.
~SensorActorUnit() override
Destructor of SensorActorUnit.
SensorActorUnit()
Constructs a SensorActorUnit.
virtual void onInit()
callback onInit for subclass hook.
virtual void onStop()
callback onStop for subclass hook.
void request(const Ice::Current &c=Ice::emptyCurrent) override
Request exclusive access to current unit.
void onExitComponent() override
Hook for subclass.
UnitExecutionState executionState
#define ARMARX_INFO
The normal logging level.
#define ARMARX_ERROR
The logging level for unexpected behaviour, that must be fixed.
#define ARMARX_WARNING
The logging level for unexpected behaviour, but not a serious problem.
This file offers overloads of toIce() and fromIce() functions for STL container types.
const LogSender::manipulator flush