Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp_tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Humanoid Path Planner
hpp_tutorial
Commits
2612959a
Commit
2612959a
authored
9 years ago
by
Florent Lamiraux
Browse files
Options
Downloads
Patches
Plain Diff
Update to modification in hpp-core
Use ProblemSolver::create method.
parent
11daf192
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/hpp_tutorial/tutorial_2.hh
+2
-1
2 additions, 1 deletion
include/hpp_tutorial/tutorial_2.hh
src/tutorial.cc
+2
-1
2 additions, 1 deletion
src/tutorial.cc
with
4 additions
and
2 deletions
include/hpp_tutorial/tutorial_2.hh
+
2
−
1
View file @
2612959a
...
@@ -75,7 +75,8 @@
...
@@ -75,7 +75,8 @@
/// \endcode
/// \endcode
/// This executable creates an instance of hpp::core::ProblemSolver,
/// This executable creates an instance of hpp::core::ProblemSolver,
/// \code
/// \code
/// hpp::core::ProblemSolverPtr_t problemSolver = new hpp::core::ProblemSolver;
/// hpp::core::ProblemSolverPtr_t problemSolver =
/// hpp::core::ProblemSolver::create ();
/// \endcode
/// \endcode
/// adds the constructor of class hpp::tutorial::Planner in the map of the
/// adds the constructor of class hpp::tutorial::Planner in the map of the
/// ProblemSolver instance with key "PRM",
/// ProblemSolver instance with key "PRM",
...
...
This diff is collapsed.
Click to expand it.
src/tutorial.cc
+
2
−
1
View file @
2612959a
...
@@ -132,7 +132,8 @@ int main (int argc, const char* argv[])
...
@@ -132,7 +132,8 @@ int main (int argc, const char* argv[])
// create a ProblemSolver instance.
// create a ProblemSolver instance.
// This class is a container that does the interface between hpp-core library
// This class is a container that does the interface between hpp-core library
// and component to be running in a middleware like CORBA or ROS.
// and component to be running in a middleware like CORBA or ROS.
hpp
::
core
::
ProblemSolverPtr_t
problemSolver
=
new
hpp
::
core
::
ProblemSolver
;
hpp
::
core
::
ProblemSolverPtr_t
problemSolver
=
hpp
::
core
::
ProblemSolver
::
create
();
// Add the new planner type in order to be able to select it from python
// Add the new planner type in order to be able to select it from python
// client.
// client.
problemSolver
->
addPathPlannerType
(
"PRM"
,
hpp
::
tutorial
::
Planner
::
create
);
problemSolver
->
addPathPlannerType
(
"PRM"
,
hpp
::
tutorial
::
Planner
::
create
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment