Constructors for geometric primitives. Each is defined in its own frame,
placed by origin relative to the frame it is attached to (a link or
the world):
Usage
geom_sphere(radius, origin = robot_pose())
geom_box(size, origin = robot_pose())
geom_cylinder(radius, length, origin = robot_pose())
geom_capsule(radius, length, origin = robot_pose())
geom_convex(vertices, origin = robot_pose())
geom_mesh(filename, scale = c(1, 1, 1), origin = robot_pose())Details
geom_sphere(radius): centered at the origin.geom_box(size): an axis-aligned box in its own frame with edge lengthssize, centered at the origin. A rotatedorigingives an oriented box.geom_cylinder(radius, length): axis along z, centered at the origin.geom_capsule(radius, length): a segment of lengthlengthalong z, centered at the origin, swept by a sphere ofradius.geom_convex(vertices): the convex hull of the rows ofvertices.geom_mesh(filename, scale): a reference to a mesh file, kept as metadata only. Mesh files are never opened, and meshes are ignored by collision checking.