Go to the documentation of this file.
24 #include <SimoxUtility/math/convert/mat3f_to_rpy.h>
45 platformNodeName = getProperty<std::string>(
"PlatformName").getValue();
64 offerChannel(
"platformPose",
"Current Position of " + platformNodeName);
65 offerChannel(
"platformVelocity",
"Current velocity of " + platformNodeName);
66 offerChannel(
"platformOdometryPose",
"Current Odometry Position of " + platformNodeName);
88 const Eigen::Isometry3f global_T_robot(transformStamped.transform);
90 const float x = global_T_robot.translation().x();
91 const float y = global_T_robot.translation().y();
92 const float rotationAroundZ = simox::math::mat3f_to_rpy(global_T_robot.linear()).z();
100 setDataField(
"platformVelocity",
"velocityX", currentPlatformVelocityX);
101 setDataField(
"platformVelocity",
"velocityY", currentPlatformVelocityY);
102 setDataField(
"platformVelocity",
"velocityRotation", currentPlatformVelocityRotation);
111 setDataField(channelName,
"positionX", platformPositionX);
112 setDataField(channelName,
"positionY", platformPositionY);
113 setDataField(channelName,
"rotation", platformRotation);
125 nameValueMapToDataFields(
"platformOdometryPose", x, y,
angle);
126 updateChannel(
"platformOdometryPose");
void updateChannel(const std::string &channelName, const std::set< std::string > &updatedDatafields=std::set< std::string >())
Update all conditions for a channel.
const VariantTypeId Float
void setDataField(const std::string &channelName, const std::string &datafieldName, const Variant &value, bool triggerFilterUpdate=true)
set datafield with datafieldName and in channel channelName
void usingTopic(const std::string &name, bool orderedPublishing=false)
Registers a proxy for subscription after initialization.
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
double angle(const Point &a, const Point &b, const Point &c)
void offerConditionCheck(std::string checkName, ConditionCheck *conditionCheck)
Offer a condition check.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
void offerDataField(std::string channelName, std::string datafieldName, VariantTypeId type, std::string description)
Offer a datafield without default value.
This file offers overloads of toIce() and fromIce() functions for STL container types.
void offerChannel(std::string channelName, std::string description)
Offer a channel.