#include <sick_generic_imu.h>
Public Member Functions | |
bool | isImuAckDatagram (char *datagram, size_t datagram_length) |
bool | isImuAsciiDatagram (char *datagram, size_t datagram_length) |
Checking ASCII diagram for imu message type. | |
bool | isImuBinaryDatagram (char *datagram, size_t datagram_length) |
Checking ASCII diagram for imu message type. | |
bool | isImuDatagram (char *datagram, size_t datagram_length) |
int | parseAsciiDatagram (char *datagram, size_t datagram_length, SickScanImuValue *imValuePtr) |
Parsing Ascii datagram. | |
int | parseBinaryDatagram (char *datagram, size_t datagram_length, SickScanImuValue *imValuePtr) |
Parsing Ascii datagram. | |
int | parseDatagram (ros::Time timeStamp, unsigned char *receiveBuffer, int actual_length, bool useBinaryProtocol) |
SickScanImu (SickScanCommon *commonPtr_) | |
double | simpleFmodTwoPi (double angle) |
Checking angle to be in the interval [-M_PI,M_PI] Of course you can also use fmod, e.g. fmod(angle + M_PI,2*M_PI) - M_PI. | |
Static Public Member Functions | |
static void | imuParserTest () |
Private Attributes | |
SickScanCommon * | commonPtr |
bool | emul |
Definition at line 130 of file sick_generic_imu.h.
sick_scan::SickScanImu::SickScanImu | ( | SickScanCommon * | commonPtr_ | ) | [inline] |
Definition at line 133 of file sick_generic_imu.h.
void sick_scan::SickScanImu::imuParserTest | ( | ) | [static] |
Definition at line 426 of file sick_generic_imu.cpp.
bool sick_scan::SickScanImu::isImuAckDatagram | ( | char * | datagram, |
size_t | datagram_length | ||
) |
Definition at line 126 of file sick_generic_imu.cpp.
bool sick_scan::SickScanImu::isImuAsciiDatagram | ( | char * | datagram, |
size_t | datagram_length | ||
) |
Checking ASCII diagram for imu message type.
datagram,: | Pointer to datagram data |
datagram_length,: | Number of bytes in datagram |
Definition at line 261 of file sick_generic_imu.cpp.
bool sick_scan::SickScanImu::isImuBinaryDatagram | ( | char * | datagram, |
size_t | datagram_length | ||
) |
Checking ASCII diagram for imu message type.
datagram,: | Pointer to datagram data |
datagram_length,: | Number of bytes in datagram |
Definition at line 156 of file sick_generic_imu.cpp.
bool sick_scan::SickScanImu::isImuDatagram | ( | char * | datagram, |
size_t | datagram_length | ||
) |
Definition at line 83 of file sick_generic_imu.cpp.
int sick_scan::SickScanImu::parseAsciiDatagram | ( | char * | datagram, |
size_t | datagram_length, | ||
SickScanImuValue * | imuValue | ||
) |
Parsing Ascii datagram.
datagram,: | Pointer to datagram data |
datagram_length,: | Number of bytes in datagram |
Definition at line 288 of file sick_generic_imu.cpp.
int sick_scan::SickScanImu::parseBinaryDatagram | ( | char * | datagram, |
size_t | datagram_length, | ||
SickScanImuValue * | imuValue | ||
) |
Parsing Ascii datagram.
datagram,: | Pointer to datagram data |
datagram_length,: | Number of bytes in datagram |
Definition at line 192 of file sick_generic_imu.cpp.
int sick_scan::SickScanImu::parseDatagram | ( | ros::Time | timeStamp, |
unsigned char * | receiveBuffer, | ||
int | actual_length, | ||
bool | useBinaryProtocol | ||
) |
Definition at line 483 of file sick_generic_imu.cpp.
double sick_scan::SickScanImu::simpleFmodTwoPi | ( | double | angle | ) |
Checking angle to be in the interval [-M_PI,M_PI] Of course you can also use fmod, e.g. fmod(angle + M_PI,2*M_PI) - M_PI.
angle,: | Input angle to be checked |
Definition at line 113 of file sick_generic_imu.cpp.
SickScanCommon* sick_scan::SickScanImu::commonPtr [private] |
Definition at line 149 of file sick_generic_imu.h.
bool sick_scan::SickScanImu::emul [private] |
Definition at line 150 of file sick_generic_imu.h.