#include <sip.h>
Public Member Functions | |
void | FillStandard (ros_p2os_data_t *data) |
void | ParseArm (unsigned char *buffer) |
void | ParseArmInfo (unsigned char *buffer) |
void | ParseGyro (unsigned char *buffer) |
void | ParseSERAUX (unsigned char *buffer) |
void | ParseStandard (unsigned char *buffer) |
void | Print () |
void | PrintArm () |
void | PrintArmInfo () |
void | PrintSonars () |
SIP (int idx) | |
~SIP (void) | |
Public Attributes | |
unsigned char | analog |
short | angle |
int | angle_offset |
bool | armConnected |
bool | armJointMoving [6] |
unsigned char | armJointPos [6] |
double | armJointPosRads [6] |
ArmJoint * | armJoints |
unsigned char | armJointTargetPos [6] |
unsigned char | armNumJoints |
bool | armPowerOn |
char * | armVersionString |
std::string | base_link_frame_id |
unsigned char | battery |
unsigned short | blobarea |
unsigned int | blobcolor |
unsigned short | blobconf |
unsigned short | blobmx |
unsigned short | blobmy |
unsigned short | blobx1 |
unsigned short | blobx2 |
unsigned short | bloby1 |
unsigned short | bloby2 |
unsigned short | compass |
short | control |
unsigned char | digin |
unsigned char | digout |
unsigned short | frontbumpers |
int32_t | gyro_rate |
double | lastLiftPos |
short | lvel |
bool | lwstall |
unsigned char | motors_enabled |
std::string | odom_frame_id |
unsigned short | ptu |
unsigned short | rawxpos |
unsigned short | rawypos |
unsigned short | rearbumpers |
short | rvel |
bool | rwstall |
unsigned char | sonar_flag |
unsigned char | sonarreadings |
unsigned short * | sonars |
unsigned char | status |
unsigned short | timer |
int | x_offset |
int | xpos |
int | y_offset |
int | ypos |
Private Member Functions | |
int | PositionChange (unsigned short, unsigned short) |
Private Attributes | |
int | param_idx |
void SIP::FillStandard | ( | ros_p2os_data_t * | data | ) |
void SIP::ParseArm | ( | unsigned char * | buffer | ) |
void SIP::ParseArmInfo | ( | unsigned char * | buffer | ) |
void SIP::ParseGyro | ( | unsigned char * | buffer | ) |
void SIP::ParseSERAUX | ( | unsigned char * | buffer | ) |
Parse a SERAUX SIP packet. For a CMUcam, this will have blob tracking messages in the format (all one-byte values, no spaces):
255 M mx my x1 y1 x2 y2 pixels confidence (10-bytes)
Or color info messages of the format:
255 S Rval Gval Bval Rvar Gvar Bvar (8-bytes)
void SIP::ParseStandard | ( | unsigned char * | buffer | ) |
int SIP::PositionChange | ( | unsigned short | from, |
unsigned short | to | ||
) | [private] |
void SIP::Print | ( | ) |
void SIP::PrintArm | ( | ) |
void SIP::PrintArmInfo | ( | ) |
void SIP::PrintSonars | ( | ) |
unsigned char SIP::analog |
short SIP::angle |
bool SIP::armConnected |
bool SIP::armJointMoving[6] |
unsigned char SIP::armJointPos[6] |
double SIP::armJointPosRads[6] |
unsigned char SIP::armJointTargetPos[6] |
unsigned char SIP::armNumJoints |
bool SIP::armPowerOn |
char* SIP::armVersionString |
std::string SIP::base_link_frame_id |
unsigned char SIP::battery |
unsigned short SIP::blobarea |
unsigned int SIP::blobcolor |
unsigned short SIP::blobconf |
unsigned short SIP::blobmx |
unsigned short SIP::blobmy |
unsigned short SIP::blobx1 |
unsigned short SIP::blobx2 |
unsigned short SIP::bloby1 |
unsigned short SIP::bloby2 |
unsigned short SIP::compass |
short SIP::control |
unsigned char SIP::digin |
unsigned char SIP::digout |
unsigned short SIP::frontbumpers |
int32_t SIP::gyro_rate |
double SIP::lastLiftPos |
bool SIP::lwstall |
unsigned char SIP::motors_enabled |
std::string SIP::odom_frame_id |
int SIP::param_idx [private] |
unsigned short SIP::rawxpos |
unsigned short SIP::rawypos |
unsigned short SIP::rearbumpers |
bool SIP::rwstall |
unsigned char SIP::sonar_flag |
unsigned char SIP::sonarreadings |
unsigned short* SIP::sonars |
unsigned char SIP::status |
unsigned short SIP::timer |
int SIP::x_offset |
int SIP::y_offset |