30 #include <RobotAPI/interface/units/OptoForceUnit.h>
47 defineOptionalProperty<std::string>(
48 "OptoForceTopicName",
"OptoForceValues",
"Name of the OptoForce Topic");
49 defineOptionalProperty<std::string>(
"CalibrationFilePath",
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;