abb icon indicating copy to clipboard operation
abb copied to clipboard

irb2400: suspicious acceleration limits in MoveIt package

Open gavanderhoorn opened this issue 10 years ago • 8 comments

The current MoveIt configuration package (irb2400_moveit_config) has all acceleration limits set to 1.0 in joint_limits.yaml. These are probably not the real limits, and should be updated if possible.

gavanderhoorn avatar Jun 11 '14 21:06 gavanderhoorn

@shaun-edwards: Do you know where I can find the joint acceleration limits for ABB robots; is it possible to get them from RobotStudio?

Levi-Armstrong avatar Feb 20 '15 04:02 Levi-Armstrong

The joint acceleration limits are not publicly available on most robots. A good guess is 10 x max velocity (i.e. a joint can reach max speed in 0.1s). I believe the accelerations can be removed. The moveit package will need to be regenerated if the limits are removed/changed.

shaun-edwards avatar Feb 20 '15 04:02 shaun-edwards

@shaun-edwards wrote:

I believe the accelerations can be removed

Do we know what the defaults are that MoveIt would use in that case?

gavanderhoorn avatar Feb 20 '15 11:02 gavanderhoorn

Do we know what the defaults are that MoveIt would use in that case?

I currently have the same question... From what I am seeing currently, it seems MoveIt's default accel limits are conservative as the robot's motion is very slow to accelerate (when compared to the native hardware controller's behavior)

BrettHemes avatar Aug 31 '16 14:08 BrettHemes

Yep. I recognise that.

Problem is with most robots that acceleration profiles are also load dependent (as are the velocity profiles), so setting hard limits in the MoveIt configuration doesn't really always work.

gavanderhoorn avatar Aug 31 '16 14:08 gavanderhoorn

The ABB robot driver will not allow you to exceed acceleration/velocity limits. You could set them arbitrarily high and the robot will perform the trajectory the best it can. That being said, dense trajectories will always be executed slowly, as the robot motion controller struggles with these. See here for more info.

Do you have a particular need that you are trying to address? There might be a better option if I understood your use case.

shaun-edwards avatar Aug 31 '16 14:08 shaun-edwards

From a quick investigation, the default behavior seems to be as follows:

For the parameter server For each joint: /robot_description_planning/joint_limits/[joint_name]/

  • has_acceleration_limits = false
  • max_acceleration = 0

Inside of IterativeParabolicTimeParameterization::applyAccelerationConstraints()

00368     double a_max = 1.0;
00369     const robot_model::VariableBounds &b = rmodel.getVariableBounds(vars[j]);
00370     if (b.acceleration_bounded_)
00371       a_max = std::min(fabs(b.max_acceleration_*acceleration_scaling_factor), fabs(b.min_acceleration_*acceleration_scaling_factor));

... which if I understand correctly, will result in MoveIt defaulting to 1 [rad/s/s] unless iptp is not called in all cases; not sure.

@gavanderhoorn do you have a best practice for adjusting MoveIt acceleration limits? Maybe set them to their highest limits in the moveit config and then use MoveIt's acceleration_scaling_factor to control based on (current) payload @shaun-edwards I got here via Googling "moveit default acceleration limits". The application in question is using the kuka_rsi_hw_interface which implicitly enforces limits by faulting if you ask too much of it. My current problem, however, is that my accelerations are way too slow... which I think I can fix by setting limits in the moveit config...

btw, sorry if this conversation should be somewhere else

BrettHemes avatar Aug 31 '16 14:08 BrettHemes

btw, sorry if this conversation should be somewhere else

I'd say it's a good place, as https://github.com/ros-industrial/abb/issues/44#issuecomment-75224752 asks for what "the defaults are". Seems we got an answer :).

@gavanderhoorn do you have a best practice for adjusting MoveIt acceleration limits? Maybe set them to their highest limits in the moveit config and then use MoveIt's acceleration_scaling_factor to control based on (current) payload

I'd always put in the maxima. The controller will either fault (RSI, MXT, EGM), or just perform at its maximum (current Rapid based driver). Scaling based on payload is difficult I think, unless you know how the robot controller does it itself (or figure it out by iteratively increasing and seeing where it starts to fail, but even then).

gavanderhoorn avatar Aug 31 '16 18:08 gavanderhoorn