28 #include <RobotAPI/interface/units/OptoForceUnit.h>
46 defineOptionalProperty<std::string>(
"OptoForceTopicName",
"OptoForceValues",
"Name of the OptoForce Topic");
47 defineOptionalProperty<std::string>(
"CalibrationFilePath",
"RobotAPI/sensors/OptoForceCalibration.xml",
"Path of the Calibration File");
63 virtual public OptoForceUnitInterface,
70 DaqWrapper(
const std::string& deviceName,
const std::string& serialNumber,
const RapidXmlReaderNode& daqNode);
73 std::string deviceName;
74 std::string serialNumber;
75 std::vector<float> countsPerN;
76 std::vector<std::string> sensorNames;
77 std::vector<bool> enableFlags;
78 std::vector<std::array<float, 3>> offsets;
81 void checkSensorCount();
83 using DaqWrapperPtr = std::shared_ptr<DaqWrapper>;
93 return "OptoForceUnit";
125 OptoForceUnitListenerPrx topicPrx;
129 std::vector<DaqWrapperPtr> daqList;
132 std::ofstream recordingFile;
134 bool stopRecordingFlag;
140 void startRecording(
const std::string& filepath,
const Ice::Current&)
override;