pyrobosim.core.robot.Robot.detect_objects

Robot.detect_objects(target_object=None)

Detects all objects at the robot’s current location.

Parameters:

target_object (str) – The name of a target object or category. If None, the action succeeds regardless of which object is found. Otherwise, the action succeeds only if the target object is found.

Returns:

An object describing the execution result.

Return type:

pyrobosim.planning.actions.ExecutionResult