Module Import alias ImportFrom alias Import alias identifier ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str Str ListLoad Str Str Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword UnaryOpUSub AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword TupleLoad Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword UnaryOpUSub NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad UnaryOpUSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Assign NameStore BinOpAdd BinOpAdd BinOpPow Call NameLoad NameLoad Num BinOpMult Num BinOpPow NameLoad Num BinOpMult Num BinOpPow NameLoad Num Assign NameStore BinOpAdd NameLoad BinOpMult BinOpAdd BinOpMult BinOpDiv BinOpMult Num NameLoad BinOpMult Num NameLoad Call AttributeLoad NameLoad attr BinOpAdd NameLoad AttributeLoad NameLoad attr BinOpMult BinOpDiv Num BinOpMult NameLoad BinOpPow NameLoad Num NameLoad NameLoad Assign NameStore BinOpAdd NameLoad BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad UnaryOpUSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Return TupleLoad Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad NameLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword UnaryOpUSub NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body If NameLoad body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return If CompareIs AttributeLoad NameLoad attr NameLoad body ImportFrom alias Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpDiv AttributeLoad NameLoad attr Num If AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad BinOpDiv UnaryOpUSub AttributeLoad NameLoad attr Num BinOpDiv Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareIs NameLoad Str body Pass orelse Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Return BinOpSub BinOpMod BinOpAdd NameLoad AttributeLoad NameLoad attr BinOpMult Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list
N/A N/A gym gym spaces N/A numpy np os path PendulumEnv N/A N/A gym Env N/A N/A metadata N/A render.modes video.frames_per_second N/A human rgb_array 30 __init__ N/A N/A self N/A N/A N/A N/A self max_speed 8 N/A N/A self max_torque 2.0 N/A N/A self dt 0.05 N/A N/A self viewer None N/A high N/A N/A np array N/A 1.0 1.0 N/A self max_speed N/A N/A self action_space N/A N/A spaces Box low N/A N/A self max_torque high N/A self max_torque shape N/A 1 N/A N/A self observation_space N/A N/A spaces Box low N/A high high high N/A _step N/A N/A self u N/A N/A N/A N/A th thdot N/A self state N/A g 10.0 N/A m 1.0 N/A l 1.0 N/A dt N/A self dt N/A N/A self last_u u N/A u N/A N/A N/A np clip u N/A N/A self max_torque N/A self max_torque N/A 0 N/A costs N/A N/A N/A N/A angle_normalize th 2 N/A 0.1 N/A thdot 2 N/A 0.001 N/A u 2 N/A newthdot N/A thdot N/A N/A N/A N/A N/A -3 g N/A 2 l N/A N/A np sin N/A th N/A np pi N/A N/A 3.0 N/A m N/A l 2 u dt N/A newth N/A th N/A newthdot dt N/A newthdot N/A N/A np clip newthdot N/A N/A self max_speed N/A self max_speed N/A N/A self state N/A N/A np array N/A newth newthdot N/A N/A N/A N/A self _get_obs N/A costs False N/A N/A _reset N/A N/A self N/A N/A N/A high N/A N/A np array N/A N/A np pi 1 N/A N/A self state N/A N/A N/A np random uniform low N/A high high high N/A N/A self last_u None N/A N/A N/A self _get_obs N/A _get_obs N/A N/A self N/A N/A N/A N/A theta thetadot N/A self state N/A N/A N/A np array N/A N/A N/A np cos theta N/A N/A np sin theta thetadot N/A _render N/A N/A self mode close N/A human False N/A N/A close N/A N/A N/A N/A self viewer None N/A N/A N/A N/A N/A self viewer close N/A N/A N/A N/A self viewer None N/A gym.envs.classic_control rendering N/A N/A self viewer N/A N/A rendering Viewer 500 500 N/A N/A N/A N/A self viewer set_bounds -2.2 2.2 -2.2 2.2 N/A rod N/A N/A rendering make_capsule 1 0.2 N/A N/A N/A rod set_color 0.8 0.3 0.3 N/A N/A self pole_transform N/A N/A rendering Transform N/A N/A N/A rod add_attr N/A self pole_transform N/A N/A N/A N/A self viewer add_geom rod N/A axle N/A N/A rendering make_circle 0.05 N/A N/A N/A axle set_color 0 0 0 N/A N/A N/A N/A self viewer add_geom axle N/A fname N/A N/A path join N/A N/A path dirname __file__ assets/clockwise.png N/A N/A self img N/A N/A rendering Image fname 1.0 1.0 N/A N/A self imgtrans N/A N/A rendering Transform N/A N/A N/A N/A self img add_attr N/A self imgtrans N/A N/A N/A N/A self viewer add_onetime N/A self img N/A N/A N/A N/A self pole_transform set_rotation N/A N/A N/A self state N/A 0 N/A N/A np pi 2 N/A N/A self last_u N/A N/A N/A N/A self imgtrans scale N/A N/A N/A N/A self last_u 2 N/A N/A N/A np abs N/A self last_u 2 N/A N/A N/A N/A self viewer render N/A N/A mode rgb_array N/A N/A N/A N/A N/A self viewer get_array N/A N/A N/A mode human N/A N/A N/A N/A N/A N/A N/A super PendulumEnv self render mode mode N/A N/A angle_normalize N/A N/A x N/A N/A N/A N/A N/A N/A x N/A np pi N/A 2 N/A np pi N/A np pi N/A