Arm with a fixed external camera
An overhead or tripod-mounted camera sees the whole workspace at once. A wrist-mounted camera sees only where the arm points. For pick-and-place across a full bench (a bin on one side, a target area on the other), the fixed camera is the better choice: the arm can move freely while the camera keeps its vantage point. This guide configures frames for that arrangement: the arm as a child of the world frame, and the camera as a separate child of the world frame.
Frame hierarchy
world
├── my-arm
│ └── my-gripper (attached to arm)
├── my-camera (overhead or tripod-mounted)
└── table-surface
The key difference from a wrist-mounted camera setup is that the camera is a child of the world frame, not the arm. The camera frame stays fixed in space when the arm moves.
Steps
1. Choose your world frame
Pick a fixed, easy-to-measure point in your workspace. A table corner works well for this setup because you need to measure distances to both the arm base and the camera position from the same reference point.
Mark the origin physically so you can take consistent measurements to both the arm and the camera.
2. Add a frame to the arm
In the Viam app, navigate to your machine and click the CONFIGURE tab. In the sidebar, click your arm component to open its card. On the card, click Frame.
The Frame section opens a JSON editor (there is no form, no parent dropdown, or geometry-type picker). Edit the JSON directly.
Measure the distance from your world frame origin to the arm base along each axis. For an arm base 300 mm to the right and 250 mm forward from a table corner:
{
"parent": "world",
"translation": { "x": 300, "y": 250, "z": 0 },
"orientation": {
"type": "ov_degrees",
"value": { "x": 0, "y": 0, "z": 1, "th": 0 }
}
}
Click Save in the top-right of the page (or press ⌘/Ctrl+S).
3. Add a frame to the gripper
In the sidebar, click your gripper component to open its card. On the card, click Frame. Set the parent to the arm:
{
"parent": "my-arm",
"translation": { "x": 0, "y": 0, "z": 0 },
"orientation": {
"type": "ov_degrees",
"value": { "x": 0, "y": 0, "z": 1, "th": 0 }
}
}
If you have an adapter plate between the arm and gripper, set the z translation to the plate height in millimeters.
Click Save.
4. Add a frame to the fixed camera
In the sidebar, click your camera component to open its card. On the card, click Frame.
The camera’s parent is "world", not the arm.
Measure the camera’s position relative to your world frame origin. You need to measure in all three axes: left/right (x), forward/backward (y), and height (z).
Overhead camera example: For a camera mounted 200 mm to the right, 300 mm forward, and 800 mm above the world frame origin:
{
"parent": "world",
"translation": { "x": 200, "y": 300, "z": 800 },
"orientation": {
"type": "ov_degrees",
"value": { "x": 1, "y": 0, "z": 0, "th": 180 }
}
}
An overhead camera’s lens points at the floor. In the default camera frame, +z points out of the lens, so without rotation the camera’s +z would point up and the floor would be in -z. Rotating 180 degrees around the x axis flips z to point down (the direction the lens is actually aimed), and flips y to compensate. The result: +z now matches “away from the camera” in the physical sense, and the camera’s 2D coordinates map intuitively to world positions.
Tripod-mounted camera at an angle: For a camera on a tripod 500 mm to the left, 600 mm forward, and 700 mm above the origin, tilted 45 degrees downward:
{
"parent": "world",
"translation": { "x": -500, "y": 600, "z": 700 },
"orientation": {
"type": "ov_degrees",
"value": { "x": 1, "y": 0, "z": 0, "th": -45 }
}
}
A negative angle around the x axis tilts the camera’s view downward from the horizontal.
Click Save.
5. Verify axes on the arm and on the camera
For the arm, jog in CONTROL along +x, +y, +z and watch the physical
direction. For the camera, open the camera stream in CONTROL and move a
known object (a pen, a ruler) in the physical +x direction; the object should
move in the +x direction in the camera’s image coordinates. If either is
wrong, rotate the relevant component’s orientation until it matches.
6. Visualize the frame system
- Navigate to the 3D SCENE tab in the Viam app.
- Verify that the arm and camera frames appear as separate branches from the world frame.
- Confirm that the camera frame stays fixed when the arm moves.
- Check that the positions and orientations match your physical workspace.
7. Verify with TransformPose
Use TransformPose to verify the relationship between the camera and arm frames.
Place an object at a known position visible to the camera, then transform that position from the camera frame to the world frame.
The result should match the object’s measured position in the workspace.
For details on the TransformPose API, see Frame system: TransformPose.
Troubleshooting
What’s next
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!