Skip to content

Navigation Graph Interpretation #6

Answered by mxgrey
txlei asked this question in Q&A
Mar 16, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

After calling the parse_graph function, you will get back a rmf_traffic::agv::Graph instance, so I'm going to refer to the API of rmf_traffic::agv::Graph (from now on I'll just refer to it as Graph) to explain the graph structure. The yaml format is just an intermediate disk format, so there's not much need to understand it.

The Graph API has two important nested classes: Graph::Waypoint and Graph::Lane.

Graph::Waypoint class ties the graph to its real-world locations using Graph::Waypoint::get_map_name() and Graph::Waypoint::get_location().

The Graph::Lane class connects waypoints by defining an entry and exit node. Each node specifies a waypoint_index. You can pass that waypoint_index i…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@txlei
Comment options

@mxgrey
Comment options

Answer selected by Yadunund
Comment options

You must be logged in to vote
1 reply
@mxgrey
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants