Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Failed to read state from robot. Shutting down!": Maximum kinetic energy exceeded #123

Closed
cschindlbeck opened this issue Apr 13, 2018 · 8 comments
Labels

Comments

@cschindlbeck
Copy link

cschindlbeck commented Apr 13, 2018

Description

I just noticed that i get Maximum kinetic energy, Command motor torque, Command gear torque errors on all axes when i use MoveIt for trajectory planning on kinetic.
Does the path planner generate motions that are too fast?
How can i debug this problem?

Setup

  • ROS Kinetic
  • Ubuntu 16.04
  • Build from binary
  • kuka_rsi_hw_interface
  • Path Planner: RRTConnectkConfigDefault

Potentially related problems

Payload not considered

Path Planning

Paket Loss

@cschindlbeck cschindlbeck changed the title "Failed to read state from robot. Shutting down!" between two movements Kinetic: "Maximum kinetic energy" Apr 13, 2018
@gavanderhoorn
Copy link
Member

gavanderhoorn commented Apr 13, 2018

Without more information this is going to be difficult to diagnose.

Have you always run Kinetic with this setup? Has anything changed on the robot side (EEF changed without updating payload settings)? Any MoveIt updates that you performed? Have you tried turning the controller on and off (you'd be surprised)?

Any hardware changes? Using wireless instead of wired network by mistake? etc

These kind of errors point to missing/dropped packets, problems with trajectories (violations of limits) or something else.

If you can, plot some trajectories and see what is going on.

@BrettHemes
Copy link
Member

I assuming this is with kuka_rsi_hw_interface?

@cschindlbeck
Copy link
Author

cschindlbeck commented Apr 16, 2018

Sorry, i will try to be more verbose (updated initial post).

I assuming this is with kuka_rsi_hw_interface?

Yes.

I have connected Gazebo to efficiently debug my problem (see PR 92bd9ac). The trajectories are really smooth and i even slowed them down to be sure that i do not run into some velocity limits.

(EEF changed without updating payload settings)

Yeah i actually attached a small aluminum plate. Since it is lightweight (it has an off-axis center of mass though) i thought this cannot be the problem. Giving some thought to your comment this is the only thing that makes sense.

How can i change the payload settings?
Edit: I think i found it.
Start-Up -> Calibrate -> Supplementary load data
(if that is the case it wouldnt hurt to add this to the trouble shooting page)

@cschindlbeck cschindlbeck changed the title Kinetic: "Maximum kinetic energy" "Failed to read state from robot. Shutting down!": Maximum kinetic energy exceeded Apr 16, 2018
@gavanderhoorn
Copy link
Member

Note that I was just guessing. The payload settings could be a red herring.

re: updating the Troubleshooting guide might make sense, if it turns out to be the payload.

@cschindlbeck
Copy link
Author

cschindlbeck commented Apr 17, 2018

This issue was removed by:

Thanks for the tip @gavanderhoorn

Jerky and "weird" trajectory behavior still persists but the discussion should be continued in the issues referenced in the initial post

@RhysMcK
Copy link

RhysMcK commented Apr 17, 2018

@cschindlbeck how accurately did you have to set the payload in the KUKA controller? Did you use the KUKA provided software- Kuka.LoadDataDetermination, or did you manually add the mass, CoM and inertia's. Thanks!

@cschindlbeck
Copy link
Author

cschindlbeck commented Apr 18, 2018

I have a custom gripper made of aluminum and an aluminum plate so i have inferred the inertial data from Solidworks (keep in mind to export your data wrt to the correct coordinate system). The only thing not accounted for is a servo motor so it's not totally spot on but i would say 95% accuracy.

I entered the data manually with the teach pendant (Calibration -> Tool -> load supplementary data).

I forgot to mention that i have furthermore slowed down the trajectories with

set_max_velocity_scaling_factor(0.02)
set_max_acceleration_scaling_factor(0.01)

I haven't sped up the trajectories to "normal" speed yet. Maybe you can try with really slow trajectory execution and work you way from there.

@RhysMcK
Copy link

RhysMcK commented Apr 19, 2018

Thanks @cschindlbeck for getting in touch. If your using a similar environment setup to myself, i fear you might once again encounter this error when you speed things back up to "normal" speed. Please see my latest comment on this discuss #126 (comment) . Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants