Namespaces | Classes | Typedefs | Enumerations | Functions
RosMsgParser Namespace Reference

Namespaces

 details
 

Classes

class  Deserializer
 
class  FastCDR_Deserializer
 
struct  FieldLeaf
 The FieldTreeLeaf is, as the name suggests, a leaf (terminal node) of a StringTree. It provides the pointer to the node and a list of numbers that represent the index that corresponds to the placeholder "#". More...
 
struct  FieldsVector
 
struct  FlatMessage
 
struct  MessageSchema
 
class  Parser
 
class  ParsersCollection
 
class  RangeException
 
class  ROS_Deserializer
 
class  ROSField
 A ROSMessage will contain one or more ROSField(s). Each field is little more than a name / type pair. More...
 
class  ROSMessage
 
class  ROSType
 ROSType. More...
 
struct  Time
 
class  TypeException
 
class  Variant
 

Typedefs

typedef details::Tree< const ROSField * > FieldTree
 
typedef details::TreeNode< const ROSField * > FieldTreeNode
 
typedef std::vector< std::pair< std::string, double > > RenamedValues
 
using ROS2_Deserializer = FastCDR_Deserializer
 
using RosMessageLibrary = std::unordered_map< ROSType, std::shared_ptr< ROSMessage > >
 
template<class T , size_t N>
using SmallVector = llvm_vecsmall::SmallVector< T, N >
 
template<class T >
using Span = nonstd::span< T >
 

Enumerations

enum  BuiltinType {
  BOOL, BYTE, CHAR, UINT8,
  UINT16, UINT32, UINT64, INT8,
  INT16, INT32, INT64, FLOAT32,
  FLOAT64, TIME, DURATION, STRING,
  OTHER
}
 

Functions

MessageSchema::Ptr BuildMessageSchema (const std::string &topic_name, const std::vector< ROSMessage::Ptr > &parsed_msgs)
 
int builtinSize (const BuiltinType c)
 
template<typename T >
static T Deserialize (eprosima::fastcdr::Cdr &cdr)
 
template<typename Container >
void ExpandVectorIfNecessary (Container &container, size_t new_size)
 
template<typename T >
BuiltinType getType ()
 
template<>
BuiltinType getType< bool > ()
 
template<>
BuiltinType getType< char > ()
 
template<>
BuiltinType getType< double > ()
 
template<>
BuiltinType getType< float > ()
 
template<>
BuiltinType getType< int16_t > ()
 
template<>
BuiltinType getType< int32_t > ()
 
template<>
BuiltinType getType< int64_t > ()
 
template<>
BuiltinType getType< int8_t > ()
 
template<>
BuiltinType getType< RosMsgParser::Time > ()
 
template<>
BuiltinType getType< std::string > ()
 
template<>
BuiltinType getType< uint16_t > ()
 
template<>
BuiltinType getType< uint32_t > ()
 
template<>
BuiltinType getType< uint64_t > ()
 
template<>
BuiltinType getType< uint8_t > ()
 
std::ostream & operator<< (std::ostream &os, const BuiltinType &c)
 
std::ostream & operator<< (std::ostream &os, const FieldsVector &leaf)
 
std::ostream & operator<< (std::ostream &os, const ROSMessage &msg)
 
std::ostream & operator<< (std::ostream &os, const ROSMessage *msg)
 
std::ostream & operator<< (std::ostream &os, const ROSType &t)
 
bool operator== (const std::string &a, const std::string_view &b)
 
std::vector< ROSMessage::PtrParseMessageDefinitions (const std::string &multi_def, const ROSType &type)
 
std::vector< std::string > SplitMultipleMessageDefinitions (const std::string &multi_def)
 
BuiltinType toBuiltinType (const std::string_view &s)
 
const char * toStr (const BuiltinType &c)
 
void TrimString (std::string &s)
 
void TrimStringLeft (std::string &s)
 
void TrimStringRight (std::string &s)
 

Typedef Documentation

◆ FieldTree

Definition at line 74 of file ros_message.hpp.

◆ FieldTreeNode

Definition at line 73 of file ros_message.hpp.

◆ RenamedValues

typedef std::vector<std::pair<std::string, double> > RosMsgParser::RenamedValues

Definition at line 189 of file ros_parser.hpp.

◆ ROS2_Deserializer

Definition at line 135 of file deserializer.hpp.

◆ RosMessageLibrary

using RosMsgParser::RosMessageLibrary = typedef std::unordered_map<ROSType, std::shared_ptr<ROSMessage> >

Definition at line 38 of file ros_field.hpp.

◆ SmallVector

template<class T , size_t N>
using RosMsgParser::SmallVector = typedef llvm_vecsmall::SmallVector<T, N>

Definition at line 41 of file builtin_types.hpp.

◆ Span

template<class T >
using RosMsgParser::Span = typedef nonstd::span<T>

Definition at line 38 of file builtin_types.hpp.

Enumeration Type Documentation

◆ BuiltinType

Enumerator
BOOL 
BYTE 
CHAR 
UINT8 
UINT16 
UINT32 
UINT64 
INT8 
INT16 
INT32 
INT64 
FLOAT32 
FLOAT64 
TIME 
DURATION 
STRING 
OTHER 

Definition at line 43 of file builtin_types.hpp.

Function Documentation

◆ BuildMessageSchema()

