File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tesseract/tesseract_scene_graph
include/tesseract_scene_graph Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -418,7 +418,7 @@ class SceneGraph : public Graph
418
418
* @param tip The tip link
419
419
* @return The shortest path between the two links
420
420
*/
421
- Path getShortestPath (const std::string& root, const std::string& tip);
421
+ Path getShortestPath (const std::string& root, const std::string& tip) const ;
422
422
423
423
/* *
424
424
* @brief Get the graph vertex by name
Original file line number Diff line number Diff line change @@ -560,9 +560,9 @@ void SceneGraph::saveDOT(const std::string& path) const
560
560
dot_file << " }" ;
561
561
}
562
562
563
- SceneGraph::Path SceneGraph::getShortestPath (const std::string& root, const std::string& tip)
563
+ SceneGraph::Path SceneGraph::getShortestPath (const std::string& root, const std::string& tip) const
564
564
{
565
- const auto & graph = static_cast < const Graph&>( *this ) ;
565
+ const Graph & graph = *this ;
566
566
Vertex s = getVertex (root);
567
567
568
568
std::map<Vertex, Vertex> predicessor_map;
You can’t perform that action at this time.
0 commit comments