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.yamlandFlywheelPendulum.yamlin the folder in IsaacGymEnvs/isaacgymenvs/cfg/task -
Copy
TwipPPO.yamlandFlywheelPendulumPPO.yamlin the folder in IsaacGymEnvs/isaacgymenvs/cfg/train -
Copy
twip.pyandflywheel_pendulum.pyin 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=Twiporpython train.py task=FlywheelPendulum