30#include <RobotAPI/interface/units/OptoForceUnit.h>
48 "OptoForceTopicName",
"OptoForceValues",
"Name of the OptoForce Topic");
50 "RobotAPI/sensors/OptoForceCalibration.xml",
51 "Path of the Calibration File");
72 DaqWrapper(
const std::string& deviceName,
73 const std::string& serialNumber,
77 std::string deviceName;
78 std::string serialNumber;
79 std::vector<float> countsPerN;
80 std::vector<std::string> sensorNames;
81 std::vector<bool> enableFlags;
82 std::vector<std::array<float, 3>> offsets;
85 void checkSensorCount();
88 using DaqWrapperPtr = std::shared_ptr<DaqWrapper>;
99 return "OptoForceUnit";
131 OptoForceUnitListenerPrx topicPrx;
135 std::vector<DaqWrapperPtr> daqList;
138 std::ofstream recordingFile;
140 bool stopRecordingFlag;
145 void startRecording(
const std::string& filepath,
const Ice::Current&)
override;
Default component property definition container.
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Baseclass for all ArmarX ManagedIceObjects requiring properties.
OptoForceUnitPropertyDefinitions(std::string prefix)
void onInitComponent() override
void onDisconnectComponent() override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onConnectComponent() override
void startRecording(const std::string &filepath, const Ice::Current &) override
void stopRecording(const Ice::Current &) override
void onExitComponent() override
std::string getDefaultName() const override
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.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.