Simulate documentation
Actors
Actors
class simulate.SimpleActor
< source >( name: typing.Optional[str] = Noneposition: typing.Optional[typing.List[float]] = Nonerotation: typing.Optional[typing.List[float]] = Nonescaling: typing.Union[float, typing.List[float], NoneType] = Nonetransformation_matrix: typing.Optional[numpy.ndarray] = Nonematerial: typing.Optional[simulate.assets.material.Material] = Noneparent: typing.Optional[ForwardRef('Asset')] = Nonechildren: typing.Union[ForwardRef('Asset'), typing.List[ForwardRef('Asset')], NoneType] = None**kwargs )
Parameters
- name (
str
) β Name of the actor. - position (
List[float]
, optional, defaults to[0.0, 0.0, 0.0]
) β Position of the actor in the scene. - rotation (
List[float]
, optional, defaults to[0.0, 0.0, 0.0]
) β Rotation of the actor in the scene. - scaling (
Union[float, List[float]]
, optional, defaults to1.0
) β Scaling of the actor in the scene. - transformation_matrix (
np.ndarray
, optional, defaults toNone
) β Transformation matrix of the actor in the scene. - parent (
Asset
, optional, defaults toNone
) β Parent of the actor in the scene. - children (
Asset
orList[Asset]
, optional, defaults toNone
) β Children of the actor in the scene.
Creates a bare-bones RL agent in the scene.
copy
< source >( with_children: bool = True**kwargs: typing.Any ) β copy (SimpleActor
)
Make a copy of the Asset. Parent and children are not attached to the copy.
class simulate.EgocentricCameraActor
< source >( mass: float = 1.0name: typing.Optional[str] = Noneposition: typing.Optional[typing.List[float]] = Nonerotation: typing.Optional[typing.List[float]] = Nonescaling: typing.Union[float, typing.List[float], NoneType] = Nonecamera_height: int = 40camera_width: int = 40camera_tag: typing.Optional[str] = 'CameraSensor'transformation_matrix: typing.Optional[numpy.ndarray] = Nonematerial: typing.Optional[simulate.assets.material.Material] = Noneparent: typing.Optional[ForwardRef('Asset')] = Nonechildren: typing.Union[ForwardRef('Asset'), typing.List[ForwardRef('Asset')], NoneType] = None**kwargs )
Parameters
- mass (
float
, optional, defaults to1.0
) β Mass of the actor. - name (
str
, optional, defaults toNone
) β Name of the actor. - position (
List[float]
, optional, defaults to[0.0, 1.05, 0.0]
) β Position of the actor in the scene. - rotation (
List[float]
, optional, defaults to[0.0, 0.0, 0.0]
) β Rotation of the actor in the scene. - scaling (
float
orList[float]
, optional, defaults to1.0
) β Scaling of the actor in the scene. - camera_height (
int
, optional, defaults to40
) β Height of the camera above the actor. - camera_width (
int
, optional, defaults to40
) β Width of the camera above the actor. - transformation_matrix (
np.ndarray
, optional, defaults toNone
) β Transformation matrix of the actor in the scene. - parent (
Asset
, optional, defaults toNone
) β Parent of the actor in the scene. - children (
Asset
orList[Asset]
, optional, defaults toNone
) β Children of the actor in the scene.
Create an Egocentric RL Actor in the Scene β essentially a basic first-person agent.
An egocentric actor is a capsule asset with:
- a Camera as a child asset for observation device
- a RigidBodyComponent component with a mass of 1.0
- a discrete actuator
copy
< source >( with_children: bool = True**kwargs: typing.Any ) β copy (EgocentricCameraActor
)
Make a copy of the Asset. Parent and children are not attached to the copy.
Under construction π§.