home/palletizer-101 ONLINE

Viam 101

Viam is the fastest way to build a robot. In this free, hands-on course, you’ll build a real robotics application in simulation and learn the fundamentals of Viam, no hardware or prior robotics experience required. By the end, you’ll be ready to build your own robot from scratch.

> account

Create your account

Already have an account? Log in instead.

One account for every Viam course — your progress is saved to it, and you can change your password or details anytime.

The palletizing cell in the Viam app 3D scene beside the real arm picking a box
palletizer.py
async def main():
    objects = await vision.get_object_point_clouds("cam-1")
    obj = max(objects, key=lambda o: len(o.point_cloud))
    obj_pose = PoseInFrame(
        reference_frame="cam-1",
        pose=obj.geometries.geometries[0].center
    )
    await gripper.open()
    await motion.move(
        component_name="gripper-1",
        destination=obj_pose
    )
gripper-1 x 640.0  y −212.5  z 196.0 frame: world