-
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
After calling the The
The Each lane is uni-directional. To put a bi-directional edge into the graph, you simply create two lanes where their entry/exit waypoints are the reverse of each other.
I think what you're looking for is the If your goal is to identify which lane is being blocked when a robot gets stuck, then instead of using |
Beta Was this translation helpful? Give feedback.
-
hi @mxgrey I am unsure how to get the waypoint index from its vector2d location. Graph class does not provide that method. eg. graph::get_index(Eigen::Vector2d location). Do I have to use this
Could you specify the difference? I thought that regardless whether a fleet adapter interfaces with free fleet, an existing fleet manager, or the slotcar plugin, the defined message flow by fleet adapter are the same. eg. still using PathRequest to communicate.
yes, you are right, the yaw values are different.
yeap, I am referring to the last scenario. As mentioned, the |
Beta Was this translation helpful? Give feedback.
After calling the
parse_graph
function, you will get back armf_traffic::agv::Graph
instance, so I'm going to refer to the API ofrmf_traffic::agv::Graph
(from now on I'll just refer to it asGraph
) 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
andGraph::Lane
.Graph::Waypoint
class ties the graph to its real-world locations usingGraph::Waypoint::get_map_name()
andGraph::Waypoint::get_location()
.The
Graph::Lane
class connects waypoints by defining an entry and exit node. Each node specifies awaypoint_index
. You can pass thatwaypoint_index
i…