Go to the documentation of this file.
39 usingTopic(getProperty<std::string>(
"MetaWearTopicName").getValue());
46 offeringTopic(getProperty<std::string>(
"DebugDrawerTopic").getValue());
52 debugDrawerPrx = getTopic<DebugDrawerInterfacePrx>(
53 getProperty<std::string>(
"DebugDrawerTopic").getValue());
63 const MetaWearIMUData&
data,
67 std::unique_lock lock(dataMutex);
69 if (!existsChannel(name))
71 offerChannel(name,
"MetaWear IMU data");
73 offerVector3(name,
"acceleration",
data.acceleration);
74 offerVector3(name,
"gyro",
data.gyro);
75 offerVector3(name,
"magnetic",
data.magnetic);
76 offerQuaternion(name,
"orientationQuaternion",
data.orientationQuaternion);
89 MetaWearIMUObserver::offerVector3(
const std::string& channelName,
90 const std::string& dfName,
91 const std::vector<float>&
data)
98 else if (
data.size() != 0)
100 ARMARX_WARNING <<
"data." << dfName <<
".size() != 3 && data." << dfName
106 MetaWearIMUObserver::offerQuaternion(
const std::string& channelName,
107 const std::string& dfName,
108 const std::vector<float>&
data)
110 if (
data.size() == 4)
115 else if (
data.size() != 0)
117 ARMARX_WARNING <<
"data." << dfName <<
".size() != 4 && data." << dfName
VectorXD< 3, float > vec3
bool offerOrUpdateDataField(std::string channelName, std::string datafieldName, const Variant &value, const std::string &description)
const VariantTypeId Quaternion
IceInternal::Handle< Quaternion > QuaternionPtr
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.
void offeringTopic(const std::string &name)
Registers a topic for retrival after initialization.
void offerConditionCheck(std::string checkName, ConditionCheck *conditionCheck)
Offer a condition check.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
This file offers overloads of toIce() and fromIce() functions for STL container types.