tf_remapper.h
Go to the documentation of this file.
1 #ifndef TF_REMAPPER_CPP_TF_REMAPPER_H
2 #define TF_REMAPPER_CPP_TF_REMAPPER_H
3 
4 #include <XmlRpc.h>
5 #include <tf2_msgs/TFMessage.h>
6 
7 namespace tf_remapper_cpp {
8 
10 class TfRemapper {
11 public:
12  typedef std::map<std::string, std::string> MappingsType;
13 
15  TfRemapper();
16 
21  explicit TfRemapper(MappingsType mappings, bool reverse = false);
22 
30  explicit TfRemapper(const XmlRpc::XmlRpcValue& mappingsParam, bool reverse = false);
31 
32  virtual ~TfRemapper();
33 
36  void doRemapping(tf2_msgs::TFMessage& message) const;
37 
41  tf2_msgs::TFMessage doRemapping(const tf2_msgs::TFMessage& inMessage) const;
42 
45  const MappingsType& getMappings() const;
46 
47 protected:
49  MappingsType mappings;
50 };
51 
52 };
53 
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.
Definition: tf_remapper.cpp:68
MappingsType mappings
The mappings (keys are old frame names, values are remapped names).
Definition: tf_remapper.h:49
TfRemapper()
Empty constructor with no remappings.
Definition: tf_remapper.cpp:5
Remap frames in TF messages according to given rules.
Definition: tf_remapper.h:10
std::map< std::string, std::string > MappingsType
Definition: tf_remapper.h:12
const MappingsType & getMappings() const
Get the mappings this remapper uses.
Definition: tf_remapper.cpp:92


tf_remapper_cpp
Author(s): Martin Pecka
autogenerated on Mon Jun 10 2019 15:29:46