Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
dynamicgraph::sot::RulesJointTrajectory Class Reference

#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
 
std::size_t 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: std::size_t seq. std::size_t sec, std::size_t 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

TrajectoryTrajectoryToFill_
 

Detailed Description

Definition at line 29 of file trajectory.hh.

Constructor & Destructor Documentation

◆ RulesJointTrajectory()

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.

Member Function Documentation

◆ parse_header()

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

Find and store the header. This method is looking for: std::size_t seq. std::size_t sec, std::size_t nsec. string format_id.

Definition at line 99 of file trajectory.cpp.

◆ parse_joint_names()

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.

Definition at line 126 of file trajectory.cpp.

◆ parse_point()

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

Extract a point description.

Definition at line 196 of file trajectory.cpp.

◆ parse_points()

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

Extract a sequence of points.

Definition at line 233 of file trajectory.cpp.

◆ parse_seq()

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.

Definition at line 154 of file trajectory.cpp.

◆ parse_string()

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.

◆ search_exp_sub_string()

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.

Definition at line 67 of file trajectory.cpp.

Member Data Documentation

◆ bg_liste_of_pts_re

boost::regex dynamicgraph::sot::RulesJointTrajectory::bg_liste_of_pts_re

Definition at line 43 of file trajectory.hh.

◆ bg_liste_of_pts_str_re

std::string dynamicgraph::sot::RulesJointTrajectory::bg_liste_of_pts_str_re

Definition at line 40 of file trajectory.hh.

◆ bg_pt_re

boost::regex dynamicgraph::sot::RulesJointTrajectory::bg_pt_re

Definition at line 42 of file trajectory.hh.

◆ bg_pt_str_re

std::string dynamicgraph::sot::RulesJointTrajectory::bg_pt_str_re

Definition at line 39 of file trajectory.hh.

◆ comma_pt_re

boost::regex dynamicgraph::sot::RulesJointTrajectory::comma_pt_re

Definition at line 43 of file trajectory.hh.

◆ comma_pt_str_re

std::string dynamicgraph::sot::RulesJointTrajectory::comma_pt_str_re

Definition at line 39 of file trajectory.hh.

◆ dbg_level

std::size_t dynamicgraph::sot::RulesJointTrajectory::dbg_level

Definition at line 34 of file trajectory.hh.

◆ end_pt_re

boost::regex dynamicgraph::sot::RulesJointTrajectory::end_pt_re

Definition at line 42 of file trajectory.hh.

◆ end_pt_str_re

std::string dynamicgraph::sot::RulesJointTrajectory::end_pt_str_re

Definition at line 39 of file trajectory.hh.

◆ float_str_re

std::string dynamicgraph::sot::RulesJointTrajectory::float_str_re

Strings specifying the grammar of the structure.

Definition at line 37 of file trajectory.hh.

◆ frame_id_str_re

std::string dynamicgraph::sot::RulesJointTrajectory::frame_id_str_re

Definition at line 37 of file trajectory.hh.

◆ header_re

boost::regex dynamicgraph::sot::RulesJointTrajectory::header_re

Boost regular expressions implementing the grammar.

Definition at line 42 of file trajectory.hh.

◆ header_str_re

std::string dynamicgraph::sot::RulesJointTrajectory::header_str_re

Definition at line 38 of file trajectory.hh.

◆ joint_name_str_re

std::string dynamicgraph::sot::RulesJointTrajectory::joint_name_str_re

Definition at line 38 of file trajectory.hh.

◆ joint_names

std::vector<std::string> dynamicgraph::sot::RulesJointTrajectory::joint_names

Definition at line 44 of file trajectory.hh.

◆ list_of_jn_re

boost::regex dynamicgraph::sot::RulesJointTrajectory::list_of_jn_re

Definition at line 42 of file trajectory.hh.

◆ list_of_jn_str_re

std::string dynamicgraph::sot::RulesJointTrajectory::list_of_jn_str_re

Definition at line 38 of file trajectory.hh.

◆ list_of_pv_re

boost::regex dynamicgraph::sot::RulesJointTrajectory::list_of_pv_re

Definition at line 42 of file trajectory.hh.

◆ list_of_pv_str_re

std::string dynamicgraph::sot::RulesJointTrajectory::list_of_pv_str_re

Definition at line 39 of file trajectory.hh.

◆ point_value_str_re

std::string dynamicgraph::sot::RulesJointTrajectory::point_value_str_re

Definition at line 38 of file trajectory.hh.

◆ seq_str_re

std::string dynamicgraph::sot::RulesJointTrajectory::seq_str_re

Definition at line 37 of file trajectory.hh.

◆ timestamp_str_re

std::string dynamicgraph::sot::RulesJointTrajectory::timestamp_str_re

Definition at line 37 of file trajectory.hh.

◆ TrajectoryToFill_

Trajectory& dynamicgraph::sot::RulesJointTrajectory::TrajectoryToFill_
protected

Definition at line 31 of file trajectory.hh.


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


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:32