selfdriving
refine_trajectory.h
Go to the documentation of this file.
1 /* -------------------------------------------------------------------------
2  * SelfDriving C++ library based on PTGs and mrpt-nav
3  * Copyright (C) 2019-2022 Jose Luis Blanco, University of Almeria
4  * See LICENSE for license information.
5  * ------------------------------------------------------------------------- */
6 
9 
10 namespace mpp
11 {
12 /**
13  * Takes a sequence of N states (the inPath) and the N-1 edges in between
14  * them, and recalculate the PTG parameters of all edges using the exact poses
15  * in the path nodes.
16  */
18  const MotionPrimitivesTreeSE2::path_t& inPath,
20  const TrajectoriesAndRobotShape& ptgInfo);
21 
22 /// \overload taking `std::vector` of nodes and edges, instead of `std::list`
24  const std::vector<MotionPrimitivesTreeSE2::node_t>& inPath,
25  std::vector<MotionPrimitivesTreeSE2::edge_t>& edgesToRefine,
26  const TrajectoriesAndRobotShape& ptgInfo);
27 
28 } // namespace mpp
std::list< node_t > path_t
Definition: MotionPrimitivesTree.h:120
Definition: bestTrajectory.h:15
std::list< edge_t *> edge_sequence_t
Definition: MotionPrimitivesTree.h:102
void refine_trajectory(const MotionPrimitivesTreeSE2::path_t &inPath, MotionPrimitivesTreeSE2::edge_sequence_t &edgesToRefine, const TrajectoriesAndRobotShape &ptgInfo)