Skip to main content
Skip table of contents

pickit_detection(offset_z)

기능

입력된 모델을 검출하고 pick_prepos, pick_pos를 반환한다.

인수

인수명자료형기본값설명

offset_z

int

-

'pick_prepos' 거리를 설정한다.

리턴

자료형 설명
data_dictionary = {'pick_pos':pick_pos, 'pick_prepos':pick_prepos,                 'object_age':data['object_age'], 'object_type':data['object_type'],               'object_dimensions':data['object_dimensions'],           'object_remaining':data['objects_remaining'], 'status':data['status'

{'pick_pos': posx,

'pick_prepos': posx,              

 'object_age': int,

'object_type': int ,               'object_dimensions': int ,

'object_remaining': int ,

'status': int}
 'pick_pos': Model recognition position,

'pick_prepos': Offset Value of model recognition position,                

'object_age': The amount of time that has passed between the capturing of the camera data and the moment the object information is sent to the robot. This value has to be divided by the  MULT factor.,

'object_type': The type of object detected at object_pose ,              

'object_dimensions': When reading array elements, each value has to be divided by the  MULT factor. ,

'object_remaining': Only one object per pickit_to_robot_data message can be communicated. If this field is non-zero, it contains the number of remaining objects that can be sent in next messages to the robot. ,

'status': Contains the Pickit status or a response to previously received robot commands.

예제

PY
set_singular_handling(DR_AVOID)
set_velj(60.0)
set_accj(100.0)
set_velx(250.0, 80.625)
set_accx(1000.0, 322.5)
 
pickit_connect("192.168.137.90")
pickit_change_configuration( 7,10 ) # These numbers are defined in Pickit
 
data = pickit_detection(100)
if data['status'] == ResponseStatus.OBJECTS_FOUND:
       # Picking motion
   movel(data['pick_prepos'])
   movel(data['pick_pos'])
   movel(data['pick_prepos'])
 
pickit_disconnect()
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.