#include <sot/core/trajectory.hh>
Public Member Functions | |
RulesJointTrajectory (Trajectory &TrajectoryToFill) | |
Constructor TrajectoryToFill is the structure where to store the parsed information. | |
void | parse_string (std::string &atext) |
parse_string will fill TrajectoryToFill with string atext. | |
Public Attributes | |
unsigned int | dbg_level |
std::string | float_str_re |
Strings specifying the grammar of the structure. | |
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. | |
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. | |
void | parse_header (std::string &text, std::string &sub_text1) |
Find and store the header. | |
void | parse_joint_names (std::string &text, std::string &sub_text1, std::vector< std::string > &joint_names) |
Understand joint_names. | |
bool | parse_seq (std::string &text, std::string &sub_text1, std::vector< double > &seq) |
Extract a sequence of doubles. | |
bool | parse_point (std::string &trajectory, std::string &sub_text1) |
Extract a point description. | |
bool | parse_points (std::string &trajectory, std::string &sub_text1) |
Extract a sequence of points. | |
Protected Attributes | |
Trajectory & | TrajectoryToFill_ |
dynamicgraph::sot::RulesJointTrajectory::RulesJointTrajectory | ( | Trajectory & | TrajectoryToFill | ) |
Constructor TrajectoryToFill is the structure where to store the parsed information.
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.
boost::regex dynamicgraph::sot::RulesJointTrajectory::bg_pt_re |
boost::regex dynamicgraph::sot::RulesJointTrajectory::comma_pt_re |
unsigned int dynamicgraph::sot::RulesJointTrajectory::dbg_level |
boost::regex dynamicgraph::sot::RulesJointTrajectory::end_pt_re |
Strings specifying the grammar of the structure.
boost::regex dynamicgraph::sot::RulesJointTrajectory::header_re |
Boost regular expressions implementing the grammar.
std::vector<std::string> dynamicgraph::sot::RulesJointTrajectory::joint_names |