|
| def | __init__ (self, balls_pose=[[0, 0]], arm_position=None, params=None) |
| |
| def | reset (self, balls_pose, arm_position) |
| |
| def | move_joint (self, joint, value) |
| |
| def | step (self) |
| |
◆ __init__()
| def gym_billiard.utils.physics.PhysicsSim.__init__ |
( |
|
self, |
|
|
|
balls_pose = [[0, 0]], |
|
|
|
arm_position = None, |
|
|
|
params = None |
|
) |
| |
Constructor
:param balls_pose: Initial ball poses. Is a list of the ball poses [ball0, ball1, ...]
:param arm_position: Initial arm position
:param params: Parameters
◆ move_joint()
| def gym_billiard.utils.physics.PhysicsSim.move_joint |
( |
|
self, |
|
|
|
joint, |
|
|
|
value |
|
) |
| |
Move the given joint of the given value
:param joint: Joint to move
:param value: Speed or torque to add to the joint
:return:
◆ reset()
| def gym_billiard.utils.physics.PhysicsSim.reset |
( |
|
self, |
|
|
|
balls_pose, |
|
|
|
arm_position |
|
) |
| |
Reset the world to the given arm and balls poses
:param balls_pose:
:param arm_position:
:return:
◆ step()
| def gym_billiard.utils.physics.PhysicsSim.step |
( |
|
self | ) |
|
Performs a simulator step
:return:
◆ arm
| gym_billiard.utils.physics.PhysicsSim.arm |
Arm definition with links and joints.
◆ balls
| gym_billiard.utils.physics.PhysicsSim.balls |
List of balls in simulation.
◆ dt
| gym_billiard.utils.physics.PhysicsSim.dt |
◆ holes
| gym_billiard.utils.physics.PhysicsSim.holes |
◆ params
| gym_billiard.utils.physics.PhysicsSim.params |
◆ pos_iter
| gym_billiard.utils.physics.PhysicsSim.pos_iter |
◆ tw_transform
| gym_billiard.utils.physics.PhysicsSim.tw_transform |
◆ vel_iter
| gym_billiard.utils.physics.PhysicsSim.vel_iter |
◆ walls
| gym_billiard.utils.physics.PhysicsSim.walls |
◆ world
| gym_billiard.utils.physics.PhysicsSim.world |
◆ wt_transform
| gym_billiard.utils.physics.PhysicsSim.wt_transform |
The documentation for this class was generated from the following file: