Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
robot_state_publisher::JointStateListener Class Reference

#include <joint_state_listener.h>

Inheritance diagram for robot_state_publisher::JointStateListener:
Inheritance graph
[legend]

Public Member Functions

 JointStateListener ()
 
 JointStateListener (const KDL::Tree &tree, const MimicMap &m, const urdf::Model &model=urdf::Model())
 
 JointStateListener (const std::shared_ptr< RobotStatePublisher > &rsp, const MimicMap &m)
 
 ~JointStateListener ()
 Destructor. More...
 

Protected Member Functions

virtual void callbackFixedJoint (const ros::TimerEvent &e)
 
virtual void callbackJointState (const JointStateConstPtr &state)
 

Protected Attributes

bool ignore_timestamp_
 
ros::Subscriber joint_state_sub_
 
ros::Time last_callback_time_
 
std::map< std::string, ros::Timelast_publish_time_
 
MimicMap mimic_
 
ros::Duration publish_interval_
 
std::shared_ptr< RobotStatePublisherstate_publisher_
 
ros::Timer timer_
 
bool use_tf_static_
 

Private Member Functions

std::string getTFPrefix ()
 

Detailed Description

Definition at line 89 of file joint_state_listener.h.

Constructor & Destructor Documentation

◆ JointStateListener() [1/3]

JointStateListener::JointStateListener ( )

Default constructor.

Definition at line 51 of file joint_state_listener.cpp.

◆ JointStateListener() [2/3]

JointStateListener::JointStateListener ( const KDL::Tree &  tree,
const MimicMap m,
const urdf::Model model = urdf::Model() 
)

Constructor

Parameters
treeThe kinematic model of a robot, represented by a KDL Tree

Definition at line 55 of file joint_state_listener.cpp.

◆ JointStateListener() [3/3]

JointStateListener::JointStateListener ( const std::shared_ptr< RobotStatePublisher > &  rsp,
const MimicMap m 
)

Definition at line 60 of file joint_state_listener.cpp.

◆ ~JointStateListener()

JointStateListener::~JointStateListener ( )

Destructor.

Definition at line 90 of file joint_state_listener.cpp.

Member Function Documentation

◆ callbackFixedJoint()

void JointStateListener::callbackFixedJoint ( const ros::TimerEvent e)
protectedvirtual

Definition at line 106 of file joint_state_listener.cpp.

◆ callbackJointState()

void JointStateListener::callbackJointState ( const JointStateConstPtr state)
protectedvirtual

Definition at line 112 of file joint_state_listener.cpp.

◆ getTFPrefix()

std::string JointStateListener::getTFPrefix ( )
private

Definition at line 93 of file joint_state_listener.cpp.

Member Data Documentation

◆ ignore_timestamp_

bool robot_state_publisher::JointStateListener::ignore_timestamp_
protected

Definition at line 121 of file joint_state_listener.h.

◆ joint_state_sub_

ros::Subscriber robot_state_publisher::JointStateListener::joint_state_sub_
protected

Definition at line 115 of file joint_state_listener.h.

◆ last_callback_time_

ros::Time robot_state_publisher::JointStateListener::last_callback_time_
protected

Definition at line 117 of file joint_state_listener.h.

◆ last_publish_time_

std::map<std::string, ros::Time> robot_state_publisher::JointStateListener::last_publish_time_
protected

Definition at line 118 of file joint_state_listener.h.

◆ mimic_

MimicMap robot_state_publisher::JointStateListener::mimic_
protected

Definition at line 119 of file joint_state_listener.h.

◆ publish_interval_

ros::Duration robot_state_publisher::JointStateListener::publish_interval_
protected

Definition at line 113 of file joint_state_listener.h.

◆ state_publisher_

std::shared_ptr<RobotStatePublisher> robot_state_publisher::JointStateListener::state_publisher_
protected

Definition at line 114 of file joint_state_listener.h.

◆ timer_

ros::Timer robot_state_publisher::JointStateListener::timer_
protected

Definition at line 116 of file joint_state_listener.h.

◆ use_tf_static_

bool robot_state_publisher::JointStateListener::use_tf_static_
protected

Definition at line 120 of file joint_state_listener.h.


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


robot_state_publisher
Author(s): Ioan Sucan , Jackie Kay , Wim Meeussen
autogenerated on Fri Nov 3 2023 02:08:42