moveit / moveit2

:robot: MoveIt for ROS 2
https://moveit.ai/
BSD 3-Clause "New" or "Revised" License
983 stars 493 forks source link

Real Arm shaking using Moveit Servo publish_joint_velocities #2827

Open miki8498 opened 1 month ago

miki8498 commented 1 month ago

Description

At the moment I'm working with an UR5e and try to implement the Moveit Servo using the "publish_joint_velocities" option. Starting from a desired cartesian pose, I implemented a PID to obtain a TwistStamped message to send to my servo topic. In simulation everything works well, but when i try the code on my real arm, it starts shaking. To understand what was happening, while keeping the real arm still, i considered a small movement along one axis as my desired pose (so that my linear velocity along that axis would have kept being constant) and used a fake topic as "command_out_topic" in order to plot the result of the servo node.

I don't know if i should set some values or something else to avoid this oscillation

This is how i defined the servo params file Screenshot from 2024-05-10 16-45-24 Screenshot from 2024-05-10 16-45-24

Your environment

Expected behaviour

I expected to obtain, if not really a constant value on the joints, one with a really small vibration

Actual behaviour

I obtained a huge oscillation on the resulting joint velocities (the one in figure). Screenshot from 2024-05-10 16-34-51

miki8498 commented 1 month ago

Uploaded the same image of my servo params file twice, sorry Screenshot from 2024-05-10 16-45-36

github-actions[bot] commented 1 week ago

This issue is being labeled as stale because it has been open 45 days with no activity. It will be automatically closed after another 45 days without follow-ups.