.. _example_generate_rectangle_labels:

Generating Rectangle Grasp Labels
=================================

You can generate the rectangle grasp labels by yourself.

Import necessary libs:

.. literalinclude:: ../../examples/exam_generate_rectangle_grasp.py
    :lines: 4-11

Setup how many processes to use in generating the labels.

.. literalinclude:: ../../examples/exam_generate_rectangle_grasp.py
    :lines: 13-15

The function to generate labels.

.. literalinclude:: ../../examples/exam_generate_rectangle_grasp.py
    :lines: 17-31

Run the function for each scene and camera.

.. literalinclude:: ../../examples/exam_generate_rectangle_grasp.py
    :lines: 33-52