#include <trajectory.hh>
Public Member Functions | |
void | parse_string (std::string &atext) |
parse_string will fill TrajectoryToFill with string atext. More... | |
RulesJointTrajectory (Trajectory &TrajectoryToFill) | |
Constructor TrajectoryToFill is the structure where to store the parsed information. More... | |
Public Attributes | |
boost::regex | bg_liste_of_pts_re |
std::string | bg_liste_of_pts_str_re |
boost::regex | bg_pt_re |
std::string | bg_pt_str_re |
boost::regex | comma_pt_re |
std::string | comma_pt_str_re |
unsigned int | dbg_level |
boost::regex | end_pt_re |
std::string | end_pt_str_re |
std::string | float_str_re |
Strings specifying the grammar of the structure. More... | |
std::string | frame_id_str_re |
boost::regex | header_re |
Boost regular expressions implementing the grammar. More... | |
std::string | header_str_re |
std::string | joint_name_str_re |
std::vector< std::string > | joint_names |
boost::regex | list_of_jn_re |
std::string | list_of_jn_str_re |
boost::regex | list_of_pv_re |
std::string | list_of_pv_str_re |
std::string | point_value_str_re |
std::string | seq_str_re |
std::string | timestamp_str_re |
Protected Member Functions | |
void | parse_header (std::string &text, std::string &sub_text1) |
Find and store the header. This method is looking for: unsigned int seq. unsigned int sec, unsigned int nsec. string format_id. More... | |
void | parse_joint_names (std::string &text, std::string &sub_text1, std::vector< std::string > &joint_names) |
Understand joint_names. Extract a list of strings. 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... | |
bool | parse_seq (std::string &text, std::string &sub_text1, std::vector< double > &seq) |
Extract a sequence of doubles. To be used for position, velocities, accelerations and effort. More... | |
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. The results are given in what. The remaining text is left in sub_text. More... | |
Protected Attributes | |
Trajectory & | TrajectoryToFill_ |
Definition at line 29 of file trajectory.hh.
dynamicgraph::sot::RulesJointTrajectory::RulesJointTrajectory | ( | Trajectory & | TrajectoryToFill | ) |
Constructor TrajectoryToFill is the structure where to store the parsed information.
Definition at line 32 of file trajectory.cpp.
|
protected |
Find and store the header. This method is looking for: unsigned int seq. unsigned int sec, unsigned int nsec. string format_id.
Definition at line 99 of file trajectory.cpp.
|
protected |
Understand joint_names. Extract a list of strings.
Definition at line 126 of file trajectory.cpp.
|
protected |
Extract a point description.
Definition at line 196 of file trajectory.cpp.
|
protected |
Extract a sequence of points.
Definition at line 233 of file trajectory.cpp.
|
protected |
Extract a sequence of doubles. To be used for position, velocities, accelerations and effort.
Definition at line 154 of file trajectory.cpp.
void dynamicgraph::sot::RulesJointTrajectory::parse_string | ( | std::string & | atext | ) |
parse_string will fill TrajectoryToFill with string atext.
Definition at line 268 of file trajectory.cpp.
|
protected |
General parsing method of text with regexp e. The results are given in what. The remaining text is left in sub_text.
Definition at line 67 of file trajectory.cpp.
boost::regex dynamicgraph::sot::RulesJointTrajectory::bg_liste_of_pts_re |
Definition at line 42 of file trajectory.hh.
std::string dynamicgraph::sot::RulesJointTrajectory::bg_liste_of_pts_str_re |
Definition at line 37 of file trajectory.hh.
boost::regex dynamicgraph::sot::RulesJointTrajectory::bg_pt_re |
Definition at line 42 of file trajectory.hh.
std::string dynamicgraph::sot::RulesJointTrajectory::bg_pt_str_re |
Definition at line 37 of file trajectory.hh.
boost::regex dynamicgraph::sot::RulesJointTrajectory::comma_pt_re |
Definition at line 42 of file trajectory.hh.
std::string dynamicgraph::sot::RulesJointTrajectory::comma_pt_str_re |
Definition at line 37 of file trajectory.hh.
unsigned int dynamicgraph::sot::RulesJointTrajectory::dbg_level |
Definition at line 34 of file trajectory.hh.
boost::regex dynamicgraph::sot::RulesJointTrajectory::end_pt_re |
Definition at line 42 of file trajectory.hh.
std::string dynamicgraph::sot::RulesJointTrajectory::end_pt_str_re |
Definition at line 37 of file trajectory.hh.
std::string dynamicgraph::sot::RulesJointTrajectory::float_str_re |
Strings specifying the grammar of the structure.
Definition at line 37 of file trajectory.hh.
std::string dynamicgraph::sot::RulesJointTrajectory::frame_id_str_re |
Definition at line 37 of file trajectory.hh.
boost::regex dynamicgraph::sot::RulesJointTrajectory::header_re |
Boost regular expressions implementing the grammar.
Definition at line 42 of file trajectory.hh.
std::string dynamicgraph::sot::RulesJointTrajectory::header_str_re |
Definition at line 37 of file trajectory.hh.
std::string dynamicgraph::sot::RulesJointTrajectory::joint_name_str_re |
Definition at line 37 of file trajectory.hh.
std::vector<std::string> dynamicgraph::sot::RulesJointTrajectory::joint_names |
Definition at line 44 of file trajectory.hh.
boost::regex dynamicgraph::sot::RulesJointTrajectory::list_of_jn_re |
Definition at line 42 of file trajectory.hh.
std::string dynamicgraph::sot::RulesJointTrajectory::list_of_jn_str_re |
Definition at line 37 of file trajectory.hh.
boost::regex dynamicgraph::sot::RulesJointTrajectory::list_of_pv_re |
Definition at line 42 of file trajectory.hh.
std::string dynamicgraph::sot::RulesJointTrajectory::list_of_pv_str_re |
Definition at line 37 of file trajectory.hh.
std::string dynamicgraph::sot::RulesJointTrajectory::point_value_str_re |
Definition at line 37 of file trajectory.hh.
std::string dynamicgraph::sot::RulesJointTrajectory::seq_str_re |
Definition at line 37 of file trajectory.hh.
std::string dynamicgraph::sot::RulesJointTrajectory::timestamp_str_re |
Definition at line 37 of file trajectory.hh.
|
protected |
Definition at line 31 of file trajectory.hh.