|
selfdriving
|
#include <mpp/algos/NavEngine.h>
Public Member Functions | |
| CurrentNavInternalState ()=default | |
| void | clear () |
| void | active_plan_reset (bool alsoClearComputedPath=false) |
Data to be cleared upon each iteration | |
| mrpt::kinematics::CVehicleVelCmd::Ptr | sentOutCmdInThisIteration |
| mrpt::opengl::CSetOfObjects::Ptr | planVizForNavLog |
| mrpt::opengl::CSetOfObjects::Ptr | stateVizForNavLog |
| std::vector< std::string > | navlogDebugMessages |
| std::optional< double > | lastNavigationStepEndTime |
| std::optional< double > | timStartThisNavStep |
| std::optional< double > | lastDistanceToGoalTimestamp |
| std::optional< double > | lastDistanceToGoal |
| void | clearPerIterationData () |
Everything that should be cleared upon a new navigation command.
|
default |
|
inline |
|
inline |
|
inline |
| std::optional<EnqueuedCondition> mpp::NavEngine::CurrentNavInternalState::activeEnqueuedConditionForViz |
A copy of the active queued condition, for viz purposes only (coordinates here are in the odometry frame)
| std::optional<size_t> mpp::NavEngine::CurrentNavInternalState::activePlanEdgeIndex |
0-based index of which edge in activePlanPathEdges[] is currently being executed by the robot. Empty if the plan is new and no order has been sent out to the robot yet. The i-th edge is moving between nodes [i] and [i+1] in activePlanPath.
| std::optional<size_t> mpp::NavEngine::CurrentNavInternalState::activePlanEdgeSentIndex |
Will be equal to activePlanEdgeIndex once the command has been sent out to the robot
| std::set<size_t> mpp::NavEngine::CurrentNavInternalState::activePlanEdgesSentOut |
| std::optional<mrpt::math::TPose2D> mpp::NavEngine::CurrentNavInternalState::activePlanInitOdometry |
The robot pose in the odom frame when the first motion edge is executed from send_next_motion_cmd_or_nop()
| PathPlannerOutput mpp::NavEngine::CurrentNavInternalState::activePlanOutput |
Set by check_new_planner_output()
| std::vector<MotionPrimitivesTreeSE2::node_t> mpp::NavEngine::CurrentNavInternalState::activePlanPath |
| std::vector<MotionPrimitivesTreeSE2::edge_t> mpp::NavEngine::CurrentNavInternalState::activePlanPathEdges |
| mrpt::Clock::time_point mpp::NavEngine::CurrentNavInternalState::badNavAlarmLastMinDistTime_ |
| double mpp::NavEngine::CurrentNavInternalState::badNavAlarmMinDistTarget_ = std::numeric_limits<double>::max() |
For sending an alarm (error event) when it seems that we are not approaching toward the target in a while...
| std::optional<mrpt::math::TPose2D> mpp::NavEngine::CurrentNavInternalState::collisionCheckingPosePrediction |
From check_immediate_collision(). For Debug visualization.
| std::optional<double> mpp::NavEngine::CurrentNavInternalState::lastDistanceToGoal |
| std::optional<double> mpp::NavEngine::CurrentNavInternalState::lastDistanceToGoalTimestamp |
Values used to check against Configuration::timeoutNotGettingCloserGoal
| std::optional<VehicleOdometryState> mpp::NavEngine::CurrentNavInternalState::lastEnqueuedTriggerOdometry |
A copy of the last odometry when an enqueued action was triggered, for viz purposed only
| std::optional<double> mpp::NavEngine::CurrentNavInternalState::lastNavigationStepEndTime |
| mrpt::poses::CPose2DInterpolator mpp::NavEngine::CurrentNavInternalState::latestOdomPoses |
| mrpt::poses::CPose2DInterpolator mpp::NavEngine::CurrentNavInternalState::latestPoses |
Latest robot poses, updated in navigation_Step()
| bool mpp::NavEngine::CurrentNavInternalState::navigationEndEventSent = false |
Will be false until the navigation end is sent.
| std::vector<std::string> mpp::NavEngine::CurrentNavInternalState::navlogDebugMessages |
| std::future<PathPlannerOutput> mpp::NavEngine::CurrentNavInternalState::pathPlannerFuture |
| std::optional<waypoint_idx_t> mpp::NavEngine::CurrentNavInternalState::pathPlannerTargetWpIdx |
The final waypoint of the currently under-optimization/already finished path planning.
| mrpt::opengl::CSetOfObjects::Ptr mpp::NavEngine::CurrentNavInternalState::planVizForNavLog |
| mrpt::kinematics::CVehicleVelCmd::Ptr mpp::NavEngine::CurrentNavInternalState::sentOutCmdInThisIteration |
Copy of sent-out cmd, for the log record
| mrpt::opengl::CSetOfObjects::Ptr mpp::NavEngine::CurrentNavInternalState::stateVizForNavLog |
| std::optional<double> mpp::NavEngine::CurrentNavInternalState::timStartThisNavStep |
| WaypointStatusSequence mpp::NavEngine::CurrentNavInternalState::waypointNavStatus |
The latest waypoints navigation command and the up-to-date control status.
1.8.13