Go to the documentation of this file.
42 usingProxy(getProperty<std::string>(
"RobotStateComponentName").getValue());
43 usingProxy(getProperty<std::string>(
"WorkingMemoryName").getValue());
45 offeringTopic(getProperty<std::string>(
"PlatformStateTopicName").getValue());
52 getProperty<std::string>(
"RobotStateComponentName").getValue());
55 memoryPrx = getProxy<memoryx::WorkingMemoryInterfacePrx>(
56 getProperty<std::string>(
"WorkingMemoryName").getValue());
65 getProperty<std::string>(
"PlatformStateTopicName").getValue());
70 robotAgent->setStringifiedSharedRobotInterfaceProxy(iceCommunicator->proxyToString(robot));
153 std::scoped_lock lock(dataMutex);
155 currentVelocity << x, y, sin(alpha), cos(alpha) - 1;
156 auto delay = IceUtil::Time::now() - lastUpdateTime;
159 <<
VAROUT(y) <<
VAROUT(alpha) <<
" with delay of " << delay.toSecondsDouble();
161 lastUpdateTime = IceUtil::Time::now();
162 velocityDeltaUpdateCount++;
163 velocityDeltaSum += delay.toSecondsDouble();
165 platformTopic->reportPlatformVelocity(x, y, alpha);
198 catch (std::exception& e)
210 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.
#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.
MatrixXX< 3, 3, float > Matrix3f
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