pyrobosim.core.world.World.update_object
- World.update_object(obj, loc=None, pose=None)
Updates an existing object in the world.
- Parameters:
obj (
pyrobosim.core.objects.Object
/str) – Object instance or name to update.loc (
pyrobosim.core.locations.Location
/pyrobosim.core.locations.ObjectSpawn
/str, optional) – Location or object spawn instance or name. If none, uses the previous location.pose (
pyrobosim.utils.pose.Pose
, optional) – Pose of the location. If none is specified, it will be sampled.
- Returns:
True if the update was successful, else False.
- Return type:
bool