Repository navigation
Add inverted-pendulum PPO example extension - #11
Merged
Merged
Conversation
Register `GeneLab-Inverted-Pendulum-v0` and `GeneLab-Double-Inverted-Pendulum-v0` under examples/inverted_pendulum/. Single PD-controlled cart drives one or two underactuated hinge poles through rsl_rl PPO on the existing ManagerBasedRlEnv + BodyVelocitySensor stack. Play mode enables `scene.mouse_interaction` for spring-force disturbance, with matching English/Chinese walkthrough pages and a registration smoke test.
KraHsu
added a commit
that referenced
this pull request
May 15, 2026
Add inverted-pendulum PPO example extension
KraHsu
added a commit
that referenced
this pull request
Jun 5, 2026
Add inverted-pendulum PPO example extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GeneLab-Inverted-Pendulum-v0andGeneLab-Double-Inverted-Pendulum-v0underexamples/inverted_pendulum/. A single PD-controlled cart drives one or two underactuated hinge poles through rsl_rl PPO on the existingManagerBasedRlEnv+BodyVelocitySensorstack.playmode enablesscene.mouse_interaction(from Add mouse-interaction plugin hook to ManagerBasedRlEnv #10) so a left-click + drag applies a spring force to the cart/pole while the policy keeps balancing.docs/examples/inverted-pendulum.{en,zh}.md),examples/overviewentries, a registration smoke test (tests/test_inverted_pendulum_examples.py), andpythonpathwiring inpyproject.tomlso the test suite imports the extension without installation.Test plan
uv run ruff checkuv run ruff format --checkuv run pyrightuv run pytest(includes the new registration smoke test)uv run mkdocs build --strictuv run genelab train GeneLab-Inverted-Pendulum-v0 --num-envs 64 --max-iterations 5(Genesis-dependent, skipped in CI).uv run genelab play GeneLab-Inverted-Pendulum-v0 --checkpoint <run>/model_150.pt --visand verify left-click drag perturbs the cart while the policy recovers.🤖 Generated with Claude Code