Previous
Mobile Base with Sensors
This setup combines a mobile base with a mounted arm, gripper, and sensors. The arm is a child of the base, so the entire arm subtree (including the gripper and any wrist-mounted camera) moves with the base as it navigates. Navigation sensors like a front camera and LIDAR are also mounted on the base.
world
└── my-base
├── my-arm (mounted on base)
│ ├── my-gripper
│ └── wrist-camera
├── nav-camera (front-facing)
└── my-lidar
The base is a child of the world frame. The arm is a child of the base, and the gripper and wrist camera are children of the arm. Navigation sensors are children of the base. When the base moves, every frame in the tree moves with it. When the arm moves, only the arm, gripper, and wrist camera frames update.
For a mobile base, the world frame origin is typically the center of the base. All component positions are defined relative to this center point.
In the Viam app, navigate to your machine and click the CONFIGURE tab. Find your base component and click + Add frame.
{
"parent": "world",
"translation": { "x": 0, "y": 0, "z": 0 },
"orientation": {
"type": "ov_degrees",
"value": { "x": 0, "y": 0, "z": 1, "th": 0 }
}
}
Click Save.
Find your arm component and click + Add frame. The arm’s parent is the base, not the world frame.
Measure the offset from the center of the base to the arm’s mounting point. For an arm mounted 100 mm forward of center and 200 mm above the base center:
{
"parent": "my-base",
"translation": { "x": 0, "y": 100, "z": 200 },
"orientation": {
"type": "ov_degrees",
"value": { "x": 0, "y": 0, "z": 1, "th": 0 }
}
}
If the arm is mounted off-center to one side, include an x offset as well.
Click Save.
Both the gripper and wrist camera are children of the arm.
Gripper (attached directly to the end effector):
{
"parent": "my-arm",
"translation": { "x": 0, "y": 0, "z": 0 },
"orientation": {
"type": "ov_degrees",
"value": { "x": 0, "y": 0, "z": 1, "th": 0 }
}
}
If there is an adapter plate between the arm and gripper, set the z translation to the plate height.
Wrist camera (mounted on the arm, offset from the end effector):
{
"parent": "my-arm",
"translation": { "x": 0, "y": 30, "z": 60 },
"orientation": {
"type": "ov_degrees",
"value": { "x": 0, "y": 0, "z": 1, "th": 0 }
}
}
Adjust the translation values to match the camera’s actual mounting position relative to the arm’s end effector. If the camera is tilted, add a rotation. For example, tilted 30 degrees downward:
{
"orientation": {
"type": "ov_degrees",
"value": { "x": 1, "y": 0, "z": 0, "th": -30 }
}
}
Click Save after adding each frame.
Navigation sensors are children of the base, not the arm.
Front-facing navigation camera:
{
"parent": "my-base",
"translation": { "x": 0, "y": 200, "z": 120 },
"orientation": {
"type": "ov_degrees",
"value": { "x": 0, "y": 0, "z": 1, "th": 0 }
}
}
LIDAR mounted on top of the base:
{
"parent": "my-base",
"translation": { "x": 0, "y": 0, "z": 150 },
"orientation": {
"type": "ov_degrees",
"value": { "x": 0, "y": 0, "z": 1, "th": 0 }
}
}
Adjust translation values to match your sensor mounting positions.
Click Save after adding each frame.
Use TransformPose to verify the full chain of transforms.
For example, transform the wrist camera’s origin from the camera frame to the world frame.
The result should account for the base-to-arm offset, the arm’s current joint positions, and the arm-to-camera offset.
For details on the TransformPose API, see Frame System Concepts.
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!