Go to the documentation of this file.
42 usingTopic(getProperty<std::string>(
"MetaWearTopicName").getValue());
49 offeringTopic(getProperty<std::string>(
"DebugDrawerTopic").getValue());
56 debugDrawerPrx = getTopic<DebugDrawerInterfacePrx>(getProperty<std::string>(
"DebugDrawerTopic").getValue());
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);
87 void MetaWearIMUObserver::offerVector3(
const std::string& channelName,
const std::string& dfName,
const std::vector<float>&
data)
94 else if (
data.size() != 0)
96 ARMARX_WARNING <<
"data." << dfName <<
".size() != 3 && data." << dfName <<
".size() != 0";
100 void MetaWearIMUObserver::offerQuaternion(
const std::string& channelName,
const std::string& dfName,
const std::vector<float>&
data)
102 if (
data.size() == 4)
107 else if (
data.size() != 0)
109 ARMARX_WARNING <<
"data." << dfName <<
".size() != 4 && data." << dfName <<
".size() != 0";
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.