Ask Your Question

Need help with RRT star algorithm for robotic arm

asked 2012-03-05 12:26:37 -0500

Carlos gravatar image

updated 2014-01-28 17:11:34 -0500

ngrennan gravatar image

Hello! I'm new at ROS and was hoping to make a robotic arm with 5 DoF plan paths with this algorithm (RRT star with Ball Tree). I have found references to it in the OMPL package, but I still don't know how to use it. I'll appreciate any guidance in this matter!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-03-05 12:58:52 -0500

VN gravatar image

Refer to this link. There you 'll find some guidelines regarding setting state space/bounds, using existing planners in ompl, setting start/goal states and find solution.

These are the following steps basically(for example SE2):-

//1. construct the instance of state space we are planning in->for mobile base SE2

ompl::base::StateSpacePtr space(new ompl::base::SE2StateSpace());

//2. get bounds from worldmap and set it to bounds for the planner

ompl::base::RealVectorBounds bounds(2);

//3. Create an instance of ompl::geometric::SimpleSetup

ompl::geometric::SimpleSetup simple_setup(space);

//4. Set state validity checker

simple_setup.setStateValidityChecker(boost::bind(&Function_Name, this, _1));

//7. set start and goal state to planner

simple_setup.setStartAndGoalStates(ompl_scoped_state_start, ompl_scoped_state_goal);

//8 Set Planner type

ompl::base::SpaceInformationPtr si_ptr = simple_setup.getSpaceInformation();
ompl::base::PlannerPtr target_planner_ptr(new ompl::geometric::EST(si_ptr));

//9. Solve


Hope this helps.

edit flag offensive delete link more


Thanks a lot! but I really ment I'm new at ROS, I have just followed the ROS Tutorials and created an URDF for my robot, so I don't quite get how does it all fit with the code you propose. Sorry for the ignorance and thanks again for the help :)

Carlos gravatar image Carlos  ( 2012-03-21 07:33:27 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2012-03-05 12:26:37 -0500

Seen: 1,607 times

Last updated: Mar 12 '12