|
| vrpn_Tracker_SpacePoint (const char *name, vrpn_Connection *trackercon, int index=0) |
|
virtual void | mainloop () |
|
virtual void | on_data_received (size_t bytes, vrpn_uint8 *buffer) |
| Derived class reimplements this callback. It is called whenever a read returns some data.
|
|
| vrpn_Tracker (const char *name, vrpn_Connection *c=NULL, const char *tracker_cfg_file_name=NULL) |
|
int | read_config_file (FILE *config_file, const char *tracker_name) |
|
void | print_latest_report (void) |
|
int | register_server_handlers (void) |
|
void | get_local_t2r (vrpn_float64 *vec, vrpn_float64 *quat) |
|
void | get_local_u2s (vrpn_int32 sensor, vrpn_float64 *vec, vrpn_float64 *quat) |
|
| vrpn_BaseClass (const char *name, vrpn_Connection *c=NULL) |
|
vrpn_Connection * | connectionPtr () |
| Returns a pointer to the connection this object is using
|
|
|
static int VRPN_CALLBACK | handle_t2r_request (void *userdata, vrpn_HANDLERPARAM p) |
|
static int VRPN_CALLBACK | handle_u2s_request (void *userdata, vrpn_HANDLERPARAM p) |
|
static int VRPN_CALLBACK | handle_workspace_request (void *userdata, vrpn_HANDLERPARAM p) |
|
bool | shutup |
|
bool | ensure_enough_unit2sensors (unsigned num) |
|
virtual int | register_types (void) |
|
virtual int | encode_to (char *buf) |
|
virtual int | encode_vel_to (char *buf) |
|
virtual int | encode_acc_to (char *buf) |
|
virtual int | encode_tracker2room_to (char *buf) |
|
virtual int | encode_unit2sensor_to (char *buf) |
|
virtual int | encode_workspace_to (char *buf) |
|
virtual int | init (void) |
|
virtual int | register_senders (void) |
|
int | register_autodeleted_handler (vrpn_int32 type, vrpn_MESSAGEHANDLER handler, void *userdata, vrpn_int32 sender=vrpn_ANY_SENDER) |
|
int | send_text_message (const char *msg, struct timeval timestamp, vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL, vrpn_uint32 level=0) |
| Sends a NULL-terminated text message from the device d_sender_id
|
|
SendTextMessageBoundCall | send_text_message (vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL) |
|
void | server_mainloop (void) |
|
void | client_mainloop (void) |
|
static int | encode_text_message_to_buffer (char *buf, vrpn_TEXT_SEVERITY severity, vrpn_uint32 level, const char *msg) |
|
static int | decode_text_message_from_buffer (char *msg, vrpn_TEXT_SEVERITY *severity, vrpn_uint32 *level, const char *buf) |
| Decodes the body of the text message from a buffer from the connection
|
|
virtual void on_data_received |
( |
size_t | bytes, |
|
|
vrpn_uint8 * | buffer ) |
|
virtual |
Derived class reimplements this callback. It is called whenever a read returns some data.
WARNING! The data returned by this function differs when the device sends multiple report types and when it only has one. When it can have more than one, the report type is sent as the first byte. When it only has one, the report type is NOT included. This is the behavior of the HIDAPI library we are using. It is surprising to me, but that's how it behaves.
实现了 vrpn_HidInterface.