Classes | Public Member Functions | Protected Types | Protected Attributes | List of all members
TFRepublisher Class Reference

Classes

struct  ClientGoalInfo
 
struct  ClientInfo
 
struct  ClientRequestInfo
 

Public Member Functions

void cancelCB (GoalHandle gh)
 
const std::string cleanTfFrame (const std::string frame_id) const
 
void goalCB (GoalHandle gh)
 
void processGoal (boost::shared_ptr< ClientGoalInfo > goal_info, const ros::TimerEvent &)
 
void processRequest (boost::shared_ptr< ClientRequestInfo > request_info, const ros::TimerEvent &)
 
bool requestCB (Request &req, Response &res)
 
void setSubscriptions (boost::shared_ptr< ClientInfo > info, const std::vector< std::string > &source_frames, const std::string &target_frame_, float angular_thres, float trans_thres) const
 
 TFRepublisher (const std::string &name)
 
void unadvertiseCB (boost::shared_ptr< ClientRequestInfo > request_info, const ros::TimerEvent &)
 
void updateSubscriptions (std::vector< TFPair > &tf_subscriptions, std::vector< geometry_msgs::TransformStamped > &transforms)
 
 ~TFRepublisher ()
 

Protected Types

typedef TFTransformServer::GoalHandle GoalHandle
 
typedef tf2_web_republisher::RepublishTFs::Request Request
 
typedef tf2_web_republisher::RepublishTFs::Response Response
 
typedef actionlib::ActionServer< tf2_web_republisher::TFSubscriptionAction > TFTransformServer
 

Protected Attributes

std::list< boost::shared_ptr< ClientGoalInfo > > active_goals_
 
std::list< boost::shared_ptr< ClientRequestInfo > > active_requests_
 
TFTransformServer as_
 
unsigned int client_ID_count_
 
boost::mutex goals_mutex_
 
ros::NodeHandle nh_
 
ros::NodeHandle priv_nh_
 
boost::mutex requests_mutex_
 
tf2::Buffer tf_buffer_
 
boost::mutex tf_buffer_mutex_
 
tf2::TransformListener tf_listener_
 
ros::ServiceServer tf_republish_service_
 

Detailed Description

Definition at line 57 of file tf_web_republisher.cpp.

Member Typedef Documentation

Definition at line 61 of file tf_web_republisher.cpp.

typedef tf2_web_republisher::RepublishTFs::Request TFRepublisher::Request
protected

Definition at line 63 of file tf_web_republisher.cpp.

typedef tf2_web_republisher::RepublishTFs::Response TFRepublisher::Response
protected

Definition at line 64 of file tf_web_republisher.cpp.

typedef actionlib::ActionServer<tf2_web_republisher::TFSubscriptionAction> TFRepublisher::TFTransformServer
protected

Definition at line 60 of file tf_web_republisher.cpp.

Constructor & Destructor Documentation

TFRepublisher::TFRepublisher ( const std::string &  name)
inline

Definition at line 115 of file tf_web_republisher.cpp.

TFRepublisher::~TFRepublisher ( )
inline

Definition at line 133 of file tf_web_republisher.cpp.

Member Function Documentation

void TFRepublisher::cancelCB ( GoalHandle  gh)
inline

Definition at line 137 of file tf_web_republisher.cpp.

const std::string TFRepublisher::cleanTfFrame ( const std::string  frame_id) const
inline

Definition at line 159 of file tf_web_republisher.cpp.

void TFRepublisher::goalCB ( GoalHandle  gh)
inline

Definition at line 195 of file tf_web_republisher.cpp.

void TFRepublisher::processGoal ( boost::shared_ptr< ClientGoalInfo goal_info,
const ros::TimerEvent  
)
inline

Definition at line 351 of file tf_web_republisher.cpp.

void TFRepublisher::processRequest ( boost::shared_ptr< ClientRequestInfo request_info,
const ros::TimerEvent  
)
inline

Definition at line 369 of file tf_web_republisher.cpp.

bool TFRepublisher::requestCB ( Request req,
Response res 
)
inline

Definition at line 228 of file tf_web_republisher.cpp.

void TFRepublisher::setSubscriptions ( boost::shared_ptr< ClientInfo info,
const std::vector< std::string > &  source_frames,
const std::string &  target_frame_,
float  angular_thres,
float  trans_thres 
) const
inline

Set up the contents of tf_subscriptions_ in a ClientInfo struct

Definition at line 172 of file tf_web_republisher.cpp.

void TFRepublisher::unadvertiseCB ( boost::shared_ptr< ClientRequestInfo request_info,
const ros::TimerEvent  
)
inline

Definition at line 266 of file tf_web_republisher.cpp.

void TFRepublisher::updateSubscriptions ( std::vector< TFPair > &  tf_subscriptions,
std::vector< geometry_msgs::TransformStamped > &  transforms 
)
inline

Definition at line 289 of file tf_web_republisher.cpp.

Member Data Documentation

std::list<boost::shared_ptr<ClientGoalInfo> > TFRepublisher::active_goals_
protected

Definition at line 95 of file tf_web_republisher.cpp.

std::list<boost::shared_ptr<ClientRequestInfo> > TFRepublisher::active_requests_
protected

Definition at line 98 of file tf_web_republisher.cpp.

TFTransformServer TFRepublisher::as_
protected

Definition at line 69 of file tf_web_republisher.cpp.

unsigned int TFRepublisher::client_ID_count_
protected

Definition at line 111 of file tf_web_republisher.cpp.

boost::mutex TFRepublisher::goals_mutex_
protected

Definition at line 96 of file tf_web_republisher.cpp.

ros::NodeHandle TFRepublisher::nh_
protected

Definition at line 66 of file tf_web_republisher.cpp.

ros::NodeHandle TFRepublisher::priv_nh_
protected

Definition at line 67 of file tf_web_republisher.cpp.

boost::mutex TFRepublisher::requests_mutex_
protected

Definition at line 99 of file tf_web_republisher.cpp.

tf2::Buffer TFRepublisher::tf_buffer_
protected

Definition at line 103 of file tf_web_republisher.cpp.

boost::mutex TFRepublisher::tf_buffer_mutex_
protected

Definition at line 109 of file tf_web_republisher.cpp.

tf2::TransformListener TFRepublisher::tf_listener_
protected

Definition at line 104 of file tf_web_republisher.cpp.

ros::ServiceServer TFRepublisher::tf_republish_service_
protected

Definition at line 70 of file tf_web_republisher.cpp.


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


tf2_web_republisher
Author(s): Julius Kammer
autogenerated on Mon Apr 5 2021 03:02:43