Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
stdr_parser::MessageCreator Class Reference

Creates STDR messages from a STDR tree. More...

#include <stdr_parser_msg_creator.h>

Public Member Functions

template<>
geometry_msgs::Pose2D createMessage (Node *n, unsigned int id)
 Creates a message from a parsed file - template specialization for geometry_msgs::Pose2D. More...
 
template<>
geometry_msgs::Point createMessage (Node *n, unsigned int id)
 Creates a message from a parsed file - template specialization for geometry_msgs::Point. More...
 
template<>
stdr_msgs::Noise createMessage (Node *n, unsigned int id)
 Creates a message from a parsed file - template specialization for stdr_msgs::Noise. More...
 
template<>
stdr_msgs::FootprintMsg createMessage (Node *n, unsigned int id)
 Creates a message from a parsed file - template specialization for stdr_msgs::FootprintMsg. More...
 
template<>
stdr_msgs::LaserSensorMsg createMessage (Node *n, unsigned int id)
 Creates a message from a parsed file - template specialization for stdr_msgs::LaserSensorMsg. More...
 
template<>
stdr_msgs::SonarSensorMsg createMessage (Node *n, unsigned int id)
 Creates a message from a parsed file - template specialization for stdr_msgs::SonarSensorMsg. More...
 
template<>
stdr_msgs::RfidSensorMsg createMessage (Node *n, unsigned int id)
 Creates a message from a parsed file - template specialization for \ stdr_msgs::RfidSensorMsg. More...
 
template<>
stdr_msgs::CO2SensorMsg createMessage (Node *n, unsigned int id)
 Creates a message from a parsed file - template specialization for \ stdr_msgs::CO2SensorMsg. More...
 
template<>
stdr_msgs::ThermalSensorMsg createMessage (Node *n, unsigned int id)
 Creates a message from a parsed file - template specialization for \ stdr_msgs::ThermalSensorMsg. More...
 
template<>
stdr_msgs::SoundSensorMsg createMessage (Node *n, unsigned int id)
 Creates a message from a parsed file - template specialization for \ stdr_msgs::SoundSensorMsg. More...
 
template<>
stdr_msgs::KinematicMsg createMessage (Node *n, unsigned int id)
 Creates a message from a parsed file - template specialization for \ stdr_msgs::KinematicMsg. More...
 
template<>
stdr_msgs::RobotMsg createMessage (Node *n, unsigned int id)
 Creates a message from a parsed file - template specialization for stdr_msgs::RobotMsg. More...
 

Static Public Member Functions

template<typename T >
static T createMessage (Node *n, unsigned int id)
 Creates a pose message from a parsed file. More...
 
template<typename T >
static T stringToType (std::string s)
 

Private Member Functions

 MessageCreator (void)
 Default constructor. More...
 

Detailed Description

Creates STDR messages from a STDR tree.

Definition at line 39 of file stdr_parser_msg_creator.h.

Constructor & Destructor Documentation

stdr_parser::MessageCreator::MessageCreator ( void  )
private

Default constructor.

Returns
void

Definition at line 30 of file stdr_parser_msg_creator.cpp.

Member Function Documentation

template<>
geometry_msgs::Pose2D stdr_parser::MessageCreator::createMessage ( Node n,
unsigned int  id 
)

Creates a message from a parsed file - template specialization for geometry_msgs::Pose2D.

Parameters
n[Node*] The root node
Returns
The message

< Search for x

Definition at line 50 of file stdr_parser_msg_creator.cpp.

template<typename T >
T stdr_parser::MessageCreator::createMessage ( Node n,
unsigned int  id 
)
static

Creates a pose message from a parsed file.

Creates a message from a parsed file.

Parameters
n[Node*] The root node
Returns
geometry_msgs::Pose2D
Parameters
n[Node*] The root node
Returns
The message

Definition at line 41 of file stdr_parser_msg_creator.cpp.

template<>
geometry_msgs::Point stdr_parser::MessageCreator::createMessage ( Node n,
unsigned int  id 
)

Creates a message from a parsed file - template specialization for geometry_msgs::Point.

Parameters
n[Node*] The root node
Returns
The message

