Hello, I would like to create boxes from a python script of the dimensions that interest me.
I'm testing but I can't create boxes
Example:
Should I use some other function?
I'm testing but I can't create boxes
Example:
Code:
from robodk import robolink, robomath
RDK = robolink.Robolink()
width = 100 # Ancho de la caja
length = 200 # Largo de la caja
height = 50 # Alto de la caja
# Crear el box
box = RDK.AddObject('Box', robomath.Mat([width, length, height]))
box.setPose(robomath.Mat([0, 0, 0, 0, 0, 0])) # Matriz de transformación (pose) en (X, Y, Z, Rx, Ry, Rz)
print("Box creado exitosamente en RoboDK.")
Should I use some other function?