NVIDIA's Cosmos3 DROID policy demo: placing a banana in a bowl in simulation.
What the model does
The model is a robot policy. It reads 3 camera views, the joint and gripper positions of the arm, and a task instruction. It returns the next 32 actions for the arm.Inputs and output
- Video from 3 cameras, on the tracks
wrist_view,exterior_view_1, andexterior_view_2. - The task, with
set_task_description. For example: “Put the banana in the bowl.” - The robot state, with
set_proprio_json: 7 joint positions in radians and the gripper position. - The executed step, with
set_executed_step_json. Each chunk the model sends has astepnumber. When the robot finishes running a chunk, the client sends thatstepnumber back. This tells the model that the robot moved, so it can predict the next chunk from the new camera views and robot state.
action_prediction message per chunk. step numbers the chunks from 0. action holds 32
rows. Each row has 7 absolute joint-position targets in radians, then 1 gripper command. The rows are for
execution at 15 Hz, so one chunk covers about 2.1 seconds of motion.
When the model predicts
The model and the robot take turns. The model predicts a chunk, the robot runs it, and the client reports the result. Only then does the model predict the next chunk:- First chunk: the model predicts it when it has a valid robot state and a frame from each camera.
- Next chunks: the model predicts each one after it gets the executed step and a new frame from each camera. The new frames show the robot after it moved.
- Reset:
resetstarts the loop again at step0.
Requirements
- A Reactor account with Serve access, remote builds, and capacity for 1 B200 instance.
- The latest Reactor CLI.
- Git, Python 3.12, and uv for the test client.
- An API key for the account that owns the project.
Project structure
The model lives in one folder of the cookbook:models/cosmos3-policy-droid/
reactor.yaml
tells Reactor which class to serve and how to build its image. These are its main settings:
reactor.yaml (main settings)
reactor deploy takes the model through 3 stages:
- Build: the remote build waits for a worker, installs Reactor Runtime and the Python dependencies, and creates the image.
- Promote image: Reactor copies and records the image for deployment. This can take several minutes after build output stops.
- Start model: an instance pulls the image and calls
load(). The model downloads missing source and weights, loads the checkpoint, and runs warmup.
1. Prepare the project
Install the CLI:Terminal
reactor.yaml, set model.name to your account-qualified project name. Replace your-org with your account slug:
reactor.yaml (model name only)
2. Deploy the policy
us-west:
Terminal
us-west with your allocated region. Selecting a region does not grant capacity.
If deployment reports no 'NVIDIA_B200' allocation, check your account capacity or contact Reactor.
The CLI creates the project if needed, builds the image remotely, and deploys 1 B200 instance.
On startup, the model downloads any missing source and weights, loads the weights, and runs warmup.
The CLI waits for the deployment to report ready.
Follow build and promotion progress in the deploy terminal. Once rollout starts, check the instance from another terminal in the model workspace:
Terminal
pulling_image, loading, and ready. Once an instance exists, follow its startup logs:
Terminal
3. Test the deployment
The test client is in therobotics/sim/notebooks folder of the cookbook:
robotics/sim/notebooks/
reactor auth login signs the CLI in for deployment commands. The Python client needs a separate API key.
Create a key in API keys under the account that owns your deployment.
From the model workspace, install the client dependencies. Export the key and project name in the same terminal where you run the client:
Terminal
REACTOR_MODEL identifies the project for the cleanup and log commands below. Sessions use production by default.
Set the same project name in
first_cosmos_actions.py
by replacing reactor/cosmos-nano-policy-droid:
first_cosmos_actions.py (session setup)
Terminal
0 holds a (32, 8) array of finite values. Then it prints the shape, the first action,
and the time from request to reply, and closes the session:
Expected output
What the client sends
The script connects the 3 camera tracks and subscribes toaction_prediction.
It then sends a task, synthetic camera frames, and sample joint and gripper positions:
first_cosmos_actions.py (simplified)
ReactorSession publishes the frames at the configured 15 fps. encode_proprio() formats the robot state as JSON.
proprio_json contains a JSON string. Decoded, the state sent by this script looks like this:
Robot state inside proprio_json
encode_proprio() creates this structure and serializes it for the command.
Check the response
The script waits for the firstaction_prediction message, checks it, and prints it:
first_cosmos_actions.py (simplified)
step identifies the chunk. action holds 32 rows. Each row has 7 absolute joint-position targets and 1 gripper value.
What gets validated
The model checks whether it has the inputs needed to predict. The client test checks the returned message:
Passing the test confirms the message format and the first prediction. Connect a simulator runs the
full feedback loop. Before you execute actions on hardware, check them against the joint, motion, and gripper limits of
the robot.
4. Stop the deployment
Closing the client leaves the GPU instance running. Stop it from the same directory:Terminal
Troubleshoot deployment or client errors
Troubleshoot deployment or client errors
From the client directory, inspect startup or prediction errors:
Terminal
Understand the feedback loop
Request another action chunk (optional)
Request another action chunk (optional)
The test stops after one chunk. In a robot integration, request the next chunk after executing actions:
- Send updated robot state with
set_proprio_json. - Send the
stepof the chunk you executed withset_executed_step_json. - Keep all 3 camera tracks publishing fresh frames after that.
Change the task
In a connected session, sendset_task_description to change the instruction:
Client (before closing the session)
Connect a simulator
The first action chunk confirms that your deployed policy can receive observations and return actions. The next step is to close the loop: execute those actions in a simulation, send the resulting camera views and robot state back to the model, and request the next chunk. The Cosmos DROID simulator provides that loop. Follow its setup instructions for Isaac Sim and an RTX-class GPU. If you scaled the deployment to zero, start it again before connecting:--model "$REACTOR_MODEL" to the simulator gateway to use your deployment.
Start with a task, watch the robot respond, and try a new instruction in the same session.
Run the policy in simulation
Connect the simulator to your model and test the full observation → action → feedback loop.