ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Get used time for planning path

asked 2022-01-13 07:15:07 -0500

nicob gravatar image

Hi!

Is there a python command of the moveit_commander lib to get the used (!) planning time for the last planning? Perhaps the time is also stored in the result of the "plan" command?

At the moment I have identified the following information in the results:

plan = self.move_group.plan()
# plan[0] == True if planning was successfull
# plan[1] <- trajectory

Is there an overview of the structure of the "plan" result? Thanks in advance!

nico

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-02-10 07:25:37 -0500

nicob gravatar image

I found the solution by myself after some study of the planning results array...

It is much more simple as I expected: time = plan2[2] It contains the sum of planning time and simplification time and is stored in seconds.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-01-13 07:15:07 -0500

Seen: 74 times

Last updated: Feb 10 '22