39 VrpnTracker(
const std::string &tracker_name, vrpn_Connection *connection);
50 void output(std::ostream &out)
const;
51 void write(std::ostream &out,
int indent_level = 0)
const;
54 static void VRPN_CALLBACK
55 vrpn_position_callback(
void *userdata,
const vrpn_TRACKERCB info);
56 static void VRPN_CALLBACK
57 vrpn_velocity_callback(
void *userdata,
const vrpn_TRACKERVELCB info);
58 static void VRPN_CALLBACK
59 vrpn_acceleration_callback(
void *userdata,
const vrpn_TRACKERACCCB info);
62 std::string _tracker_name;
63 vrpn_Tracker_Remote *_tracker;
69 INLINE std::ostream &operator << (std::ostream &out,
const VrpnTracker &tracker) {
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void unmark(VrpnTrackerDevice *device)
Removes the indicated VrpnTrackerDevice from the list of devices that are sharing this VrpnTracker.
This is the actual interface to a particular VRPN tracker object, and all of its sensors.
const std::string & get_tracker_name() const
Returns the name of the tracker device that was used to create this VrpnTracker.
The Panda interface to a VRPN tracker.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void mark(VrpnTrackerDevice *device)
Adds the indicated VrpnTrackerDevice to the list of devices that are sharing this VrpnTracker.
void poll()
Polls the connected device.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool is_empty() const
Returns true if no VrpnTrackerDevices reference this VrpnTracker, or false otherwise.