MessageSchema::Ptr RosMsgParser::BuildMessageSchema ( const std::string &  topic_name,
const std::vector< ROSMessage::Ptr > &  parsed_msgs 
)

build field tree

build field tree

Definition at line 170 of file ros_message.cpp.

◆ builtinSize()

int RosMsgParser::builtinSize ( const BuiltinType  c)
inline

Definition at line 66 of file builtin_types.hpp.

◆ Deserialize()

template<typename T >
static T RosMsgParser::Deserialize ( eprosima::fastcdr::Cdr cdr)
static

Definition at line 128 of file deserializer.cpp.

◆ ExpandVectorIfNecessary()

template<typename Container >
void RosMsgParser::ExpandVectorIfNecessary ( Container &  container,
size_t  new_size 
)
inline

Definition at line 67 of file rosx_introspection/src/ros_parser.cpp.

◆ getType()

template<typename T >
BuiltinType RosMsgParser::getType ( )

Definition at line 145 of file builtin_types.hpp.

◆ getType< bool >()

template<>
BuiltinType RosMsgParser::getType< bool > ( )
inline

Definition at line 162 of file builtin_types.hpp.

◆ getType< char >()

template<>
BuiltinType RosMsgParser::getType< char > ( )
inline

Definition at line 168 of file builtin_types.hpp.

◆ getType< double >()

template<>
BuiltinType RosMsgParser::getType< double > ( )
inline

Definition at line 221 of file builtin_types.hpp.

◆ getType< float >()

template<>
BuiltinType RosMsgParser::getType< float > ( )
inline

Definition at line 216 of file builtin_types.hpp.

◆ getType< int16_t >()

template<>
BuiltinType RosMsgParser::getType< int16_t > ( )
inline

Definition at line 179 of file builtin_types.hpp.

◆ getType< int32_t >()

template<>
BuiltinType RosMsgParser::getType< int32_t > ( )
inline

Definition at line 184 of file builtin_types.hpp.

◆ getType< int64_t >()

template<>
BuiltinType RosMsgParser::getType< int64_t > ( )
inline

Definition at line 189 of file builtin_types.hpp.

◆ getType< int8_t >()

template<>
BuiltinType RosMsgParser::getType< int8_t > ( )
inline

Definition at line 174 of file builtin_types.hpp.

◆ getType< RosMsgParser::Time >()

Definition at line 233 of file builtin_types.hpp.

◆ getType< std::string >()

template<>
BuiltinType RosMsgParser::getType< std::string > ( )
inline

Definition at line 227 of file builtin_types.hpp.

◆ getType< uint16_t >()

template<>
BuiltinType RosMsgParser::getType< uint16_t > ( )
inline

Definition at line 200 of file builtin_types.hpp.

◆ getType< uint32_t >()

template<>
BuiltinType RosMsgParser::getType< uint32_t > ( )
inline

Definition at line 205 of file builtin_types.hpp.

◆ getType< uint64_t >()

template<>
BuiltinType RosMsgParser::getType< uint64_t > ( )
inline

Definition at line 210 of file builtin_types.hpp.

◆ getType< uint8_t >()

template<>
BuiltinType RosMsgParser::getType< uint8_t > ( )
inline

Definition at line 195 of file builtin_types.hpp.

◆ operator<<() [1/5]

std::ostream& RosMsgParser::operator<< ( std::ostream &  os,
const BuiltinType c 
)
inline

Definition at line 138 of file builtin_types.hpp.

◆ operator<<() [2/5]

std::ostream& RosMsgParser::operator<< ( std::ostream &  os,
const FieldsVector leaf 
)
inline

Definition at line 113 of file stringtree_leaf.hpp.

◆ operator<<() [3/5]

std::ostream& RosMsgParser::operator<< ( std::ostream &  os,
const ROSMessage msg 
)
inline

Definition at line 88 of file ros_message.hpp.

◆ operator<<() [4/5]

std::ostream& RosMsgParser::operator<< ( std::ostream &  os,
const ROSMessage msg 
)
inline

Definition at line 94 of file ros_message.hpp.

◆ operator<<() [5/5]

std::ostream& RosMsgParser::operator<< ( std::ostream &  os,
const ROSType t 
)
inline

Definition at line 145 of file ros_type.hpp.

◆ operator==()

bool RosMsgParser::operator== ( const std::string &  a,
const std::string_view b 
)
inline

Definition at line 31 of file rosx_introspection/src/ros_parser.cpp.

◆ ParseMessageDefinitions()

std::vector< ROSMessage::Ptr > RosMsgParser::ParseMessageDefinitions ( const std::string &  multi_def,
const ROSType type 
)

Definition at line 87 of file ros_message.cpp.

◆ SplitMultipleMessageDefinitions()

std::vector<std::string> RosMsgParser::SplitMultipleMessageDefinitions ( const std::string &  multi_def)

Definition at line 62 of file ros_message.cpp.

◆ toBuiltinType()

BuiltinType RosMsgParser::toBuiltinType ( const std::string_view s)
inline

Definition at line 151 of file ros_type.hpp.

◆ toStr()

const char* RosMsgParser::toStr ( const BuiltinType c)
inline

Definition at line 96 of file builtin_types.hpp.

◆ TrimString()

void RosMsgParser::TrimString ( std::string &  s)

◆ TrimStringLeft()

void RosMsgParser::TrimStringLeft ( std::string &  s)

◆ TrimStringRight()

void RosMsgParser::TrimStringRight ( std::string &  s)


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:52