28 virtual bool formatCommand(std::string& formattedString) = 0;
36 const uint8_t& dataFormat,
const uint8_t& baudRate);
38 bool formatCommand(std::string& formattedString)
override;
41 const std::string formatString_ =
"c,%u,%u,%u,%u";
53 bool formatCommand(std::string& formattedString)
override;
56 const std::string formatString_ =
"f,%u,%u,%u,%u";
66 bool formatCommand(std::string& formattedString)
override;
69 const std::string formatString_ =
"b,%6.3f,%6.3f,%6.3f,%6.3f,%6.3f,%6.3f";
78 const double& sensorCalibration3,
const double& sensorCalibration4,
79 const double& sensorCalibration5,
const double& sensorCalibration6,
82 bool formatCommand(std::string& formattedString)
override;
85 const std::string formatString_ =
"m%u,%9.6f,%9.6f,%9.6f,%9.6f,%9.6f,%9.6f";
100 bool formatCommand(std::string& formattedString)
override;
103 const std::string formatString_ =
"#";
112 bool formatCommand(std::string& formattedString)
override;
115 const std::string formatString_ =
"I";
124 bool formatCommand(std::string& formattedString)
override;
127 const std::string formatString_ =
"C";
136 bool formatCommand(std::string& formattedString)
override;
139 const std::string formatString_ =
"R";
148 bool formatCommand(std::string& formattedString)
override;
151 const std::string formatString_ =
"s";
160 bool formatCommand(std::string& formattedString)
override;
163 const std::string formatString_ =
"l";
172 bool formatCommand(std::string& formattedString)
override;
175 const std::string formatString_ =
"w";
201 baudRate_ = baudRate;
205 const std::regex stringRegex_ = std::regex(
"\\bc(,\\d){4}\\b");
206 const std::string format_ =
"c,%c,%c,%c,%c";
236 const std::regex stringRegex_ = std::regex(
"name: BFF-\\w{3}(-\\w{2}){3}");
237 const std::string format_ =
"name: BFF-%s-%s-%s";
263 const std::regex stringRegex_ = std::regex(
"\\br,\\d,\\w,\\d\\b");
264 const std::string format_ =
"r,%c,%c,%c";
configuration::ForceTorqueFilter filter_
double sensorCalibration2_
double sensorCalibration6_
const std::string & getCommand()
const std::string & getThirdWord()
virtual ~RokubiminiSerialResponseRegex()=default
RokubiminiSerialResponseRegex()=default
virtual bool matchInString(const std::string &str)=0
const std::string & getFirstWord()
const uint8_t & getFirstNumber()
double sensorCalibration5_
const std::string & getFourthWord()
const uint8_t & getTempComp()
double sensorCalibration4_
const uint8_t & getCalibration()
double sensorCalibration3_
const uint8_t & getDataFormat()
const uint8_t & getReturnCode()
const std::string & getSecondWord()
const Eigen::Matrix< double, 6, 1 > forceTorqueOffset_
configuration::SensorConfiguration sensorConfiguration_
const uint8_t & getBaudRate()
void setBaudRate(uint8_t &baudRate)
double sensorCalibration1_