naoqidriver
Public Member Functions | Private Attributes
naoqi::publisher::JointStatePublisher Class Reference

#include <joint_state.hpp>

Public Member Functions

 JointStatePublisher (const std::string &topic="/joint_states")
 
std::string topic () const
 
bool isInitialized () const
 
virtual void publish (const sensor_msgs::JointState &js_msg, const std::vector< geometry_msgs::TransformStamped > &tf_transforms)
 
virtual void reset (ros::NodeHandle &nh)
 
virtual bool isSubscribed () const
 

Private Attributes

boost::shared_ptr< tf2_ros::TransformBroadcaster > tf_broadcasterPtr_
 
ros::Publisher pub_joint_states_
 
std::string topic_
 
bool is_initialized_
 

Constructor & Destructor Documentation

naoqi::publisher::JointStatePublisher::JointStatePublisher ( const std::string &  topic = "/joint_states")

Member Function Documentation

bool naoqi::publisher::JointStatePublisher::isInitialized ( ) const
inline
bool naoqi::publisher::JointStatePublisher::isSubscribed ( ) const
virtual
void naoqi::publisher::JointStatePublisher::publish ( const sensor_msgs::JointState &  js_msg,
const std::vector< geometry_msgs::TransformStamped > &  tf_transforms 
)
virtual

ROBOT STATE PUBLISHER

void naoqi::publisher::JointStatePublisher::reset ( ros::NodeHandle &  nh)
virtual
std::string naoqi::publisher::JointStatePublisher::topic ( ) const
inline

Field Documentation

bool naoqi::publisher::JointStatePublisher::is_initialized_
private
ros::Publisher naoqi::publisher::JointStatePublisher::pub_joint_states_
private

initialize separate publishers for js and odom

boost::shared_ptr<tf2_ros::TransformBroadcaster> naoqi::publisher::JointStatePublisher::tf_broadcasterPtr_
private
std::string naoqi::publisher::JointStatePublisher::topic_
private

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