Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
message_relay::FrameIdProcessor Class Reference

#include <frame_id_processor.h>

Public Types

typedef boost::shared_ptr< const FrameIdProcessorConstPtr
 
enum  Operation {
  NONE, ADD_PREFIX, SELECTIVE_ADD_PREFIX, REMOVE_PREFIX,
  SELECTIVE_REMOVE_PREFIX
}
 

Public Member Functions

void process (std::string &frame_id) const
 

Static Public Member Functions

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 create (std::string tf_prefix, FrameIdProcessor::Operation prefix_operation, boost::unordered_set< std::string > global_frame_names=boost::unordered_set< std::string >())
 
static ConstPtr inverse (const ConstPtr &processor)
 

Private Member Functions

 FrameIdProcessor (std::string tf_prefix, Operation prefix_operation, boost::unordered_set< std::string > global_frame_names)
 

Private Attributes

boost::unordered_set< std::string > global_frame_names_
 
Operation prefix_operation_
 
std::string tf_prefix_
 

Static Private Attributes

static const boost::unordered_map< Operation, Operationoperation_inverse_map_
 
static const boost::unordered_map< std::string, Operationoperation_name_map_
 

Detailed Description

Definition at line 38 of file frame_id_processor.h.

Member Typedef Documentation

Definition at line 41 of file frame_id_processor.h.

Member Enumeration Documentation

Enumerator
NONE 
ADD_PREFIX 
SELECTIVE_ADD_PREFIX 
REMOVE_PREFIX 
SELECTIVE_REMOVE_PREFIX 

Definition at line 43 of file frame_id_processor.h.

Constructor & Destructor Documentation

message_relay::FrameIdProcessor::FrameIdProcessor ( std::string  tf_prefix,
FrameIdProcessor::Operation  prefix_operation,
boost::unordered_set< std::string >  global_frame_names 
)
private

Definition at line 81 of file frame_id_processor.cpp.

Member Function Documentation

FrameIdProcessor::ConstPtr message_relay::FrameIdProcessor::create ( std::string  tf_prefix,
std::string  prefix_operation_string,
boost::unordered_set< std::string >  global_frame_names = boost::unordered_set<std::string>() 
)
static

Definition at line 47 of file frame_id_processor.cpp.

FrameIdProcessor::ConstPtr message_relay::FrameIdProcessor::create ( std::string  tf_prefix,
FrameIdProcessor::Operation  prefix_operation,
boost::unordered_set< std::string >  global_frame_names = boost::unordered_set<std::string>() 
)
static

Definition at line 62 of file frame_id_processor.cpp.

FrameIdProcessor::ConstPtr message_relay::FrameIdProcessor::inverse ( const ConstPtr processor)
static

Definition at line 68 of file frame_id_processor.cpp.

void message_relay::FrameIdProcessor::process ( std::string &  frame_id) const

Definition at line 87 of file frame_id_processor.cpp.

Member Data Documentation

boost::unordered_set<std::string> message_relay::FrameIdProcessor::global_frame_names_
private

Definition at line 67 of file frame_id_processor.h.

const boost::unordered_map< FrameIdProcessor::Operation, FrameIdProcessor::Operation > message_relay::FrameIdProcessor::operation_inverse_map_
staticprivate
const boost::unordered_map< std::string, FrameIdProcessor::Operation > message_relay::FrameIdProcessor::operation_name_map_
staticprivate
Initial value:

Definition at line 62 of file frame_id_processor.h.

Operation message_relay::FrameIdProcessor::prefix_operation_
private

Definition at line 66 of file frame_id_processor.h.

std::string message_relay::FrameIdProcessor::tf_prefix_
private

Definition at line 65 of file frame_id_processor.h.


The documentation for this class was generated from the following files:


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