|
selfdriving
|
#include <mpp/data/MotionPrimitivesTree.h>
Classes | |
| struct | map_traits_map_as_deque |
| struct | node_t |
Public Types | |
| using | base_t = mrpt::graphs::CDirectedTree< EDGE_TYPE > |
| using | edge_t = EDGE_TYPE |
| using | edge_sequence_t = std::list< edge_t * > |
| using | node_map_t = std::map< TNodeID, node_t > |
| using | path_t = std::list< node_t > |
Public Member Functions | |
| void | insert_node_and_edge (const TNodeID parentId, const TNodeID newChildId, const NODE_TYPE_DATA &newChildNodeData, const EDGE_TYPE &newEdgeData) |
| void | update_node_and_edge (const TNodeID parentId, const TNodeID childId, const EDGE_TYPE &newEdgeData) |
| void | rewire_node_parent (const TNodeID nodeId, const EDGE_TYPE &newEdgeFromParent) |
| const EDGE_TYPE & | edge_to_parent (const TNodeID nodeId) const |
| void | insert_root_node (const TNodeID node_id, const NODE_TYPE_DATA &node_data) |
| TNodeID | next_free_node_ID () const |
| const node_map_t & | nodes () const |
| NODE_TYPE_DATA & | node_state (const TNodeID nodeId) |
| std::tuple< path_t, edge_sequence_t > | backtrack_path (const TNodeID target_node) const |
Private Attributes | |
| node_map_t | nodes_ |
A tree with nodes being vehicle poses, and edges potential valid motion primitives between them.
This class provides storage for the nodes, and RRT* construction helper methods.
See base class mrpt::graphs::CDirectedTree for the API to access edges.
Changes history:
| using mpp::MotionPrimitivesTree< NODE_TYPE_DATA, EDGE_TYPE >::base_t = mrpt::graphs::CDirectedTree<EDGE_TYPE> |
| using mpp::MotionPrimitivesTree< NODE_TYPE_DATA, EDGE_TYPE >::edge_sequence_t = std::list<edge_t*> |
| using mpp::MotionPrimitivesTree< NODE_TYPE_DATA, EDGE_TYPE >::edge_t = EDGE_TYPE |
| using mpp::MotionPrimitivesTree< NODE_TYPE_DATA, EDGE_TYPE >::node_map_t = std::map<TNodeID, node_t> |
Map: TNode_ID => Node info
| using mpp::MotionPrimitivesTree< NODE_TYPE_DATA, EDGE_TYPE >::path_t = std::list<node_t> |
A topological path up-tree.
push_front().
|
inline |
Builds the path (sequence of nodes, with info about next edge) up-tree from a target_node towards the root
|
inline |
|
inline |
|
inline |
Insert a node without edges (should be used only for a tree root node)
|
inline |
|
inline |
Write-access to node data (use with caution)
|
inline |
read-only access to nodes.
|
inline |
|
inline |
|
private |
Info per node
1.8.13