Public Types | |
typedef boost::function< void(const MConstPtr &, FilterFailureReason)> | FailureCallback |
typedef boost::signal< void(const MConstPtr &, FilterFailureReason)> | FailureSignal |
typedef boost::shared_ptr< M const > | MConstPtr |
typedef ros::MessageEvent< M const > | MEvent |
Public Member Functions | |
void | add (const MEvent &evt) |
void | add (const MConstPtr &message) |
Manually add a message into this filter. | |
void | clear () |
Clear any messages currently in the queue. | |
template<class F > | |
void | connectInput (F &f) |
Connect this filter's input to another filter's output. If this filter is already connected, disconnects first. | |
virtual uint32_t | getQueueSize () |
std::string | getTargetFramesString () |
Get the target frames as a string for debugging. | |
MessageFilterJointState (Transformer &tf, const std::string &target_frame, uint32_t queue_size, ros::NodeHandle nh=ros::NodeHandle(), ros::Duration max_rate=ros::Duration(0.01)) | |
Constructor. | |
template<class F > | |
MessageFilterJointState (F &f, Transformer &tf, const std::string &target_frame, uint32_t queue_size, ros::NodeHandle nh=ros::NodeHandle(), ros::Duration max_rate=ros::Duration(0.01)) | |
Constructor. | |
message_filters::Connection | registerFailureCallback (const FailureCallback &callback) |
Register a callback to be called when a message is about to be dropped. | |
ROS_STATIC_ASSERT (ros::message_traits::HasHeader< M >::value) | |
virtual void | setQueueSize (uint32_t new_queue_size) |
void | setTargetFrame (const std::string &target_frame) |
Set the frame you need to be able to transform to before getting a message callback. | |
void | setTargetFrames (const std::vector< std::string > &target_frames) |
Set the frames you need to be able to transform to before getting a message callback. | |
void | setTolerance (const ros::Duration &tolerance) |
Set the required tolerance for the notifier to return true. | |
~MessageFilterJointState () | |
Destructor. | |
Private Types | |
typedef std::list< MEvent > | L_Event |
typedef sensor_msgs::JointState | M |
Private Member Functions | |
void | checkFailures () |
void | disconnectFailure (const message_filters::Connection &c) |
void | incomingMessage (const ros::MessageEvent< M const > &evt) |
Callback that happens when we receive a message on the message topic. | |
void | init () |
void | maxRateTimerCallback (const ros::TimerEvent &) |
void | signalFailure (const MEvent &evt, FilterFailureReason reason) |
bool | testMessage (const MEvent &evt) |
void | testMessages () |
void | transformsChanged () |
Private Attributes | |
uint64_t | dropped_message_count_ |
uint64_t | failed_out_the_back_count_ |
uint64_t | failed_transform_count_ |
FailureSignal | failure_signal_ |
boost::mutex | failure_signal_mutex_ |
uint64_t | incoming_message_count_ |
std::string | last_out_the_back_frame_ |
ros::Time | last_out_the_back_stamp_ |
ros::Duration | max_rate_ |
ros::Timer | max_rate_timer_ |
message_filters::Connection | message_connection_ |
uint32_t | message_count_ |
The number of messages in the list. Used because messages_.size() has linear cost. | |
L_Event | messages_ |
The message list. | |
boost::mutex | messages_mutex_ |
The mutex used for locking message list operations. | |
bool | new_messages_ |
Used to skip waiting on new_data_ if new messages have come in while calling back. | |
volatile bool | new_transforms_ |
Used to skip waiting on new_data_ if new transforms have come in while calling back or transforming data. | |
ros::Time | next_failure_warning_ |
ros::NodeHandle | nh_ |
The node used to subscribe to the topic. | |
uint32_t | queue_size_ |
The maximum number of messages we queue up. | |
uint64_t | successful_transform_count_ |
std::vector< std::string > | target_frames_ |
The frames we need to be able to transform to before a message is ready. | |
std::string | target_frames_string_ |
boost::mutex | target_frames_string_mutex_ |
Transformer & | tf_ |
The Transformer used to determine if transformation data is available. | |
boost::signals::connection | tf_connection_ |
ros::Duration | time_tolerance_ |
Provide additional tolerance on time for messages which are stamped but can have associated duration. | |
uint64_t | transform_message_count_ |
bool | warned_about_empty_frame_id_ |
bool | warned_about_unresolved_name_ |
Definition at line 30 of file effort_display.cpp.
typedef boost::function<void(const MConstPtr&, FilterFailureReason)> tf::MessageFilterJointState::FailureCallback |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 36 of file effort_display.cpp.
typedef boost::signal<void(const MConstPtr&, FilterFailureReason)> tf::MessageFilterJointState::FailureSignal |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 37 of file effort_display.cpp.
typedef std::list<MEvent> tf::MessageFilterJointState::L_Event [private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 259 of file effort_display.cpp.
typedef sensor_msgs::JointState tf::MessageFilterJointState::M [private] |
Definition at line 32 of file effort_display.cpp.
typedef boost::shared_ptr<M const> tf::MessageFilterJointState::MConstPtr |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 34 of file effort_display.cpp.
typedef ros::MessageEvent<M const> tf::MessageFilterJointState::MEvent |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 35 of file effort_display.cpp.
tf::MessageFilterJointState::MessageFilterJointState | ( | Transformer & | tf, |
const std::string & | target_frame, | ||
uint32_t | queue_size, | ||
ros::NodeHandle | nh = ros::NodeHandle() , |
||
ros::Duration | max_rate = ros::Duration(0.01) |
||
) | [inline] |
Constructor.
tf | The tf::Transformer this filter should use |
target_frame | The frame this filter should attempt to transform to. To use multiple frames, pass an empty string here and use the setTargetFrames() function. |
queue_size | The number of messages to queue up before throwing away old ones. 0 means infinite (dangerous). |
nh | The NodeHandle to use for any necessary operations |
max_rate | The maximum rate to check for newly transformable messages |
Definition at line 51 of file effort_display.cpp.
tf::MessageFilterJointState::MessageFilterJointState | ( | F & | f, |
Transformer & | tf, | ||
const std::string & | target_frame, | ||
uint32_t | queue_size, | ||
ros::NodeHandle | nh = ros::NodeHandle() , |
||
ros::Duration | max_rate = ros::Duration(0.01) |
||
) | [inline] |
Constructor.
f | The filter to connect this filter's input to. Often will be a message_filters::Subscriber. |
tf | The tf::Transformer this filter should use |
target_frame | The frame this filter should attempt to transform to. To use multiple frames, pass an empty string here and use the setTargetFrames() function. |
queue_size | The number of messages to queue up before throwing away old ones. 0 means infinite (dangerous). |
nh | The NodeHandle to use for any necessary operations |
max_rate | The maximum rate to check for newly transformable messages |
Definition at line 74 of file effort_display.cpp.
Destructor.
Definition at line 101 of file effort_display.cpp.
void tf::MessageFilterJointState::add | ( | const MEvent & | evt | ) | [inline] |
Definition at line 176 of file effort_display.cpp.
void tf::MessageFilterJointState::add | ( | const MConstPtr & | message | ) | [inline] |
Manually add a message into this filter.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 211 of file effort_display.cpp.
void tf::MessageFilterJointState::checkFailures | ( | ) | [inline, private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 405 of file effort_display.cpp.
void tf::MessageFilterJointState::clear | ( | void | ) | [inline, virtual] |
Clear any messages currently in the queue.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 163 of file effort_display.cpp.
void tf::MessageFilterJointState::connectInput | ( | F & | f | ) | [inline] |
Connect this filter's input to another filter's output. If this filter is already connected, disconnects first.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 92 of file effort_display.cpp.
void tf::MessageFilterJointState::disconnectFailure | ( | const message_filters::Connection & | c | ) | [inline, private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 433 of file effort_display.cpp.
virtual uint32_t tf::MessageFilterJointState::getQueueSize | ( | ) | [inline, virtual] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 233 of file effort_display.cpp.
Get the target frames as a string for debugging.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 146 of file effort_display.cpp.
void tf::MessageFilterJointState::incomingMessage | ( | const ros::MessageEvent< M const > & | evt | ) | [inline, private] |
Callback that happens when we receive a message on the message topic.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 393 of file effort_display.cpp.
void tf::MessageFilterJointState::init | ( | ) | [inline, private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 240 of file effort_display.cpp.
void tf::MessageFilterJointState::maxRateTimerCallback | ( | const ros::TimerEvent & | ) | [inline, private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 378 of file effort_display.cpp.
message_filters::Connection tf::MessageFilterJointState::registerFailureCallback | ( | const FailureCallback & | callback | ) | [inline] |
Register a callback to be called when a message is about to be dropped.
callback | The callback to call |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 222 of file effort_display.cpp.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
virtual void tf::MessageFilterJointState::setQueueSize | ( | uint32_t | new_queue_size | ) | [inline, virtual] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 228 of file effort_display.cpp.
void tf::MessageFilterJointState::setTargetFrame | ( | const std::string & | target_frame | ) | [inline, virtual] |
Set the frame you need to be able to transform to before getting a message callback.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 118 of file effort_display.cpp.
void tf::MessageFilterJointState::setTargetFrames | ( | const std::vector< std::string > & | target_frames | ) | [inline, virtual] |
Set the frames you need to be able to transform to before getting a message callback.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 128 of file effort_display.cpp.
void tf::MessageFilterJointState::setTolerance | ( | const ros::Duration & | tolerance | ) | [inline, virtual] |
Set the required tolerance for the notifier to return true.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 155 of file effort_display.cpp.
void tf::MessageFilterJointState::signalFailure | ( | const MEvent & | evt, |
FilterFailureReason | reason | ||
) | [inline, private] |
Definition at line 439 of file effort_display.cpp.
bool tf::MessageFilterJointState::testMessage | ( | const MEvent & | evt | ) | [inline, private] |
Definition at line 261 of file effort_display.cpp.
void tf::MessageFilterJointState::testMessages | ( | ) | [inline, private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 352 of file effort_display.cpp.
void tf::MessageFilterJointState::transformsChanged | ( | ) | [inline, private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 398 of file effort_display.cpp.
uint64_t tf::MessageFilterJointState::dropped_message_count_ [private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 469 of file effort_display.cpp.
uint64_t tf::MessageFilterJointState::failed_out_the_back_count_ [private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 466 of file effort_display.cpp.
uint64_t tf::MessageFilterJointState::failed_transform_count_ [private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 465 of file effort_display.cpp.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 481 of file effort_display.cpp.
boost::mutex tf::MessageFilterJointState::failure_signal_mutex_ [private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 482 of file effort_display.cpp.
uint64_t tf::MessageFilterJointState::incoming_message_count_ [private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 468 of file effort_display.cpp.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 472 of file effort_display.cpp.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 471 of file effort_display.cpp.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 447 of file effort_display.cpp.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 448 of file effort_display.cpp.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 479 of file effort_display.cpp.
The number of messages in the list. Used because messages_.size() has linear cost.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 455 of file effort_display.cpp.
The message list.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 454 of file effort_display.cpp.
boost::mutex tf::MessageFilterJointState::messages_mutex_ [private] |
The mutex used for locking message list operations.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 456 of file effort_display.cpp.
Used to skip waiting on new_data_ if new messages have come in while calling back.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 458 of file effort_display.cpp.
volatile bool tf::MessageFilterJointState::new_transforms_ [private] |
Used to skip waiting on new_data_ if new transforms have come in while calling back or transforming data.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 459 of file effort_display.cpp.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 474 of file effort_display.cpp.
The node used to subscribe to the topic.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 446 of file effort_display.cpp.
The maximum number of messages we queue up.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 452 of file effort_display.cpp.
uint64_t tf::MessageFilterJointState::successful_transform_count_ [private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 464 of file effort_display.cpp.
The frames we need to be able to transform to before a message is ready.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 449 of file effort_display.cpp.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 450 of file effort_display.cpp.
boost::mutex tf::MessageFilterJointState::target_frames_string_mutex_ [private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 451 of file effort_display.cpp.
Transformer& tf::MessageFilterJointState::tf_ [private] |
The Transformer used to determine if transformation data is available.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 445 of file effort_display.cpp.
boost::signals::connection tf::MessageFilterJointState::tf_connection_ [private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 478 of file effort_display.cpp.
Provide additional tolerance on time for messages which are stamped but can have associated duration.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 476 of file effort_display.cpp.
uint64_t tf::MessageFilterJointState::transform_message_count_ [private] |
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 467 of file effort_display.cpp.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 462 of file effort_display.cpp.
Reimplemented from tf::MessageFilter< sensor_msgs::JointState >.
Definition at line 461 of file effort_display.cpp.