You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: workflows/robotic_ultrasound/scripts/policy_runner/README.md
+54-47Lines changed: 54 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,68 +7,68 @@ This script allows running different policy models (currently PI0 and GR00T N1)
7
7
***PI0**: Based on the [openpi](https://github.com/Physical-Intelligence/openpi) library.
8
8
***GR00T N1**: NVIDIA's foundation model for humanoid robots. Refer to [NVIDIA Isaac GR00T](https://github.com/NVIDIA/Isaac-GR00T) for more information.
9
9
10
-
## Run PI0 Policy with DDS communication
10
+
## Run Policy with DDS communication
11
11
12
-
### Prepare Model Weights and USD Assets and Install Dependencies
12
+
### Dependencies
13
13
14
-
Please refer to the [Environment Setup](../../README.md#environment-setup) instructions specific to the **PI0** policy.
14
+
You may need to install the dependencies for either pi0 (default installed) or gr00tn1.
15
15
16
-
### Ensure the PYTHONPATH Is Set
17
-
18
-
Please refer to the [Environment Setup - Set environment variables before running the scripts](../../README.md#set-environment-variables-before-running-the-scripts) instructions.
19
-
20
-
### Run Policy
21
-
22
-
Please move to the current [`policy_runner` folder](./) and execute:
# Install the dependencies for PI0, default installed
18
+
bash tools/env_setup_robot_us.sh --policy pi0
19
+
# Install the dependencies for GR00T N1
20
+
bash tools/env_setup_robot_us.sh --policy gr00tn1
27
21
```
22
+
The environment for pi0 and gr00tn1 has conflicts with each other. You can only install one of them at a time.
28
23
29
-
##Run GR00T N1 Policy with DDS communication
24
+
### Prepare Model Weights
30
25
31
-
### Prepare Model Weights and Dependencies
26
+
The model weights will be downloaded automatically when you [run the policy runner](#run-policy).
32
27
33
-
Please refer to the [Environment Setup](../../README.md#environment-setup) instructions, ensuring you use the `--policy gr00tn1` option when running `tools/env_setup_robot_us.sh` to install GR00T N1 dependencies.
34
-
For acquiring model weights and further details, consult the official [NVIDIA Isaac GR00T Installation Guide](https://github.com/NVIDIA/Isaac-GR00T?tab=readme-ov-file#installation-guide).
35
-
Ensure the environment where you run `run_policy.py` has the GR00 TN1 dependencies installed.
28
+
Optionally, you can also download the weights manually by running the following command:
Please refer to the [Environment Setup - Set environment variables before running the scripts](../../README.md#set-environment-variables-before-running-the-scripts) instructions.
|`--ckpt_path`| Checkpoint path for the policy model. | Uses downloaded assets | Both |
58
-
|`--task_description`| Task description text prompt for the policy. |`Perform a liver ultrasound.`| Both |
59
-
|`--chunk_length`| Length of the action chunk inferred by the policy per inference step. | 50 | Both |
60
-
|`--repo_id`| LeRobot repo ID for dataset normalization (used for PI0). |`i4h/sim_liver_scan`| PI0 |
61
-
|`--data_config`| Data config name (used for GR00T N1). |`single_panda_us`| GR00T N1 |
62
-
|`--embodiment_tag`| The embodiment tag for the model (used for GR00T N1). |`new_embodiment`| GR00T N1 |
63
-
|`--rti_license_file`| Path to the RTI license file. | Uses env `RTI_LICENSE_FILE`| Both (DDS)|
64
-
|`--domain_id`| Domain ID for DDS communication. | 0 | Both (DDS)|
65
-
|`--height`| Input image height for cameras. | 224 | Both (DDS)|
66
-
|`--width`| Input image width for cameras. | 224 | Both (DDS)|
67
-
|`--topic_in_room_camera`| Topic name to consume room camera RGB data. |`topic_room_camera_data_rgb`| Both (DDS)|
68
-
|`--topic_in_wrist_camera`| Topic name to consume wrist camera RGB data. |`topic_wrist_camera_data_rgb`| Both (DDS)|
69
-
|`--topic_in_franka_pos`| Topic name to consume Franka position data. |`topic_franka_info`| Both (DDS)|
70
-
|`--topic_out`| Topic name to publish generated Franka actions. |`topic_franka_ctrl`| Both (DDS)|
71
-
|`--verbose`| Whether to print DDS communication logs. | False | Both (DDS)|
46
+
**Expected Behavior:**
47
+
- Terminal messages will confirm that the policy has loaded and is running.
48
+
- The policy will predict actions and publish them to DDS topics when image feeds are available.
49
+
- When no image feeds are available on DDS, the model will not predict any actions.
50
+
- You can run the [Simulation with Data Distribution Service (DDS)](../simulation/environments/README.md) to produce the data for the policy to consume in IsaacSim.
51
+
52
+
### Command Line Arguments
53
+
54
+
| Argument | Type | Default | Description | Policy Support |
0 commit comments