Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
vrpn_client_ros::VrpnTrackerRos Class Reference

#include <vrpn_client_ros.h>

Public Types

typedef std::shared_ptr< VrpnTrackerRosPtr
 

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 63 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 84 of file vrpn_client_ros.cpp.

vrpn_client_ros::VrpnTrackerRos::~VrpnTrackerRos ( )

Definition at line 129 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 
)
staticprivate

Definition at line 282 of file vrpn_client_ros.cpp.

void VRPN_CALLBACK vrpn_client_ros::VrpnTrackerRos::handle_pose ( void *  userData,
const vrpn_TRACKERCB  tracker_pose 
)
staticprivate

Definition at line 142 of file vrpn_client_ros.cpp.

void VRPN_CALLBACK vrpn_client_ros::VrpnTrackerRos::handle_twist ( void *  userData,
const vrpn_TRACKERVELCB  tracker_twist 
)
staticprivate

Definition at line 227 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 92 of file vrpn_client_ros.cpp.

void vrpn_client_ros::VrpnTrackerRos::mainloop ( )

Call mainloop of underlying vrpn_Tracker_Remote

Definition at line 137 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.

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.

ros::Timer vrpn_client_ros::VrpnTrackerRos::mainloop_timer
private

Definition at line 86 of file vrpn_client_ros.h.

ros::NodeHandle vrpn_client_ros::VrpnTrackerRos::output_nh_
private

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.

TrackerRemotePtr vrpn_client_ros::VrpnTrackerRos::tracker_remote_
private

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.


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


vrpn_client_ros
Author(s): Paul Bovbel
autogenerated on Sat Jun 8 2019 04:44:59