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
5750c82f
Commit
5750c82f
authored
4 years ago
by
Florent Lamiraux
Browse files
Options
Downloads
Patches
Plain Diff
Update to modifications in hpp-core
- function taking const Problem& as input now take ProblemConstPtr_t.
parent
68f454eb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tutorial_2.cc
+8
-8
8 additions, 8 deletions
src/tutorial_2.cc
with
8 additions
and
8 deletions
src/tutorial_2.cc
+
8
−
8
View file @
5750c82f
...
...
@@ -44,7 +44,7 @@ namespace hpp {
{
public:
/// Create an instance and return a shared pointer to the instance
static
PlannerPtr_t
create
(
const
core
::
Problem
&
problem
,
static
PlannerPtr_t
create
(
const
core
::
Problem
ConstPtr_t
&
problem
,
const
core
::
RoadmapPtr_t
&
roadmap
)
{
Planner
*
ptr
=
new
Planner
(
problem
,
roadmap
);
...
...
@@ -63,16 +63,16 @@ namespace hpp {
virtual
void
oneStep
()
{
// Retrieve the robot the problem has been defined for.
pinocchio
::
DevicePtr_t
robot
(
problem
()
.
robot
());
pinocchio
::
DevicePtr_t
robot
(
problem
()
->
robot
());
// Retrieve the path validation algorithm associated to the problem
core
::
PathValidationPtr_t
pathValidation
(
problem
()
.
pathValidation
());
core
::
PathValidationPtr_t
pathValidation
(
problem
()
->
pathValidation
());
// Retrieve configuration validation methods associated to the problem
core
::
ConfigValidationsPtr_t
configValidations
(
problem
()
.
configValidations
());
(
problem
()
->
configValidations
());
// Retrieve the steering method
core
::
SteeringMethodPtr_t
sm
(
problem
()
.
steeringMethod
());
core
::
SteeringMethodPtr_t
sm
(
problem
()
->
steeringMethod
());
// Retrieve the constraints the robot is subject to
core
::
ConstraintSetPtr_t
constraints
(
problem
()
.
constraints
());
core
::
ConstraintSetPtr_t
constraints
(
problem
()
->
constraints
());
// Retrieve roadmap of the path planner
core
::
RoadmapPtr_t
r
(
roadmap
());
// shoot a valid random configuration
...
...
@@ -114,11 +114,11 @@ namespace hpp {
protected
:
/// Protected constructor
/// Users need to call Planner::create in order to create instances.
Planner
(
const
core
::
Problem
&
problem
,
Planner
(
const
core
::
Problem
ConstPtr_t
&
problem
,
const
core
::
RoadmapPtr_t
&
roadmap
)
:
core
::
PathPlanner
(
problem
,
roadmap
),
shooter_
(
core
::
configurationShooter
::
Uniform
::
create
(
problem
.
robot
()))
(
problem
->
robot
()))
{
}
/// Store weak pointer to itself
...
...
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