pyrobosim.core.objects.Object
- class pyrobosim.core.objects.Object(name=None, category=None, parent=None, pose=None, inflation_radius=0.0, color=None)
Represents an object in the world.
Methods
__init__([name, category, parent, pose, ...])Creates an object instance.
add_metadata(filename)Add object metadata from a new file to existing metadata.
Clear out old object metadata.
Fits a grasp cuboid from the object footprint and height.
create_polygons([inflation_radius])Creates collision and visualization polygons for the object.
Returns the object footprint coordinates.
Gets the cuboid pose with respect to the reference world frame.
Returns the name of the room containing the object.
Prints string with details.
set_pose(pose)Sets the pose of an object, accounting for any height offsets in the target location, and update the corresponding object polygons.
to_dict()Serializes the object to a dictionary.
update_collision_polygon([inflation_radius])Updates the collision polygon using the specified inflation radius.
Updates the visualization polygon for the object.
Attributes
Vertical height of object.
Metadata for object categories.
Visualization color (RGB tuple).