place_object_with_reference()
  • 1 Minute to read

place_object_with_reference()


Article Summary

place_object_with_reference()

Places the currently held object at a specified distance from a reference object.

Reference

Arguments

ArgumentsTypeDefault value
detector_modelstrName of the detection model that will be used to recognize and localize the reference object.
sourcestrName of the camera that will be sourced to recognize the target object.
object_namestrName of the reference, as recognizable by the detection model.
height_objectfloatHeight of the object to place, in meters.
armstrArm to execute place
distancefloatDistance to place the object from the reference object, in meters.
callback_feedbackfunctionNoneFunction to be called throughout the placement procedure.
callback_finishfunctionNoneFunction to be called once object is placed.
waitboolFalseIf true, program will wait until object is placed before continuing with other code. If false, program will continue running asynchronously.

Callback Arguments

callback_feedback

ArgumentType
statestrInformation about progress of object placement procedure.

callback_finish

ArgumentType
errorintCode for the type of error encountered (0 if no error).
error_msgstrDetails regarding the error (empty if no error).

Return

None

Exceptions

ExceptionCondition
RayaNotMovingGrasping already in execution.

See the complete list of Raya Exceptions.

Examples

See the Grasping Place Object With Reference Example to see how to place an object with a reference.


Was this article helpful?

What's Next