Main MRPT website > C++ reference for MRPT 1.9.9
CLogFileRecord.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef CLogFileRecord_H
10 #define CLogFileRecord_H
11 
14 #include <mrpt/io/CMemoryStream.h>
17 
22 
23 namespace mrpt
24 {
25 namespace nav
26 {
27 /** A class for storing, saving and loading a reactive navigation
28  * log record for the CReactiveNavigationSystem class.
29  * \sa CReactiveNavigationSystem, CHolonomicLogFileRecord
30  * \ingroup nav_reactive
31  */
33 {
35 
36  public:
37  /** Constructor, builds an empty record. */
39 
40  /** The structure used to store all relevant information about each
41  * transformation into TP-Space.
42  * \ingroup nav_reactive */
43  struct TInfoPerPTG
44  {
45  /** A short description for the applied PTG */
47  /** Distances until obstacles, in "pseudometers", first index for -PI
48  * direction, last one for PI direction. */
50  /** Target(s) location in TP-Space */
51  std::vector<mrpt::math::TPoint2D> TP_Targets;
52  /** Robot location in TP-Space: normally (0,0), except during "NOP cmd
53  * vel" steps */
55  /** Time, in seconds. */
57  /** The results from the holonomic method. */
59  /** Final score of this candidate */
60  double evaluation;
61  /** Evaluation factors */
63  /** Other useful info about holonomic method execution. */
65  /** Only for the FIRST entry in a log file, this will contain a copy of
66  * the PTG with trajectories, suitable to render trajectories, etc. */
68  /** Clearance for each path */
70  };
71 
73  /** The number of PTGS: */
75  /** The info for each applied PTG: must contain "nPTGs * nSecDistances"
76  * elements */
78  /** The selected PTG. */
80 
81  /** Known values:
82  * - "executionTime": The total computation time, excluding sensing.
83  * - "estimatedExecutionPeriod": The estimated execution period.
84  */
85  std::map<std::string, double> values;
86  /** Known values:
87  * - "tim_start_iteration": Time of start of navigationStep()
88  *implementation.
89  * - "tim_send_cmd_vel": Time of sending cmdvel to robot.
90  * - "curPoseAndVel": Time of querying robot pose and velocities.
91  */
92  std::map<std::string, mrpt::system::TTimeStamp> timestamps;
93  /** Additional debug traces */
94  std::map<std::string, std::string> additional_debug_msgs;
95  /** The WS-Obstacles */
97  /** The robot pose (from odometry and from the localization/SLAM system). */
100  relPoseVelCmd; //! Relative poses (wrt to robotPoseLocalization) for
101  //! extrapolated paths at two instants: time of obstacle
102  //! sense, and future pose of motion comman
103  /** The relative location of target(s) in Workspace. */
104  std::vector<mrpt::math::TPose2D> WS_targets_relative;
105 
106  /** The final motion command sent to robot, in "m/sec" and "rad/sec". */
108  /** Motion command as comes out from the PTG, before scaling speed limit
109  * filtering. */
111  /** The actual robot velocities in global (map) coordinates, as read from
112  * sensors, in "m/sec" and "rad/sec". */
114  /** The actual robot velocities in local (robot) coordinates, as read from
115  * sensors, in "m/sec" and "rad/sec". */
117 
118  /** The robot shape in WS. Used by PTGs derived from
119  * mrpt::nav::CPTG_RobotShape_Polygonal */
121  /** The circular robot radius. Used by PTGs derived from
122  * mrpt::nav::CPTG_RobotShape_Circular */
124 
125  // "NOP motion command" mode variables:
126  /** Negative means no NOP mode evaluation, so the rest of "NOP variables"
127  * should be ignored. */
134 };
135 }
136 }
137 
138 #endif
mrpt::nav::CLogFileRecord
A class for storing, saving and loading a reactive navigation log record for the CReactiveNavigationS...
Definition: CLogFileRecord.h:32
CParameterizedTrajectoryGenerator.h
ClearanceDiagram.h
mrpt::nav::CLogFileRecord::values
std::map< std::string, double > values
Known values:
Definition: CLogFileRecord.h:85
CHolonomicLogFileRecord.h
mrpt::nav::CLogFileRecord::cur_vel
mrpt::math::TTwist2D cur_vel
The actual robot velocities in global (map) coordinates, as read from sensors, in "m/sec" and "rad/se...
Definition: CLogFileRecord.h:113
mrpt::nav::CLogFileRecord::TInfoPerPTG::evalFactors
mrpt::system::TParametersDouble evalFactors
Evaluation factors.
Definition: CLogFileRecord.h:62
mrpt::nav::CLogFileRecord::TInfoPerPTG::desiredDirection
double desiredDirection
The results from the holonomic method.
Definition: CLogFileRecord.h:58
mrpt::nav::CHolonomicLogFileRecord::Ptr
std::shared_ptr< CHolonomicLogFileRecord > Ptr
Definition: CHolonomicLogFileRecord.h:29
uint16_t
unsigned __int16 uint16_t
Definition: rptypes.h:44
mrpt::math::dynamic_vector
Column vector, like Eigen::MatrixX*, but automatically initialized to zeros since construction.
Definition: eigen_frwds.h:44
mrpt::nav::CLogFileRecord::robotShape_x
mrpt::math::CVectorFloat robotShape_x
The robot shape in WS.
Definition: CLogFileRecord.h:120
mrpt::nav::CLogFileRecord::ptg_index_NOP
int16_t ptg_index_NOP
Negative means no NOP mode evaluation, so the rest of "NOP variables" should be ignored.
Definition: CLogFileRecord.h:128
mrpt::nav::CLogFileRecord::ptg_last_k_NOP
uint16_t ptg_last_k_NOP
Definition: CLogFileRecord.h:129
mrpt::nav::CLogFileRecord::robotShape_radius
double robotShape_radius
The circular robot radius.
Definition: CLogFileRecord.h:123
mrpt::nav::CLogFileRecord::TInfoPerPTG::evaluation
double evaluation
Final score of this candidate.
Definition: CLogFileRecord.h:60
mrpt::nav::CLogFileRecord::ptg_last_navDynState
mrpt::nav::CParameterizedTrajectoryGenerator::TNavDynamicState ptg_last_navDynState
Definition: CLogFileRecord.h:133
mrpt::nav::CLogFileRecord::CLogFileRecord
CLogFileRecord()
Constructor, builds an empty record.
Definition: CLogFileRecord.cpp:26
CMemoryStream.h
mrpt::nav::CLogFileRecord::navDynState
mrpt::nav::CParameterizedTrajectoryGenerator::TNavDynamicState navDynState
Definition: CLogFileRecord.h:72
mrpt::nav::CLogFileRecord::TInfoPerPTG::desiredSpeed
double desiredSpeed
Definition: CLogFileRecord.h:58
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::nav::CLogFileRecord::TInfoPerPTG::PTG_desc
std::string PTG_desc
A short description for the applied PTG.
Definition: CLogFileRecord.h:46
mrpt::nav::CLogFileRecord::TInfoPerPTG::TP_Obstacles
mrpt::math::CVectorFloat TP_Obstacles
Distances until obstacles, in "pseudometers", first index for -PI direction, last one for PI directio...
Definition: CLogFileRecord.h:49
TParameters.h
mrpt::nav::CLogFileRecord::infoPerPTG
mrpt::aligned_std_vector< TInfoPerPTG > infoPerPTG
The info for each applied PTG: must contain "nPTGs * nSecDistances" elements.
Definition: CLogFileRecord.h:77
mrpt::nav::CLogFileRecord::additional_debug_msgs
std::map< std::string, std::string > additional_debug_msgs
Additional debug traces.
Definition: CLogFileRecord.h:94
mrpt::aligned_std_vector
std::vector< T, mrpt::aligned_allocator_cpp11< T > > aligned_std_vector
Definition: aligned_std_vector.h:15
mrpt::nav::CLogFileRecord::TInfoPerPTG::timeForHolonomicMethod
double timeForHolonomicMethod
Definition: CLogFileRecord.h:56
mrpt::nav::CLogFileRecord::timestamps
std::map< std::string, mrpt::system::TTimeStamp > timestamps
Known values:
Definition: CLogFileRecord.h:92
int16_t
__int16 int16_t
Definition: rptypes.h:43
mrpt::nav::CLogFileRecord::cmd_vel
mrpt::kinematics::CVehicleVelCmd::Ptr cmd_vel
The final motion command sent to robot, in "m/sec" and "rad/sec".
Definition: CLogFileRecord.h:107
mrpt::nav::CLogFileRecord::WS_targets_relative
std::vector< mrpt::math::TPose2D > WS_targets_relative
Relative poses (wrt to robotPoseLocalization) for.
Definition: CLogFileRecord.h:104
mrpt::system::TParameters< double >
mrpt::nav::ClearanceDiagram
Clearance information for one particular PTG and one set of obstacles.
Definition: ClearanceDiagram.h:30
mrpt::nav::CLogFileRecord::rel_cur_pose_wrt_last_vel_cmd_NOP
mrpt::math::TPose2D rel_cur_pose_wrt_last_vel_cmd_NOP
Definition: CLogFileRecord.h:130
mrpt::nav::CLogFileRecord::TInfoPerPTG::HLFR
CHolonomicLogFileRecord::Ptr HLFR
Other useful info about holonomic method execution.
Definition: CLogFileRecord.h:64
mrpt::nav::CLogFileRecord::TInfoPerPTG::TP_Robot
mrpt::math::TPoint2D TP_Robot
Robot location in TP-Space: normally (0,0), except during "NOP cmd vel" steps.
Definition: CLogFileRecord.h:54
mrpt::nav::CLogFileRecord::cur_vel_local
mrpt::math::TTwist2D cur_vel_local
The actual robot velocities in local (robot) coordinates, as read from sensors, in "m/sec" and "rad/s...
Definition: CLogFileRecord.h:116
mrpt::nav::CParameterizedTrajectoryGenerator::TNavDynamicState
Dynamic state that may affect the PTG path parameterization.
Definition: CParameterizedTrajectoryGenerator.h:167
mrpt::math::TPose2D
Lightweight 2D pose.
Definition: lightweight_geom_data.h:186
aligned_std_vector.h
mrpt::maps::CSimplePointsMap
A cloud of points in 2D or 3D, which can be built from a sequence of laser scans.
Definition: CSimplePointsMap.h:31
mrpt::serialization::CSerializable
The virtual base class which provides a unified interface for all persistent objects in MRPT.
Definition: CSerializable.h:32
mrpt::math::TPoint2D
Lightweight 2D point.
Definition: lightweight_geom_data.h:42
mrpt::nav::CLogFileRecord::TInfoPerPTG
The structure used to store all relevant information about each transformation into TP-Space.
Definition: CLogFileRecord.h:43
mrpt::nav::CLogFileRecord::robotPoseOdometry
mrpt::math::TPose2D robotPoseOdometry
Definition: CLogFileRecord.h:98
mrpt::nav::CParameterizedTrajectoryGenerator::Ptr
std::shared_ptr< CParameterizedTrajectoryGenerator > Ptr
Definition: CParameterizedTrajectoryGenerator.h:80
mrpt::nav::CLogFileRecord::WS_Obstacles
mrpt::maps::CSimplePointsMap WS_Obstacles
The WS-Obstacles.
Definition: CLogFileRecord.h:96
mrpt::nav::CLogFileRecord::TInfoPerPTG::ptg
mrpt::nav::CParameterizedTrajectoryGenerator::Ptr ptg
Only for the FIRST entry in a log file, this will contain a copy of the PTG with trajectories,...
Definition: CLogFileRecord.h:67
mrpt::kinematics::CVehicleVelCmd::Ptr
std::shared_ptr< CVehicleVelCmd > Ptr
Definition: CVehicleVelCmd.h:24
int32_t
__int32 int32_t
Definition: rptypes.h:46
mrpt::nav::CLogFileRecord::WS_Obstacles_original
mrpt::maps::CSimplePointsMap WS_Obstacles_original
Definition: CLogFileRecord.h:96
mrpt::nav::CLogFileRecord::robotShape_y
mrpt::math::CVectorFloat robotShape_y
Definition: CLogFileRecord.h:120
DEFINE_SERIALIZABLE
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Definition: CSerializable.h:102
mrpt::nav::CLogFileRecord::nPTGs
uint32_t nPTGs
The number of PTGS:
Definition: CLogFileRecord.h:74
mrpt::nav::CLogFileRecord::cmd_vel_original
mrpt::kinematics::CVehicleVelCmd::Ptr cmd_vel_original
Motion command as comes out from the PTG, before scaling speed limit filtering.
Definition: CLogFileRecord.h:110
mrpt::nav::CLogFileRecord::relPoseVelCmd
mrpt::math::TPose2D relPoseVelCmd
Definition: CLogFileRecord.h:100
mrpt::nav::CLogFileRecord::nSelectedPTG
int32_t nSelectedPTG
The selected PTG.
Definition: CLogFileRecord.h:79
mrpt::nav::CLogFileRecord::TInfoPerPTG::clearance
mrpt::nav::ClearanceDiagram clearance
Clearance for each path.
Definition: CLogFileRecord.h:69
string
GLsizei const GLchar ** string
Definition: glext.h:4101
mrpt::nav::CLogFileRecord::robotPoseLocalization
mrpt::math::TPose2D robotPoseLocalization
The robot pose (from odometry and from the localization/SLAM system).
Definition: CLogFileRecord.h:98
CSerializable.h
CSimplePointsMap.h
mrpt::nav::CLogFileRecord::relPoseSense
mrpt::math::TPose2D relPoseSense
Definition: CLogFileRecord.h:99
mrpt::nav::CLogFileRecord::TInfoPerPTG::TP_Targets
std::vector< mrpt::math::TPoint2D > TP_Targets
Target(s) location in TP-Space.
Definition: CLogFileRecord.h:51
uint32_t
unsigned __int32 uint32_t
Definition: rptypes.h:47
mrpt::nav::CLogFileRecord::TInfoPerPTG::timeForTPObsTransformation
double timeForTPObsTransformation
Time, in seconds.
Definition: CLogFileRecord.h:56
CVehicleVelCmd.h
mrpt::math::TTwist2D
2D twist: 2D velocity vector (vx,vy) + planar angular velocity (omega)
Definition: lightweight_geom_data.h:2145
mrpt::nav::CLogFileRecord::rel_pose_PTG_origin_wrt_sense_NOP
mrpt::math::TPose2D rel_pose_PTG_origin_wrt_sense_NOP
Definition: CLogFileRecord.h:131



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST