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 ((float, float, float), optional) – Visualization color as an (R, G, B) tuple in the range (0.0, 1.0). If using a category with a defined color, this parameter overrides the category color.