angle_compensator.h
Go to the documentation of this file.
1 //
2 // Angle Compensator for Nav Scanner
3 //
4 
5 #ifndef SICK_SCAN_ANGLE_COMPENSATOR_H
6 #define SICK_SCAN_ANGLE_COMPENSATOR_H
7 
8 #include <string>
9 #include <vector>
10 #include <assert.h>
12 {
13 public:
14  double compensateAngleInRadFromRos(double angleInRadFromRos);
15  double compensateAngleInRad(double angleInRad);
16  double compensateAngleInDeg(double angleInDeg);
17  int parseAsciiReply(const char *asciiReply);
18  int parseReply(bool isBinary, std::vector<unsigned char>& replyVec);
19  std::string getHumanReadableFormula(void);
20  void testbed();
22  {
23  assert(0); // forbidden!
24  }
25  AngleCompensator(bool _useNegSign)
26  {
27  useNegSign = _useNegSign;
28  }
29 private:
30 
31  double amplCorr;
36  bool useNegSign; // for NAV310
37 
38 };
39 
40 
41 #endif //SICK_SCAN_ANGLE_COMPENSATOR_H
AngleCompensator::testbed
void testbed()
Testbed for angle compensation.
Definition: angle_compensator.cpp:370
AngleCompensator::parseAsciiReply
int parseAsciiReply(const char *asciiReply)
Parse ASCII reply.
Definition: angle_compensator.cpp:194
AngleCompensator::offsetCorrInDeg
double offsetCorrInDeg
Definition: angle_compensator.h:33
AngleCompensator::compensateAngleInDeg
double compensateAngleInDeg(double angleInDeg)
Compensate raw angle given in [DEG].
Definition: angle_compensator.cpp:173
AngleCompensator::AngleCompensator
AngleCompensator(bool _useNegSign)
Definition: angle_compensator.h:25
AngleCompensator::parseReply
int parseReply(bool isBinary, std::vector< unsigned char > &replyVec)
Parse reply of angle compensation values given the command MCAngleCompSin (see testbed)
Definition: angle_compensator.cpp:268
AngleCompensator::phaseCorrInDeg
double phaseCorrInDeg
Definition: angle_compensator.h:32
AngleCompensator::getHumanReadableFormula
std::string getHumanReadableFormula(void)
Definition: angle_compensator.cpp:342
AngleCompensator::offsetCorrInRad
double offsetCorrInRad
Definition: angle_compensator.h:35
AngleCompensator
Definition: angle_compensator.h:11
AngleCompensator::amplCorr
double amplCorr
Definition: angle_compensator.h:31
AngleCompensator::AngleCompensator
AngleCompensator()
Definition: angle_compensator.h:21
AngleCompensator::phaseCorrInRad
double phaseCorrInRad
Definition: angle_compensator.h:34
AngleCompensator::useNegSign
bool useNegSign
Definition: angle_compensator.h:36
AngleCompensator::compensateAngleInRadFromRos
double compensateAngleInRadFromRos(double angleInRadFromRos)
Compensate raw angle given in [RAD] in the ROS axis orientation system.
Definition: angle_compensator.cpp:116
assert.h
AngleCompensator::compensateAngleInRad
double compensateAngleInRad(double angleInRad)
Compensate raw angle given in [RAD].
Definition: angle_compensator.cpp:156


sick_scan
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Thu Sep 8 2022 02:30:19