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

moveit plan execution time

asked 2018-12-06 08:38:25 -0500

firim gravatar image

updated 2018-12-06 23:22:38 -0500

Hello

I am using moveit motion planning api on Ubuntu to control my real robot. I can`t find a way to adjust the total execution time (duration) of a plan. (Btw, what is the default execution time for a plan in moveit? Is it set defined somewhere?)

Also, I can`t set the required distance values between way points. In the end what I am trying to achieve is that user will select the total movement time for the robot and the robot will complete the movement in exact that many milliseconds. Since I do not want jerky movements, I would like to set the distances between waypoints, total number of waypoints, and the execution time. However I do not see any options in the api for these.

Can one of the experienced users shed some light on the issue?

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-12-06 09:14:26 -0500

There is no default plan duration in MoveIt, the maximum speed and acceleration for each of the robots joints are defined and these values will limit the speed of movement and ultimately the overall duration of the plan. So if MoveIt creates a plan it's safe to assume that this is the fastest the robot can complete the motion (assuming the maximum speeds and accelerations are set correctly).

You can slow down the speed of a plan that has already been produced, it's not a built in feature as far as I know but it's not too hard.

The RobotTrajctory message is used to store the planned motion, within this you will have either a joint_trajectory or a multi_dof_joint_trajectory depending of the type of your robot. Each of these message types is essentially a list of points in time with the positions of each joint at those points in time. Importantly the time in this case is defined as the duration from the start of the plan.

So you can loop through each point in the plan and multiply the durations by a factor less than one to slow down the plan. You can also try speeding the plan up, but there is a chance that your robot may be unable to follow the accelerated path and abort the motion.

Hope this helps.

edit flag offensive delete link more

Comments

Hi mate

Thanks a lot for the response. Can you clarify which "duration" property are you referring? One related question:

How can I set the number of waypoints for moveit plan? I have found that this is a ROD parameter, however I would likje to set it within my code (during runtime). Is this possi

firim gravatar image firim  ( 2018-12-06 23:22:45 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2018-12-06 08:38:25 -0500

Seen: 1,681 times

Last updated: Dec 06 '18