37 explicit VrpnClient(
const std::string &server_name);
40 INLINE
const std::string &get_server_name()
const;
41 INLINE
bool is_valid()
const;
44 void write(std::ostream &out,
int indent_level = 0)
const;
47 INLINE
static double convert_to_secs(
struct timeval msg_time);
51 const std::string &device_name);
53 virtual bool disconnect_device(
TypeHandle device_type,
54 const std::string &device_name,
57 virtual void do_poll();
60 PT(
ClientDevice) make_tracker_device(
const std::string &device_name);
61 PT(
ClientDevice) make_button_device(
const std::string &device_name);
62 PT(
ClientDevice) make_analog_device(
const std::string &device_name);
63 PT(
ClientDevice) make_dial_device(
const std::string &device_name);
69 VrpnTracker *get_tracker(
const std::string &tracker_name);
72 VrpnButton *get_button(
const std::string &button_name);
75 VrpnAnalog *get_analog(
const std::string &analog_name);
78 VrpnDial *get_dial(
const std::string &dial_name);
82 std::string _server_name;
83 vrpn_Connection *_connection;
100 static void init_type() {
101 ClientBase::init_type();
103 ClientBase::get_class_type());
106 return get_class_type();
108 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
A specific ClientBase that connects to a VRPN server and records information on the connected VRPN de...
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The Panda interface to a VRPN analog device.
This is the actual interface to a particular VRPN tracker object, and all of its sensors.
The Panda interface to a VRPN tracker.
The Panda interface to a VRPN dial device.
bool is_connected(MObject &node, const string &attribute_name)
Returns true if the named connection exists on the node and is connected to anything,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An abstract base class for a family of client device interfaces–including trackers,...
This is the actual interface to a particular VRPN dial device, and all of its numbered dials.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the actual interface to a particular VRPN analog device, and all of its numbered controls.
Any of a number of different devices that might be attached to a ClientBase, including trackers,...