concepts.simulator.pybullet.camera.CameraConfig#

class CameraConfig[source]#

Bases: _CameraConfig

Mostly based on https://github.com/cliport/cliport/blob/e9cde74754606448d8a0495c1efea36c29b201f1/cliport/tasks/cameras.py

Methods

count(value, /)

Return number of occurrences of value.

get_projection_matrix(image_size)

get_view_and_projection_matricies([image_size])

get_view_matrix()

index(value[, start, stop])

Return first index of value.

Attributes

image_size

Alias for field number 0

intrinsics

Alias for field number 1

position

Alias for field number 2

rotation

Alias for field number 3

shadow

Alias for field number 5

zrange

Alias for field number 4

__add__(value, /)#

Return self+value.

__getitem__(key, /)#

Return self[key].

__init__()#
__iter__()#

Implement iter(self).

__len__()#

Return len(self).

__mul__(value, /)#

Return self*value.

static __new__(_cls, image_size, intrinsics, position, rotation, zrange, shadow)#

Create new instance of _CameraConfig(image_size, intrinsics, position, rotation, zrange, shadow)

count(value, /)#

Return number of occurrences of value.

get_projection_matrix(image_size)[source]#
Parameters:

image_size (Tuple[int, int]) –

Return type:

ndarray

get_view_and_projection_matricies(image_size=None)[source]#
Parameters:

image_size (Tuple[int, int] | None) –

Return type:

Tuple[ndarray, ndarray]

get_view_matrix()[source]#
Return type:

ndarray

index(value, start=0, stop=9223372036854775807, /)#

Return first index of value.

Raises ValueError if the value is not present.

image_size#

Alias for field number 0

intrinsics#

Alias for field number 1

position#

Alias for field number 2

rotation#

Alias for field number 3

shadow#

Alias for field number 5

zrange#

Alias for field number 4