dynamicgraph::sot::RulesJointTrajectory Class Reference

#include <sot/core/trajectory.hh>

Public Member Functions

 RulesJointTrajectory (Trajectory &TrajectoryToFill)
 Constructor TrajectoryToFill is the structure where to store the parsed information. More...
 
void parse_string (std::string &atext)
 parse_string will fill TrajectoryToFill with string atext. More...
 

Public Attributes

unsigned int dbg_level
 
std::string float_str_re
 Strings specifying the grammar of the structure. More...
 
std::string seq_str_re
 
std::string timestamp_str_re
 
std::string frame_id_str_re
 
std::string header_str_re
 
std::string joint_name_str_re
 
std::string list_of_jn_str_re
 
std::string point_value_str_re
 
std::string list_of_pv_str_re
 
std::string bg_pt_str_re
 
std::string end_pt_str_re
 
std::string comma_pt_str_re
 
std::string bg_liste_of_pts_str_re
 
boost::regex header_re
 Boost regular expressions implementing the grammar. More...
 
boost::regex list_of_jn_re
 
boost::regex list_of_pv_re
 
boost::regex bg_pt_re
 
boost::regex end_pt_re
 
boost::regex comma_pt_re
 
boost::regex bg_liste_of_pts_re
 
std::vector< std::string > joint_names
 

Protected Member Functions

bool search_exp_sub_string (std::string &text, boost::match_results< std::string::const_iterator > &what, boost::regex &e, std::string &sub_text)
 General parsing method of text with regexp e. More...
 
void parse_header (std::string &text, std::string &sub_text1)
 Find and store the header. More...
 
void parse_joint_names (std::string &text, std::string &sub_text1, std::vector< std::string > &joint_names)
 Understand joint_names. More...
 
bool parse_seq (std::string &text, std::string &sub_text1, std::vector< double > &seq)
 Extract a sequence of doubles. More...
 
bool parse_point (std::string &trajectory, std::string &sub_text1)
 Extract a point description. More...
 
bool parse_points (std::string &trajectory, std::string &sub_text1)
 Extract a sequence of points. More...
 

Protected Attributes

TrajectoryTrajectoryToFill_
 

Constructor & Destructor Documentation

dynamicgraph::sot::RulesJointTrajectory::RulesJointTrajectory ( Trajectory TrajectoryToFill)

Constructor TrajectoryToFill is the structure where to store the parsed information.

Member Function Documentation

void dynamicgraph::sot::RulesJointTrajectory::parse_header ( std::string &  text,
std::string &  sub_text1 
)
protected

Find and store the header.

This method is looking for: unsigned int seq. unsigned int sec, unsigned int nsec. string format_id

void dynamicgraph::sot::RulesJointTrajectory::parse_joint_names ( std::string &  text,
std::string &  sub_text1,
std::vector< std::string > &  joint_names 
)
protected

Understand joint_names.

Extract a list of strings.

bool dynamicgraph::sot::RulesJointTrajectory::parse_point ( std::string &  trajectory,
std::string &  sub_text1 
)
protected

Extract a point description.

bool dynamicgraph::sot::RulesJointTrajectory::parse_points ( std::string &  trajectory,
std::string &  sub_text1 
)
protected

Extract a sequence of points.

bool dynamicgraph::sot::RulesJointTrajectory::parse_seq ( std::string &  text,
std::string &  sub_text1,
std::vector< double > &  seq 
)
protected

Extract a sequence of doubles.

To be used for position, velocities, accelerations and effort.

void dynamicgraph::sot::RulesJointTrajectory::parse_string ( std::string &  atext)

parse_string will fill TrajectoryToFill with string atext.

bool dynamicgraph::sot::RulesJointTrajectory::search_exp_sub_string ( std::string &  text,
boost::match_results< std::string::const_iterator > &  what,
boost::regex &  e,
std::string &  sub_text 
)
protected

General parsing method of text with regexp e.

The results are given in what. The remaining text is left in sub_text.

Member Data Documentation

boost::regex dynamicgraph::sot::RulesJointTrajectory::bg_liste_of_pts_re
std::string dynamicgraph::sot::RulesJointTrajectory::bg_liste_of_pts_str_re
boost::regex dynamicgraph::sot::RulesJointTrajectory::bg_pt_re
std::string dynamicgraph::sot::RulesJointTrajectory::bg_pt_str_re
boost::regex dynamicgraph::sot::RulesJointTrajectory::comma_pt_re
std::string dynamicgraph::sot::RulesJointTrajectory::comma_pt_str_re
unsigned int dynamicgraph::sot::RulesJointTrajectory::dbg_level
boost::regex dynamicgraph::sot::RulesJointTrajectory::end_pt_re
std::string dynamicgraph::sot::RulesJointTrajectory::end_pt_str_re
std::string dynamicgraph::sot::RulesJointTrajectory::float_str_re

Strings specifying the grammar of the structure.

std::string dynamicgraph::sot::RulesJointTrajectory::frame_id_str_re
boost::regex dynamicgraph::sot::RulesJointTrajectory::header_re

Boost regular expressions implementing the grammar.

std::string dynamicgraph::sot::RulesJointTrajectory::header_str_re
std::string dynamicgraph::sot::RulesJointTrajectory::joint_name_str_re
std::vector<std::string> dynamicgraph::sot::RulesJointTrajectory::joint_names
boost::regex dynamicgraph::sot::RulesJointTrajectory::list_of_jn_re
std::string dynamicgraph::sot::RulesJointTrajectory::list_of_jn_str_re
boost::regex dynamicgraph::sot::RulesJointTrajectory::list_of_pv_re
std::string dynamicgraph::sot::RulesJointTrajectory::list_of_pv_str_re
std::string dynamicgraph::sot::RulesJointTrajectory::point_value_str_re
std::string dynamicgraph::sot::RulesJointTrajectory::seq_str_re
std::string dynamicgraph::sot::RulesJointTrajectory::timestamp_str_re
Trajectory& dynamicgraph::sot::RulesJointTrajectory::TrajectoryToFill_
protected