Skip to content
Snippets Groups Projects
Commit 2612959a authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Update to modification in hpp-core

  Use ProblemSolver::create method.
parent 11daf192
No related branches found
No related tags found
No related merge requests found
...@@ -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",
......
...@@ -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);
......
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