in experiments/rolling/RollingEnv.py [0:0]
def __init__(self, cameraResolution=[320, 240]):
self.cameraResolution = cameraResolution
camTargetPos = [-0.01, 0, 0.04]
camDistance = 0.05
upAxisIndex = 2
yaw = 0
pitch = -20.0
roll = 0
fov = 60
nearPlane = 0.01
farPlane = 100
self.viewMatrix = pb.computeViewMatrixFromYawPitchRoll(
camTargetPos, camDistance, yaw, pitch, roll, upAxisIndex
)
aspect = cameraResolution[0] / cameraResolution[1]
self.projectionMatrix = pb.computeProjectionMatrixFOV(
fov, aspect, nearPlane, farPlane
)