Go to the documentation of this file.
34 #include <RobotAPI/interface/units/HapticUnit.h>
47 defineOptionalProperty<std::string>(
48 "HapticTopicName",
"HapticValues",
"Name of the HapticUnit Topic");
78 pos = (pos + 1) % count;
104 for (std::vector<long>::iterator it =
deltas.begin(); it !=
deltas.end(); ++it)
109 return sum /
deltas.size();
138 return "HapticUnitObserver";
146 const ::std::string& name,
147 const ::armarx::MatrixFloatBasePtr&
values,
148 const ::armarx::TimestampBasePtr&
timestamp,
149 const ::Ice::Current& = Ice::emptyCurrent)
override;
157 std::mutex dataMutex;
158 std::string topicName;
161 void updateStatistics();
163 std::map<std::string, HapticSampleStatistics> statistics;
Baseclass for all ArmarX Observers.
std::string getDefaultName() const override
Retrieve default name of component.
void onInitObserver() override
Framework hook.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
void setTopicName(std::string topicName)
HapticObserverPropertyDefinitions(std::string prefix)
HapticSampleStatistics(unsigned int count, long timestamp)
PropertyDefinitionsPtr createPropertyDefinitions() override
void onConnectObserver() override
Framework hook.
void reportSensorValues(const ::std::string &device, const ::std::string &name, const ::armarx::MatrixFloatBasePtr &values, const ::armarx::TimestampBasePtr ×tamp, const ::Ice::Current &=Ice::emptyCurrent) override
void onExitObserver() override
Framework hook.
Observer monitoring haptic sensor values.
This file offers overloads of toIce() and fromIce() functions for STL container types.