frame_id_processor.h
Go to the documentation of this file.
1 
25 #ifndef MESSAGE_RELAY_PROCESSOR_FRAME_ID_PROCESSOR_H
26 #define MESSAGE_RELAY_PROCESSOR_FRAME_ID_PROCESSOR_H
27 
28 #include <string>
29 #include <vector>
30 #include <boost/unordered_map.hpp>
31 #include <boost/unordered_set.hpp>
32 
33 #include <boost/assign/list_of.hpp>
34 
35 namespace message_relay
36 {
37 
39 {
40 public:
42 
43  enum Operation
44  {
46  };
47 
48  static ConstPtr create(std::string tf_prefix, std::string prefix_operation_string,
49  boost::unordered_set<std::string> global_frame_names = boost::unordered_set<std::string>());
50 
51  static ConstPtr create(std::string tf_prefix, FrameIdProcessor::Operation prefix_operation,
52  boost::unordered_set<std::string> global_frame_names = boost::unordered_set<std::string>());
53 
54  void process(std::string &frame_id) const;
55 
56  static ConstPtr inverse(const ConstPtr &processor);
57 
58 private:
59  FrameIdProcessor(std::string tf_prefix, Operation prefix_operation,
60  boost::unordered_set<std::string> global_frame_names);
61 
62  static const boost::unordered_map<std::string, Operation> operation_name_map_;
63  static const boost::unordered_map<Operation, Operation> operation_inverse_map_;
64 
65  std::string tf_prefix_;
67  boost::unordered_set<std::string> global_frame_names_;
68 };
69 
70 } // namespace message_relay
71 
72 #endif // MESSAGE_RELAY_PROCESSOR_FRAME_ID_PROCESSOR_H
static const boost::unordered_map< Operation, Operation > operation_inverse_map_
boost::shared_ptr< const FrameIdProcessor > ConstPtr
static const boost::unordered_map< std::string, Operation > operation_name_map_
static ConstPtr create(std::string tf_prefix, std::string prefix_operation_string, boost::unordered_set< std::string > global_frame_names=boost::unordered_set< std::string >())
static ConstPtr inverse(const ConstPtr &processor)
FrameIdProcessor(std::string tf_prefix, Operation prefix_operation, boost::unordered_set< std::string > global_frame_names)
void process(std::string &frame_id) const
boost::unordered_set< std::string > global_frame_names_


message_relay
Author(s):
autogenerated on Wed Jul 17 2019 03:27:53