1 #ifndef TF_REMAPPER_CPP_TF_REMAPPER_H
2 #define TF_REMAPPER_CPP_TF_REMAPPER_H
5 #include <tf2_msgs/TFMessage.h>
7 namespace tf_remapper_cpp {
30 explicit TfRemapper(
const XmlRpc::XmlRpcValue& mappingsParam,
bool reverse =
false);
36 void doRemapping(tf2_msgs::TFMessage& message)
const;
41 tf2_msgs::TFMessage
doRemapping(
const tf2_msgs::TFMessage& inMessage)
const;
54 #endif //TF_REMAPPER_CPP_TF_REMAPPER_H
void doRemapping(tf2_msgs::TFMessage &message) const
Rewrite TF frame names according to the rules given in constructor.
MappingsType mappings
The mappings (keys are old frame names, values are remapped names).
TfRemapper()
Empty constructor with no remappings.
Remap frames in TF messages according to given rules.
std::map< std::string, std::string > MappingsType
const MappingsType & getMappings() const
Get the mappings this remapper uses.