euslisp / jskeus

This repository contains EusLisp software developed and used by JSK at The University of Tokyo
23 stars 55 forks source link

[irtgraph.l] add add-neighbor-from-to #605

Closed knorth55 closed 2 years ago

knorth55 commented 3 years ago

This PR adds add-neighbor-from-to method for directed-graph, costed-graph and graph. We should use add-neighbor-from-to to add proper arc class (arc or costed-arc). Currently, we can only add arc class arc with add-neighbor, but we can add correct arc for directed-graph, costed-graph and graph.

k-okada commented 2 years ago

may be we do not need this, if we use https://github.com/jsk-ros-pkg/jsk_planning/pull/94.

We can use use :add-arc-from-to instead of :add-neighbor, which is obsoleted methods

https://github.com/euslisp/jskeus/blob/89932980fe64eb0c0db6dbe6b79b61e2d3d17169/irteus/irtgraph.l#L379-L382

knorth55 commented 2 years ago

yes, we don't need this. you are right.