Skip to content

NMPC Swing Up Controller based on Crocoddyl#86

Merged
pierfabre merged 8 commits intomasterfrom
swing-up-nmpc-crocoddyl
Jul 22, 2025
Merged

NMPC Swing Up Controller based on Crocoddyl#86
pierfabre merged 8 commits intomasterfrom
swing-up-nmpc-crocoddyl

Conversation

@pierfabre
Copy link
Copy Markdown
Collaborator

@pierfabre pierfabre commented May 30, 2024

  • Rebased on generate an urdf of the robot #93+
  • Add a NMPC controller for swing up that uses crocoddyl library and mim_solver
  • scripts/nmpc_swing_up.py in which we solve the TO offline first and then try to swing up the pendulum in a MPC fashion using the new simulator better simulation #95+. This is already challenging because a lot of things are not in the model (friction, encoders resolution, control signal clamp, velocity filters, smaller integration step, ...)

Realated to #66

@pierfabre pierfabre mentioned this pull request May 30, 2024
@pierfabre pierfabre linked an issue May 30, 2024 that may be closed by this pull request
@pierfabre pierfabre self-assigned this May 30, 2024
@pierfabre pierfabre force-pushed the swing-up-nmpc-crocoddyl branch from d74c4f9 to 9e86aef Compare July 16, 2024 19:27
@pierfabre pierfabre mentioned this pull request Jul 16, 2024
@pierfabre pierfabre force-pushed the swing-up-nmpc-crocoddyl branch from 2da0d66 to 8d063ae Compare July 22, 2024 20:18
@pierfabre pierfabre marked this pull request as draft October 19, 2024 23:10
@pierfabre pierfabre force-pushed the swing-up-nmpc-crocoddyl branch from 32bc644 to 5134a7a Compare January 25, 2025 14:41
@pierfabre pierfabre force-pushed the swing-up-nmpc-crocoddyl branch from 5134a7a to e16a321 Compare February 9, 2025 15:57
@pierfabre pierfabre force-pushed the swing-up-nmpc-crocoddyl branch from e16a321 to 1a06312 Compare April 25, 2025 14:09
@pierfabre pierfabre force-pushed the swing-up-nmpc-crocoddyl branch from 1a06312 to f22287c Compare July 15, 2025 21:31
@pierfabre pierfabre marked this pull request as ready for review July 15, 2025 21:32
@pierfabre pierfabre requested a review from Armandpl July 15, 2025 21:32
@pierfabre
Copy link
Copy Markdown
Collaborator Author

@Armandpl the test_gym_env test is failing because the reward is of type numpy.float32 and the env_checker expects float
It has nothing to do with the PR
I think it's probably due to the bump in version of numpy thanks to the relaxation on matplotlib version
Can you take a look pls?

@pierfabre pierfabre merged commit 1c89ddb into master Jul 22, 2025
1 check passed
@pierfabre pierfabre deleted the swing-up-nmpc-crocoddyl branch July 22, 2025 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Swing up using NMPC in simulation

2 participants