This repo contains the code for learning an RL policy in IsaacGym for a two wheeled inverted pendulum (TWIP) and a Flywheel inverted pendulum robots. It includes the following folders and subfolders:
-
assets
: contains the URDF file of the robot -
code
: contains the IsaacGym environment and the the task specification/PPO parameters
-
Download IsaacGym
-
Copy the URDF file contained in the assets folder in IsaacGymEnvs/assets
-
Copy
Twip.yaml
andFlywheelPendulum.yaml
in the folder in IsaacGymEnvs/isaacgymenvs/cfg/task -
Copy
TwipPPO.yaml
andFlywheelPendulumPPO.yaml
in the folder in IsaacGymEnvs/isaacgymenvs/cfg/train -
Copy
twip.py
andflywheel_pendulum.py
in the assets folder in IsaacGymEnvs/isaacgymenvs/task -
Paste in IsaacGymEnvs/isaacgymenvs/tasks/init.py
from .twip import Twip
from .flywheel_pendulum import FlywheelPendulum
....
"Twip": Twip,
"FlywheelPendulum": FlywheelPendulum,
- run
python train.py task=Twip
orpython train.py task=FlywheelPendulum