Previous
Debug a motion plan
When you configure a camera mounted on an arm or a sensor attached to a base, the frame system needs the exact translation and orientation between the two components. Small errors in these offsets cause the arm to reach for objects in the wrong place or the point cloud to misalign with the physical workspace. The 3D scene tab lets you visually verify these offsets and use the measurement tool to check distances.
Navigate to your machine in the Viam app and click the 3D scene tab.
Click a component in the tree view. The details panel shows:
Compare the local position values to your physical measurements. If the camera is 50 mm to the right and 100 mm above the arm’s wrist joint, the local position should reflect that.
The measurement tool calculates the distance between two points in the scene.
The tool displays the distance in mm. Compare this to your physical measurement. If the values disagree, adjust the translation in the frame configuration.
You can constrain the measurement to a single axis (X, Y, or Z) to isolate which component of the offset is wrong.
Select a component and look at its coordinate axes in the 3D view. The axes should match the physical orientation of the component:
If the axes are rotated relative to what you expect, adjust the orientation values in the frame configuration. The details panel shows the orientation as an orientation vector (x, y, z, theta in degrees).
If the component is a depth camera, enable its point cloud in the settings panel. The point cloud should align with the physical objects in your workspace.
If the point cloud appears shifted or rotated relative to where objects actually are, the camera’s frame offset or orientation is wrong. See Verify point cloud alignment for more on working with point clouds.
Frame calibration is often iterative:
For high-precision applications, use the camera calibration procedure to compute intrinsic parameters before adjusting frame offsets. See Calibrate a camera for motion planning.
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!