Go to the documentation of this file.
40 usingProxy(getProperty<std::string>(
"RobotStateComponentName").getValue());
41 usingProxy(getProperty<std::string>(
"WorkingMemoryName").getValue());
43 offeringTopic(getProperty<std::string>(
"PlatformStateTopicName").getValue());
48 robotStateComponentPrx = getProxy<armarx::RobotStateComponentInterfacePrx>(getProperty<std::string>(
"RobotStateComponentName").getValue());
51 memoryPrx = getProxy<memoryx::WorkingMemoryInterfacePrx>(getProperty<std::string>(
"WorkingMemoryName").getValue());
59 platformTopic = getTopic<PlatformUnitListenerPrx>(getProperty<std::string>(
"PlatformStateTopicName").getValue());
64 robotAgent->setStringifiedSharedRobotInterfaceProxy(iceCommunicator->proxyToString(robot));
139 std::scoped_lock lock(dataMutex);
141 currentVelocity << x, y, sin(alpha), cos(alpha) - 1;
142 auto delay = IceUtil::Time::now() - lastUpdateTime;
146 lastUpdateTime = IceUtil::Time::now();
147 velocityDeltaUpdateCount++;
148 velocityDeltaSum += delay.toSecondsDouble();
150 platformTopic->reportPlatformVelocity(x, y, alpha);
182 catch (std::exception& e)
191 platformTopic->reportPlatformOdometryPose(x, y, alpha);
IceManagerPtr getIceManager() const
Returns the IceManager.
const VariantTypeId Float
memoryx::AgentInstancePtr robotAgent
void onDisconnectComponent() override
const std::string GlobalFrame
armarx::FramedPositionPtr robotPos
void onExitComponent() override
void onInitComponent() override
SpamFilterDataPtr deactivateSpam(SpamFilterDataPtr const &spamFilter, float deactivationDurationSec, const std::string &identifier, bool deactivate)
void Identity(MatrixXX< N, N, T > *a)
Eigen::Vector4d currentVelocity
void reportPlatformVelocity(Ice::Float x, Ice::Float y, Ice::Float alpha, const Ice::Current &) override
std::vector< Eigen::Vector4d > poseBuffer
void onConnectComponent() override
armarx::RobotStateComponentInterfacePrx robotStateComponentPrx
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
MatrixXX< 3, 3, float > Matrix3f
#define ARMARX_CHECK_EXPRESSION(expression)
This macro evaluates the expression and if it turns out to be false it will throw an ExpressionExcept...
memoryx::AgentInstancesSegmentBasePrx agentsMemoryPrx
const VariantTypeId FramedOrientation
memoryx::WorkingMemoryInterfacePrx memoryPrx
void offeringTopic(const std::string &name)
Registers a topic for retrival after initialization.
const VariantTypeId FramedPosition
IceUtil::Time lastUpdateTime
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
armarx::FramedOrientationPtr robotOri
void reportPlatformOdometryPose(Ice::Float x, Ice::Float y, Ice::Float alpha, const Ice::Current &) override
bool usingProxy(const std::string &name, const std::string &endpoints="")
Registers a proxy for retrieval after initialization and adds it to the dependency list.
This file offers overloads of toIce() and fromIce() functions for STL container types.
PlatformUnitListenerPrx platformTopic