> ## Documentation Index
> Fetch the complete documentation index at: https://docs.godrift.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Build manipulator arm in RViz

> Build a manipulator arm simulation and inspect it live in RViz in one prompt

<Frame>
  <video autoPlay controls muted playsInline className="w-full rounded-lg">
    <source src="https://mintcdn.com/drift-84506603/My-2HwYAfLKG3gdb/assets/videos/manipulator-rviz.mp4?fit=max&auto=format&n=My-2HwYAfLKG3gdb&q=85&s=47f80c0d827ab3892a7d8d85e18d60b2" type="video/mp4" data-path="assets/videos/manipulator-rviz.mp4" />
  </video>
</Frame>

## The prompt

```drift theme={null}
create a arm manipulator with 3 joints and an end effector, make the joints look real, and launch it in rviz to visualize
```

That's it. From this single prompt, Drift:

* Generates a URDF with 3 revolute joints, realistic mesh geometry, correct inertia tensors, and collision shapes
* Scaffolds the full ROS2 package structure with `CMakeLists.txt`, `package.xml`, and controller configs
* Builds the workspace with `colcon`
* Launches RViz with the robot model loaded, TF frames configured, and joint state publisher running, ready to visualize immediately

<Frame>
  <img src="https://mintcdn.com/drift-84506603/My-2HwYAfLKG3gdb/assets/images/manipulator-rviz-result.png?fit=max&auto=format&n=My-2HwYAfLKG3gdb&q=85&s=58b89b7cb9f5e902cb50a2a995d5967e" alt="3-joint manipulator arm rendered in RViz with Joint State Publisher sliders" width="2514" height="1334" data-path="assets/images/manipulator-rviz-result.png" />
</Frame>

The Joint State Publisher opens alongside RViz use the sliders to move joint1, joint2, and joint3 and watch the arm update in real time.

## What to look for in the video

* Drift plans and executes every step in sequence: no manual input after the prompt
* The robot appears in RViz with proper joint structure and visual geometry
* The `drift>` prompt is the only interface used: no file editing, no terminal switching, no RViz config touched manually
