Skip to content
Snippets Groups Projects
Commit 2c917f62 authored by Steve Tonneau's avatar Steve Tonneau
Browse files

working version of limb rrt

parent e71e80ed
No related branches found
No related tags found
No related merge requests found
...@@ -653,8 +653,9 @@ std::cout << romDevice->currentConfiguration() << std::endl; ...@@ -653,8 +653,9 @@ std::cout << romDevice->currentConfiguration() << std::endl;
throw std::runtime_error ("did not find a states at indicated indices: " + std::string(""+s1) + ", " + std::string(""+s2)); throw std::runtime_error ("did not find a states at indicated indices: " + std::string(""+s1) + ", " + std::string(""+s2));
} }
//create helper //create helper
interpolation::LimbRRTHelper helper(fullBody_, problemSolver_->problem()); // /interpolation::LimbRRTHelper helper(fullBody_, problemSolver_->problem());
core::PathVectorPtr_t path = interpolation::interpolateStates(helper,lastStatesComputed_[s1],lastStatesComputed_[s2]); core::PathVectorPtr_t path = interpolation::interpolateStates(fullBody_,problemSolver_->problem(),
lastStatesComputed_.begin()+s1,lastStatesComputed_.begin()+s2);
problemSolver_->addPath(path); problemSolver_->addPath(path);
problemSolver_->robot()->setDimensionExtraConfigSpace(problemSolver_->robot()->extraConfigSpace().dimension()+1); problemSolver_->robot()->setDimensionExtraConfigSpace(problemSolver_->robot()->extraConfigSpace().dimension()+1);
} }
......
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