Definition at line 102 of file stdr_parser_msg_creator.cpp.

template<>
stdr_msgs::Noise stdr_parser::MessageCreator::createMessage ( Node n,
unsigned int  id 
)

Creates a message from a parsed file - template specialization for stdr_msgs::Noise.

Parameters
n[Node*] The root node
Returns
The message

< Search for noise mean

Definition at line 141 of file stdr_parser_msg_creator.cpp.

template<>
stdr_msgs::FootprintMsg stdr_parser::MessageCreator::createMessage ( Node n,
unsigned int  id 
)

Creates a message from a parsed file - template specialization for stdr_msgs::FootprintMsg.

Parameters
n[Node*] The root node
Returns
The message

< Search for radius

Definition at line 184 of file stdr_parser_msg_creator.cpp.

template<>
stdr_msgs::LaserSensorMsg stdr_parser::MessageCreator::createMessage ( Node n,
unsigned int  id 
)

Creates a message from a parsed file - template specialization for stdr_msgs::LaserSensorMsg.

Parameters
n[Node*] The root node
Returns
The message

< Search for max angle

Definition at line 230 of file stdr_parser_msg_creator.cpp.

template<>
stdr_msgs::SonarSensorMsg stdr_parser::MessageCreator::createMessage ( Node n,
unsigned int  id 
)

Creates a message from a parsed file - template specialization for stdr_msgs::SonarSensorMsg.

Parameters
n[Node*] The root node
Returns
The message

< Search for max range

Definition at line 362 of file stdr_parser_msg_creator.cpp.

template<>
stdr_msgs::RfidSensorMsg stdr_parser::MessageCreator::createMessage ( Node n,
unsigned int  id 
)

Creates a message from a parsed file - template specialization for \ stdr_msgs::RfidSensorMsg.

Parameters
n[Node*] The root node
Returns
The message

< Search for angle span

Definition at line 469 of file stdr_parser_msg_creator.cpp.

template<>
stdr_msgs::CO2SensorMsg stdr_parser::MessageCreator::createMessage ( Node n,
unsigned int  id 
)

Creates a message from a parsed file - template specialization for \ stdr_msgs::CO2SensorMsg.

Parameters
n[Node*] The root node
Returns
The message

< Search for max range

Definition at line 568 of file stdr_parser_msg_creator.cpp.

template<>
stdr_msgs::ThermalSensorMsg stdr_parser::MessageCreator::createMessage ( Node n,
unsigned int  id 
)

Creates a message from a parsed file - template specialization for \ stdr_msgs::ThermalSensorMsg.

Parameters
n[Node*] The root node
Returns
The message

< Search for max range

Definition at line 641 of file stdr_parser_msg_creator.cpp.

template<>
stdr_msgs::SoundSensorMsg stdr_parser::MessageCreator::createMessage ( Node n,
unsigned int  id 
)

Creates a message from a parsed file - template specialization for \ stdr_msgs::SoundSensorMsg.

Parameters
n[Node*] The root node
Returns
The message

< Search for max range

Definition at line 727 of file stdr_parser_msg_creator.cpp.

template<>
stdr_msgs::KinematicMsg stdr_parser::MessageCreator::createMessage ( Node n,
unsigned int  id 
)

Creates a message from a parsed file - template specialization for \ stdr_msgs::KinematicMsg.

Parameters
n[Node*] The root node
Returns
The message

< Search for kinematic model

Definition at line 814 of file stdr_parser_msg_creator.cpp.

template<>
stdr_msgs::RobotMsg stdr_parser::MessageCreator::createMessage ( Node n,
unsigned int  id 
)

Creates a message from a parsed file - template specialization for stdr_msgs::RobotMsg.

Parameters
n[Node*] The root node
Returns
The message

< Search for pose

Definition at line 923 of file stdr_parser_msg_creator.cpp.

template<typename T >
static T stdr_parser::MessageCreator::stringToType ( std::string  s)
inlinestatic

Definition at line 60 of file stdr_parser_msg_creator.h.


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


stdr_parser
Author(s): Manos Tsardoulias, Chris Zalidis, Aris Thallas
autogenerated on Mon Jun 10 2019 15:14:54