Describe the bug
The goto action of the moving skills allows to retrieve the path resulting from the motion (I am not sure, what this path actually represent; how is it different from current_path?) using the return_path facet. However when one wants to retrieve the distance of this path, it raises an exception because there is no weights attached to the returned path's segments
To Reproduce
Steps to reproduce the behavior:
Go to Traffic and Pollution.gaml (Toy Models > Traffic > models)
Go to line 76
Add write path_followed.distance; the line below
Launch the model simulation
See error
Expected behavior
Have a proper path returned, i.e. in that case having a path made of road agents. If this path is not made of graph edges species, it should be stated clearly in the corresponding doc (that should be improved anyway - in particular how it differs from current_path skill attribute)
Desktop (please complete the following information):
Describe the bug The goto action of the moving skills allows to retrieve the path resulting from the motion (I am not sure, what this path actually represent; how is it different from current_path?) using the return_path facet. However when one wants to retrieve the distance of this path, it raises an exception because there is no weights attached to the returned path's segments
To Reproduce Steps to reproduce the behavior:
write path_followed.distance;
the line belowExpected behavior Have a proper path returned, i.e. in that case having a path made of
road
agents. If this path is not made of graph edges species, it should be stated clearly in the corresponding doc (that should be improved anyway - in particular how it differs from current_path skill attribute)Desktop (please complete the following information):