16#include <RobotAPI/interface/units/OrientedTactileSensorUnit.h>
17#include <RobotAPI/interface/units/UnitInterface.h>
18#include <RobotAPI/interface/visualization/DebugDrawerInterface.h>
31 "The serial device the arduino is connected to.");
35 "OrientedTactileSensorValues",
36 "Name of the topic on which the sensor values are provided");
39 "65524 3 12 65534 65534 1 1208 119 58726 1000 943 ",
40 "Sensor Register Data to calibrate the sensor");
43 "SamplesRotation",
"20",
"number of orientation values to differentiate");
46 "SamplesPressure",
"10",
"number of pressure values to differentiate");
49 "SamplesAcceleration",
"20",
"number of pressure values to differentiate");
54 "Set true to calibrate the sensor and get calibration "
55 "data and false to use existent calibration data");
57 "DebugDrawerTopicName",
59 "Name of the debug drawer topic that should be used");
77 return "OrientedTactileSensorUnit";
125 std::ifstream arduinoIn;
126 std::ofstream arduinoOut;
128 OrientedTactileSensorUnitListenerPrx topicPrx;
129 OrientedTactileSensorUnitInterfacePrx interfacePrx;
133 bool getCalibrationValues(std::string line);
134 bool loadCalibration();
139 std::vector<RotationRate> samplesRotation;
140 std::vector<PressureRate> samplesPressure;
141 std::vector<AccelerationRate> samplesAcceleration;
142 std::vector<float> pressureRates;
144 int maxSamplesRotation;
145 int sampleIndexRotation;
146 int maxSamplesPressure;
147 int sampleIndexPressure;
148 int maxSamplesAcceleration;
149 int sampleIndexAcceleration;
150 int sampleIndexPressureRate;
151 float sumPressureRates;
152 Eigen::Matrix3f sumOrientation;
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Baseclass for all ArmarX ManagedIceObjects requiring properties.
OrientedTactileSensorUnitPropertyDefinitions(std::string prefix)
void onInitComponent() override
Pure virtual hook for the subclass.
void onConnectComponent() override
Pure virtual hook for the subclass.
PropertyDefinitionsPtr createPropertyDefinitions() override
OrientedTactileSensorUnit()
std::string getDefaultName() const override
Retrieve default name of component.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
IceUtil::Handle< RunningTask< T > > pointer_type
Shared pointer type for convenience.
Quaternion< float, 0 > Quaternionf
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
::IceInternal::ProxyHandle<::IceProxy::armarx::DebugDrawerInterface > DebugDrawerInterfacePrx
std::shared_ptr< SimpleJsonLogger > SimpleJsonLoggerPtr
Eigen::Quaternionf orientation