Skip to content

simulo.Cuboid

Cuboid (box) primitive.

Attributes:

  • size — Size as (width, depth, height)

Real usage, from the shipped cartpole_eval app — a decorative box prop with a pose and a color:

prop = simulo.Cuboid(
name="marker_post",
size=(0.3, 0.3, 0.5),
pose=simulo.Pose(position=(0.0, 1.5, 0.25)),
material=simulo.Material.surface(color=(0.2, 0.6, 0.9)),
)
scene.add(prop, at="/World/Prop")

(The shipped app builds this same value through the simulo.Entity.primitive.cuboid(...) factory instead — see simulo.Entity — which returns exactly this type.)

simulo.Cuboid(
name: str,
pose: Pose = Pose.identity(),
material: Optional[Material] = None,
physics: Optional[RigidPhysics | DeformablePhysics] = None,
size: Tuple[float, float, float] = (1.0, 1.0, 1.0),
)