-
Notifications
You must be signed in to change notification settings - Fork 2
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
Tune admittance controller #2
Comments
Screencast.from.2024.07.25.08.03.29.webmThis is without admittance controller. |
It looks like you're probably getting positive feedback here. This could happen if your FTS frame axes are not properly aligned between your admittance controller configuration and your robot model(s). If you echo the FTS readings while you run this, I expect the FTS readings shoot up once contact is made. |
Try negating these lines in mujoco_system.cpp first. Also ensure that your FTS frames are aligned between the URDF and the Mujoco model |
I'm not sure whether this is desired behavior or not, but this was the best I can do... |
@dyackzan @pac48 Also, there is another problem. When motion planning goal is canceled, robot goes out of control and moves crazily. You can see this at the end of this video.
|
@dyackzan
|
I am getting better performance/less oscillation with the following admittance parameters:
As for the jump at the end, that is occurring because there is a big spike in the FTS readings right when the command is cancelled for some reason. You can see this spike in the PlotJuggler plot below that I recorded while running the demo: To debug further, I would recommend you take a look at your ros2_mujoco system code to ensure that the jump in FTS values is actually coming through from MuJoCo and is being passed through correctly. Then we can rule out any issues coming from your ros2_mujoco package. Once you check that and verify that MuJoCo is actually sending this discontinuous FTS reading, then you can start tweaking the MuJoCo simulation setup. Here are a couple ideas it may help to look closer into:
|
@dyackzan Thanks David. It looks much better with new parameters! |
I’ve set up the admittance controller, but I’m having difficulties tuning it. If anyone could help me with this, that would be really helpful.
You can follow these steps to start peg in hole example.
The text was updated successfully, but these errors were encountered: