pyrobosim.core.objects.Object.__init__

Object.__init__(*, name: str, category: str, parent: ~pyrobosim.core.types.Entity | None = None, pose: ~pyrobosim.utils.pose.Pose = Pose: [x=0.00, y=0.00, z=0.00, qw=1.000, qx=0.000, qy=-0.000, qz=0.000], inflation_radius: float = 0.0, color: ~typing.Sequence[float] | str | None = None) None

Creates an object instance.

Parameters:
  • name – Name of the object.

  • category – Object category (e.g., "apple").

  • parent – Parent of the object (typically a pyrobosim.core.locations.ObjectSpawn)

  • pose – Pose of the object.

  • inflation_radius – Inflation radius for polygon collision checks.

  • color

    Visualization color. Input can be:

    • an (R, G, B) tuple or list in the range (0.0, 1.0).

    • a string (e.g., “red”).

    • a hexadecimal string (e.g., “#FF0000”).

    If using a category with a defined color, this parameter overrides the category color.