47 #ifndef CLEARPATH_MESSAGE_DATA_H 48 #define CLEARPATH_MESSAGE_DATA_H 90 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
124 static void subscribe(uint16_t freq = 0);
134 double getLeftFeedForward();
136 double getLeftStiction();
138 double getLeftIntegralLimit();
146 double getRightFeedForward();
148 double getRightStiction();
150 double getRightIntegralLimit();
152 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
184 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
214 double getLeftSpeed();
216 double getLeftAccel();
218 double getRightSpeed();
220 double getRightAccel();
222 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
228 DataEcho(
void *input,
size_t msg_len);
242 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
268 double getTravel(uint8_t index);
270 double getSpeed(uint8_t index);
272 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
294 int32_t getTicks(uint8_t inx);
296 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
323 return (rawTime) & 0x3f;
328 return (rawTime >> 6) & 0x1f;
333 return (rawTime >> 11) & 0x3f;
338 return (rawTime >> 17) & 0x0f;
343 return (rawTime >> 21) & 0x7f;
362 uint8_t getMajorFirmwareVersion();
364 uint8_t getMinorFirmwareVersion();
366 uint8_t getMajorProtocolVersion();
368 uint8_t getMinorProtocolVersion();
372 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
378 DataGear(
void *input,
size_t msg_len);
394 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
422 double getForwardMax();
424 double getReverseMax();
426 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
454 double getForwardMax();
456 double getReverseMax();
458 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
482 static void subscribe(uint16_t freq = 0);
492 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
498 uint8_t strlenModel();
515 std::string getModel();
517 uint8_t getRevision();
519 uint32_t getSerial();
521 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
543 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
577 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
611 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
640 double getRollRate();
642 double getPitchRate();
646 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
670 return rawDesc & 0x80;
675 return rawDesc & 0x40;
680 return (
enum Types) (rawDesc & 0x0f);
699 uint8_t getBatteryCount();
701 double getChargeEstimate(uint8_t battery);
703 int16_t getCapacityEstimate(uint8_t battery);
707 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
727 uint8_t getProcessCount();
729 int16_t getErrorCount(
int process);
731 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
751 uint8_t getRangefinderCount();
753 int16_t getDistance(
int rangefinder);
755 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
775 uint8_t getRangefinderCount();
777 int16_t getDistance(
int rangefinder);
779 uint32_t getAcquisitionTime(
int rangefinder);
781 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
815 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
835 uint8_t getCurrentCount();
837 uint16_t getCurrent(
int current);
839 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
873 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
907 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
941 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
961 uint8_t getTemperatureCount();
963 uint16_t getTemperature(
int temperature);
965 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
985 uint8_t getVoltageCount();
987 uint16_t getVoltage(
int temperature);
989 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
1011 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
1036 uint32_t getUptime();
1038 uint8_t getVoltagesCount();
1040 double getVoltage(uint8_t index);
1042 uint8_t getCurrentsCount();
1044 double getCurrent(uint8_t index);
1046 uint8_t getTemperaturesCount();
1048 double getTemperature(uint8_t index);
1050 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
1078 double getTranslational();
1080 double getRotational();
1082 double getTransAccel();
1084 virtual std::ostream &
printMessage(std::ostream &stream = std::cout);
1089 #endif // CLEARPATH_MESSAGE_DATA_H
virtual std::ostream & printMessage(std::ostream &stream=std::cout)
TFSIMD_FORCE_INLINE const tfScalar & getX() const
uint8_t temperatures_offset
BatteryDescription(uint8_t desc)
std::string getName(void *handle)
static DataAckermannOutput * popNext()
static DataAckermannOutput * getUpdate(double timeout=0)
DataAckermannOutput(void *input, size_t msg_len)
static void subscribe(uint16_t freq=0)
static enum MessageTypes getTypeID()
double getYaw(const tf2::Quaternion quat)
TFSIMD_FORCE_INLINE const tfScalar & getZ() const
TFSIMD_FORCE_INLINE const tfScalar & getY() const
static DataAckermannOutput * waitNext(double timeout=0)