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



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019