Skip to content

How to get crossed edges for a node in cost::TransitionCost? #4636

Closed Answered by kevinkreiser
grzezlo asked this question in Q&A
Discussion options

You must be logged in to vote

yes! for the sake of testing you can do the following:

  1. add a new method to DynamicCost.h that allows you to attach a GraphReader to it
  2. at the top of whichever algorithm you are using (bidirection astar probably) call this new method to give your costing object access to the graphreader
  3. from inside TransitionCost you have the predecessor edgelabel. this object had the "endnode" id which you can use to get the graphtile that the node is in from the graphreader you now have access to

Replies: 2 comments 2 replies

Comment options

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

@kevinkreiser
Comment options

Answer selected by grzezlo
Comment options

You must be logged in to vote
0 replies
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