Ask Your Question

How to change a planner's timeout?

asked 2019-03-28 07:31:09 -0600

bgd gravatar image

updated 2019-03-28 10:40:07 -0600

I'm trying to change the planner's timeout from the default value. I've looked in the config yaml files, launch files etc, searched online, but couldn't find anything, does anyone have any ideas? "The timeout for planning must be positive (0.000000 specified). Assuming one second instead."

edit retag flag offensive close merge delete



Which planner? In which context?

gvdhoorn gravatar image gvdhoorn  ( 2019-03-28 07:32:20 -0600 )edit

I'm using a pathplanning pipeline (it's OMPL but I haven't been able to change the specific algorithm it uses, so it defaults to RRTConnect) and making a planning_interface::MotionPlanRequest . I would like to know if it's possible to change the planning time similar to how Rviz does planning., but in C++.

bgd gravatar image bgd  ( 2019-03-28 08:39:24 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-03-28 08:53:43 -0600

Still not quite sure what context your working in, but has an allowed_planning_time field (as well as the planner_id field to change the planning algorithm). You can also use the MoveGroupInterface, which has a setPlanningTime method.

edit flag offensive delete link more


Perfect! thanks a lot, this is exactly what I was after.

bgd gravatar image bgd  ( 2019-03-28 09:00:32 -0600 )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: 2019-03-28 07:31:09 -0600

Seen: 261 times

Last updated: Mar 28 '19