#include <vrpn_client_ros.h>
Public Types | |
typedef std::shared_ptr < VrpnTrackerRos > | Ptr |
Public Member Functions | |
void | mainloop () |
VrpnTrackerRos (std::string tracker_name, ConnectionPtr connection, ros::NodeHandle nh) | |
VrpnTrackerRos (std::string tracker_name, std::string host, ros::NodeHandle nh) | |
~VrpnTrackerRos () | |
Private Member Functions | |
void | init (std::string tracker_name, ros::NodeHandle nh, bool create_mainloop_timer) |
Static Private Member Functions | |
static void VRPN_CALLBACK | handle_accel (void *userData, const vrpn_TRACKERACCCB tracker_accel) |
static void VRPN_CALLBACK | handle_pose (void *userData, const vrpn_TRACKERCB tracker_pose) |
static void VRPN_CALLBACK | handle_twist (void *userData, const vrpn_TRACKERVELCB tracker_twist) |
Private Attributes | |
geometry_msgs::AccelStamped | accel_msg_ |
std::vector< ros::Publisher > | accel_pubs_ |
bool | broadcast_tf_ |
ros::Timer | mainloop_timer |
ros::NodeHandle | output_nh_ |
geometry_msgs::PoseStamped | pose_msg_ |
std::vector< ros::Publisher > | pose_pubs_ |
bool | process_sensor_id_ |
std::string | tracker_name |
TrackerRemotePtr | tracker_remote_ |
geometry_msgs::TransformStamped | transform_stamped_ |
geometry_msgs::TwistStamped | twist_msg_ |
std::vector< ros::Publisher > | twist_pubs_ |
bool | use_server_time_ |
Definition at line 55 of file vrpn_client_ros.h.
typedef std::shared_ptr<VrpnTrackerRos> vrpn_client_ros::VrpnTrackerRos::Ptr |
Definition at line 59 of file vrpn_client_ros.h.
vrpn_client_ros::VrpnTrackerRos::VrpnTrackerRos | ( | std::string | tracker_name, |
ConnectionPtr | connection, | ||
ros::NodeHandle | nh | ||
) |
Create and initialize VrpnTrackerRos using an existing underlying VRPN connection object. The underlying connection object is responsible for calling the tracker's mainloop.
Definition at line 49 of file vrpn_client_ros.cpp.
vrpn_client_ros::VrpnTrackerRos::VrpnTrackerRos | ( | std::string | tracker_name, |
std::string | host, | ||
ros::NodeHandle | nh | ||
) |
Create and initialize VrpnTrackerRos, creating a new connection to tracker_name. This constructor will register timer callbacks on nh to call mainloop.
Definition at line 55 of file vrpn_client_ros.cpp.
Definition at line 100 of file vrpn_client_ros.cpp.
void VRPN_CALLBACK vrpn_client_ros::VrpnTrackerRos::handle_accel | ( | void * | userData, |
const vrpn_TRACKERACCCB | tracker_accel | ||
) | [static, private] |
Definition at line 253 of file vrpn_client_ros.cpp.
void VRPN_CALLBACK vrpn_client_ros::VrpnTrackerRos::handle_pose | ( | void * | userData, |
const vrpn_TRACKERCB | tracker_pose | ||
) | [static, private] |
Definition at line 113 of file vrpn_client_ros.cpp.
void VRPN_CALLBACK vrpn_client_ros::VrpnTrackerRos::handle_twist | ( | void * | userData, |
const vrpn_TRACKERVELCB | tracker_twist | ||
) | [static, private] |
Definition at line 198 of file vrpn_client_ros.cpp.
void vrpn_client_ros::VrpnTrackerRos::init | ( | std::string | tracker_name, |
ros::NodeHandle | nh, | ||
bool | create_mainloop_timer | ||
) | [private] |
Definition at line 63 of file vrpn_client_ros.cpp.
Call mainloop of underlying vrpn_Tracker_Remote
Definition at line 108 of file vrpn_client_ros.cpp.
geometry_msgs::AccelStamped vrpn_client_ros::VrpnTrackerRos::accel_msg_ [private] |
Definition at line 90 of file vrpn_client_ros.h.
std::vector<ros::Publisher> vrpn_client_ros::VrpnTrackerRos::accel_pubs_ [private] |
Definition at line 81 of file vrpn_client_ros.h.
bool vrpn_client_ros::VrpnTrackerRos::broadcast_tf_ [private] |
Definition at line 83 of file vrpn_client_ros.h.
Definition at line 86 of file vrpn_client_ros.h.
Definition at line 82 of file vrpn_client_ros.h.
geometry_msgs::PoseStamped vrpn_client_ros::VrpnTrackerRos::pose_msg_ [private] |
Definition at line 88 of file vrpn_client_ros.h.
std::vector<ros::Publisher> vrpn_client_ros::VrpnTrackerRos::pose_pubs_ [private] |
Definition at line 81 of file vrpn_client_ros.h.
bool vrpn_client_ros::VrpnTrackerRos::process_sensor_id_ [private] |
Definition at line 83 of file vrpn_client_ros.h.
std::string vrpn_client_ros::VrpnTrackerRos::tracker_name [private] |
Definition at line 84 of file vrpn_client_ros.h.
Definition at line 80 of file vrpn_client_ros.h.
geometry_msgs::TransformStamped vrpn_client_ros::VrpnTrackerRos::transform_stamped_ [private] |
Definition at line 91 of file vrpn_client_ros.h.
geometry_msgs::TwistStamped vrpn_client_ros::VrpnTrackerRos::twist_msg_ [private] |
Definition at line 89 of file vrpn_client_ros.h.
std::vector<ros::Publisher> vrpn_client_ros::VrpnTrackerRos::twist_pubs_ [private] |
Definition at line 81 of file vrpn_client_ros.h.
bool vrpn_client_ros::VrpnTrackerRos::use_server_time_ [private] |
Definition at line 83 of file vrpn_client_ros.h.