Skip to content

One of joints turns too quickly in servo mode #2165

Closed

Description

@andrey-pr

Description

изображение
When I move end effector of my arm horizontally, one of joints (last in chain, joint which connects arm and gripper) turns too quickly, moves to end position and blocks arm. This joint have different from other joints maximum speed. In MoveGroup mode it works this problem not reproduces. What can I do to fix it? Thank you.

My environment

  • ROS Distro: Humble
  • OS Version: Ubuntu 22.04
  • Binary build?
  • Moveit 2.5.4
  • Cyclone DDS

Steps to reproduce

It can be reproduced only on my real hardware, not virtually.

Expected behaviour

End effector must keep orientation, but it turns left when I move hand right

Activity

  1. added
    bug
    on May 10, 2023
  2. andrey-pr commented on May 11, 2023

    @andrey-pr
    Author

    @AndyZe do you have any ideas?

  3. AndyZe commented on May 11, 2023

    @AndyZe
    Member

    TBH it sounds like expected behavior. Servo is kind of dumb in that it only looks one step ahead; it is not able to predict something like this:

    moves to end position and blocks arm

  4. andrey-pr commented on May 11, 2023

    @andrey-pr
    Author

    Problem not in moves to end position and blocks arm. Problem is that end effector must keep orientation, in this case it should be centered on image, but one of joints turned left and end effector turned left. I'll make video of in tomorrow and show you
    (i cannot reproduce it now, I need real robot to do it, and it stands in office)

  5. AndyZe commented on May 11, 2023

    @AndyZe
    Member

    is it a 6-dof arm?

  6. andrey-pr commented on May 11, 2023

    @andrey-pr
    Author

    yes

  7. AndyZe commented on May 11, 2023

    @AndyZe
    Member

    OK, that's good

  8. andrey-pr commented on May 11, 2023

    @andrey-pr
    Author

    Does moveit support sub-6-dof arms? We tried to use only 5 joints, but we have been forced to install one more joint by troubles with movegroup and servo both

  9. AndyZe commented on May 11, 2023

    @AndyZe
    Member

    it's supported in that the software will run but you probably won't be able to track a full 6-dof pose. Very unlikely, at least. That's nothing to do with MoveIt, it's just physics.

    I don't have any ideas on your problem at the moment. Are you getting any warnings in terminal? What's your condition threshold set to in the yaml?

  10. andrey-pr commented on May 11, 2023

    @andrey-pr
    Author

    I don't see any warnings. I'll make video of issue in rviz tomorrow

  11. andrey-pr commented on May 11, 2023

    @andrey-pr
    Author

    It can be issue by my custom robot driver, but its unlikely

  12. andrey-pr commented on May 12, 2023

    @andrey-pr
    Author

    Hallo. I made video of it. https://file.io/fWXQss3YKWCu here is videos with rviz and with real robot. I sent on arm command to move linearly, so on video with rviz hand must move horizontally on screen without spinning, but it spins backward

  13. andrey-pr commented on May 16, 2023

    @andrey-pr
    Author

    @AndyZe have you any advice what to do with it?

  14. ibrahiminfinite commented on May 18, 2023

    @ibrahiminfinite
    Contributor

    @andrey-pr

    When I move end effector of my arm horizontally, one of joints (last in chain, joint which connects arm and gripper) turns too quickly, moves to end position and blocks arm.

    What type of commands are you sending to Servo ? (JointJog / Twist )?

    Problem is that end effector must keep orientation, in this case it should be centered on image, but one of joints turned left and end effector turned left.

    If you are sending JointJog or Twist, the robot simply takes single steps at each iteration, trying to reach the expected joint position.
    As far as I understand , this computation does not try to maintain an end effector pose.

    If moving while maintaining end-effector pose is what you need, perhaps servoing using the PoseTracker is the way to go for you
    What do you think @AndyZe ?

  15. AndyZe commented on May 18, 2023

    @AndyZe
    Member

    If you send a Twist command with zero rotational velocities, the orientation shouldn't change. That would be a pretty bad bug

    Can I watch the video again @andrey-pr ? Looks like the file got deleted

  16. andrey-pr commented on May 19, 2023

    @andrey-pr
    Author

    Thank you. I realised that this is hardware problem, but not a problem of moveit. Sorry for disturb. This problem exists when some of motors have too low velocity limit, and forward controller of servo does not check feedback and does not corrects other joints. I fixed my hardware, unlocked bigger velocities for all joints and now it works

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions