Go to the documentation of this file. 1 #ifndef TF_REMAPPER_NODE_CPP_TF_REMAPPER_H
2 #define TF_REMAPPER_NODE_CPP_TF_REMAPPER_H
5 #include <tf2_msgs/TFMessage.h>
60 void addToStaticTfCache(
const tf2_msgs::TFMessage& message, tf2_msgs::TFMessage& cache)
const;
65 #endif //TF_REMAPPER_NODE_CPP_TF_REMAPPER_H
A node that remaps TF frame names according to the given set of rules.
tf2_msgs::TFMessage reverseStaticTfCache
Cache of static TF messages.
ros::Subscriber oldTfSubscriber
Private ROS node handle.
ros::NodeHandle publicNodeHandle
std::string remappedTfTopic
Name of the old topic ("/tf_old").
ros::NodeHandle privateNodeHandle
ROS node handle.
TfRemapper reverseTfRemapper
The remapper that actually changes the TF messages.
ros::Publisher remappedTfPublisher
Subscriber to /tf (only in bidirectional mode).
virtual ~TfRemapperNode()
bool staticTf
Publisher of /tf_old (only in bidirectional mode).
void addToStaticTfCache(const tf2_msgs::TFMessage &message, tf2_msgs::TFMessage &cache) const
Add the given TF message to the static TF cache. Newer TFs overwrite the older ones.
TfRemapper tfRemapper
Name of the remapped topic ("/tf").
Remap frames in TF messages according to given rules.
std::string oldTfTopic
Cache of static TF messages in the reverse direction.
ros::Publisher oldTfPublisher
Publisher of /tf.
tf2_msgs::TFMessage staticTfCache
If true, this node works with static TF, which need special care.
void oldTfCallback(const ros::MessageEvent< tf2_msgs::TFMessage const > &event)
The remapper that actually changes the TF messages in reverse direction.
void remappedTfCallback(const ros::MessageEvent< tf2_msgs::TFMessage const > &event)
Callback when a TF message arrives on the remapped TF topic.
ros::Subscriber remappedTfSubscriber
Subscriber to /tf_old.
tf_remapper_cpp
Author(s): Martin Pecka
autogenerated on Mon May 2 2022 02:25:06