Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Merge requests
!417
Resolve "Graph search"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Graph search"
404-graph-search
into
devel
Overview
0
Commits
3
Pipelines
4
Changes
2
Merged
Joan Vallvé Navarro
requested to merge
404-graph-search
into
devel
3 years ago
Overview
0
Commits
3
Pipelines
4
Changes
2
Expand
Closes
#404 (closed)
Edited
3 years ago
by
Joan Vallvé Navarro
0
0
Merge request reports
Viewing commit
b2ccb263
Prev
Next
Show latest version
2 files
+
18
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
b2ccb263
static function
· b2ccb263
Joan Vallvé Navarro
authored
3 years ago
(cherry picked from commit
c36bdfb6
)
include/core/utils/graph_search.h
+
14
−
1
Options
@@ -22,10 +22,23 @@ class GraphSearch
~
GraphSearch
();
FactorBasePtrList
shortestPath
(
FrameBasePtr
frm1
,
FrameBasePtr
frm2
,
const
unsigned
int
max_graph_dist
=
0
);
FactorBasePtrList
computeShortestPath
(
FrameBasePtr
frm1
,
FrameBasePtr
frm2
,
const
unsigned
int
max_graph_dist
=
0
);
std
::
set
<
FrameBasePtr
>
getNeighborFrames
(
const
std
::
set
<
FrameBasePtr
>&
frms
);
static
FactorBasePtrList
shortestPath
(
FrameBasePtr
frm1
,
FrameBasePtr
frm2
,
const
unsigned
int
max_graph_dist
=
0
)
{
GraphSearch
graph_search
;
return
graph_search
.
computeShortestPath
(
frm1
,
frm2
,
max_graph_dist
);
}
};
}
// namespace wolf
#endif
Loading