How to add a box to the collision model

::heading=Context

It is often useful to create a virtual model of an object in the collision model to avoid a collision with the environment or when using a custom EOAT. 

Note: Adding safety walls, pallet walls or a conveyor to the model should be achieved using other existing methods. 

 

::heading=Knowledge

The following script command will allow to add a collision box to the model. 

 

Script declaration

rq_register_bounding_box(referential, box_position, box_dimensions)

 

Referential (type: int)

Three useful referentials are: 

0 = palletizer base (AX series)

 

mceclip1.png

 

mceclip2.png

::colend=
3 = robot base 
mceclip0.png
9 = robot tool flange

 

Box position (type : pose)

The box position is written in the p[X,Y,Z,Rx,Ry,Rz] form. The box origin is the center of the bottom of the box. Of course, what is the bottom and the top is relative to the referential frame

- X, Y and Z are  in meters.

- Rx, Ry and Rz, in radians

mceclip3.png

Box dimensions (type : list)

Box dimensions are presented in the [X,Y,Z] form and must be expressed in accordance to the selected reference frame.

X, Y and Z are expressed in meters.

 

Example with boxes added in the tool reference frame

Here we need to avoid collisions with a custom tool with an irregular shape.
Two script commands are added to the BeforeStart sequence of the program: 

mceclip4.png

Here is a view of the resulting collision model, which includes the auto generated boxes of the extension bracket and the gripper (this one is on top, aligned with the gripped box, and slightly smaller). 

mceclip5.png

 

Link to visualize the collision model : link

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk