pyrobosim.core.objects.Object.__init__
- Object.__init__(name=None, category=None, parent=None, pose=None, inflation_radius=0.0, color=None)
Creates an object instance.
- Parameters:
name (str, optional) – Name of the object.
category (str) – Object category (e.g.,
"apple").parent (Entity) – Parent of the object (typically a
pyrobosim.core.locations.ObjectSpawn)pose (
pyrobosim.utils.pose.Pose) – Pose of the object.inflation_radius (float, optional) – Inflation radius for polygon collision checks.
color (list[float] | tuple[float, float, float] | str) –
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.