File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -292,8 +292,14 @@ ConstraintSetPtr_t Edge::buildPathConstraint() {
292292
293293 // Build steering method
294294 const ProblemPtr_t& problem (g->problem ());
295+ SteeringMethodPtr_t manipSteeringMethod = problem->manipulationSteeringMethod ();
296+ if (!manipSteeringMethod) {
297+ throw std::logic_error (" Edge::buildPathConstraint: steering method of manipulation::Problem is"
298+ " not of type manipulation::SteeringMethod.\n You probably changed the "
299+ " default one." );
300+ }
295301 steeringMethod_ =
296- problem-> manipulationSteeringMethod () ->innerSteeringMethod ()->copy ();
302+ manipSteeringMethod ->innerSteeringMethod ()->copy ();
297303 steeringMethod_->constraints (constraint);
298304 // Build path validation and relative motion matrix
299305 // TODO this path validation will not contain obstacles added after
You can’t perform that action at this time.
0 commit comments