Skip to content
Snippets Groups Projects
Commit b724bc3d authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

In GraphSteeringMethod; create a inner steering method at construction

  Create SteeringMethodStraight.
parent 397ca709
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <hpp/util/pointer.hh> #include <hpp/util/pointer.hh>
#include <hpp/core/straight-path.hh> #include <hpp/core/straight-path.hh>
#include <hpp/core/steering-method-straight.hh>
#include <hpp/manipulation/problem.hh> #include <hpp/manipulation/problem.hh>
#include <hpp/manipulation/graph/graph.hh> #include <hpp/manipulation/graph/graph.hh>
...@@ -53,12 +54,14 @@ namespace hpp { ...@@ -53,12 +54,14 @@ namespace hpp {
} }
GraphSteeringMethod::GraphSteeringMethod (const Problem& problem) : GraphSteeringMethod::GraphSteeringMethod (const Problem& problem) :
SteeringMethod (problem), problem_ (problem), weak_ () SteeringMethod (problem), problem_ (problem), weak_ (),
steeringMethod_ (core::SteeringMethodStraight::create (problem))
{ {
} }
GraphSteeringMethod::GraphSteeringMethod (const GraphSteeringMethod& other): GraphSteeringMethod::GraphSteeringMethod (const GraphSteeringMethod& other):
SteeringMethod (other), problem_ (other.problem_) SteeringMethod (other), problem_ (other.problem_), steeringMethod_
(other.steeringMethod_)
{ {
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment