Skip to content

Instantly share code, notes, and snippets.

View Shawn070203's full-sized avatar

Junlin Xiao Shawn070203

  • 13:24 (UTC +08:00)
View GitHub Profile
@Shawn070203
Shawn070203 / pendulum_MDP.py
Last active January 21, 2026 01:48
This file illustrates one example of how to transport a Gymnasium env (at here using Pendulum env) to the Rapport.
__credits__ = ["Carlos Luis"]
from os import path
import numpy as np
from rapport_maths.random import np_random
import gymnasium as gym
from gymnasium import spaces
from gymnasium.envs.classic_control import utils