Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
vrpn_client_ros::VrpnTrackerRos Class Reference

#include <vrpn_client_ros.h>

List of all members.

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::Publisheraccel_pubs_
bool broadcast_tf_
ros::Timer mainloop_timer
ros::NodeHandle output_nh_
geometry_msgs::PoseStamped pose_msg_
std::vector< ros::Publisherpose_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::Publishertwist_pubs_
bool use_server_time_

Detailed Description

Definition at line 55 of file vrpn_client_ros.h.


Member Typedef Documentation

Definition at line 59 of file vrpn_client_ros.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

geometry_msgs::AccelStamped vrpn_client_ros::VrpnTrackerRos::accel_msg_ [private]

Definition at line 90 of file vrpn_client_ros.h.

Definition at line 81 of file vrpn_client_ros.h.

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.

Definition at line 81 of file vrpn_client_ros.h.

Definition at line 83 of file vrpn_client_ros.h.

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.

Definition at line 81 of file vrpn_client_ros.h.

Definition at line 83 of file vrpn_client_ros.h.


The documentation for this class was generated from the following files:


vrpn_client_ros
Author(s): Paul Bovbel
autogenerated on Thu Jun 6 2019 18:13:13