@@ -87,57 +87,67 @@ $ chmod +x Miniconda3-latest-*.sh
87
87
$ ./Miniconda3-latest-*.sh
88
88
```
89
89
```
90
- conda init
90
+ $ conda init
91
91
```
92
92
Close and re-open terminal
93
93
94
94
2 . Install [ mamba] ( https://mamba.readthedocs.io/en/latest/installation/mamba-installation.html ) .
95
95
```
96
- conda install mamba -c conda-forge
96
+ $ conda install mamba -c conda-forge
97
97
```
98
98
99
- I needed to make sure this was setup ( and restart shell after) :
99
+ I needed to setup the shell and restart it :
100
100
```
101
101
$ mamba shell init --shell bash --root-prefix=~/.local/share/mamba
102
102
```
103
103
104
- For some reason on Arch Linux I needed to do this :
104
+ For some reason on Arch Linux I needed to attain more permissions :
105
105
```
106
106
# chown -R duncan:duncan /opt/miniconda3/
107
107
```
108
108
109
109
1 . Install ROS 2 via [ Robostack] ( https://robostack.github.io/GettingStarted.html ) .
110
110
```
111
- mamba create -n ros_env
112
- mamba activate ros_env
113
-
114
- conda config --env --add channels conda-forge
115
- conda config --env --remove channels defaults
116
-
117
- conda config --env --add channels robostack-humble
118
- mamba install ros-humble-desktop
119
-
120
- mamba deactivate
121
- mamba reactivate
111
+ $ mamba create -n lerobot_inference
112
+ $ mamba activate lerobot_inference
113
+
114
+ $ conda config --env --add channels conda-forge
115
+ $ conda config --env --add channels robostack-humble
116
+ $ mamba install ros-humble-desktop
117
+
118
+ $ mamba deactivate
122
119
```
123
120
Make sure you can run ` rviz2 ` .
124
121
```
125
- mamba activate ros_env
126
- rviz2
122
+ $ mamba activate lerobot_inference
123
+ $ rviz2
127
124
```
128
125
129
126
1 . Setup lerobot dependencies:
130
127
131
128
```
132
- cd lerobot
129
+ $ cd lerobot
133
130
134
- mamba install -c conda-forge cmake h5py imageio numba omegaconf opencv \
131
+ $ mamba install -c conda-forge cmake h5py imageio numba omegaconf opencv \
135
132
packaging pymunk pyzmq termcolor pytorch torchvision zarr flask
136
133
137
- pip install datasets deepdiff diffusers draccus==0.10.0 einops gdown gymnasium==0.29.1 \
134
+ $ pip install datasets deepdiff diffusers draccus==0.10.0 einops gdown gymnasium==0.29.1 \
138
135
"huggingface-hub[hf-transfer,cli]" jsonlines av pynput rerun-sdk wandb torchcodec==0.2.1 pyserial
139
136
140
- pip install -e . --no-deps
137
+ $ pip install "numpy<2.3"
138
+
139
+ $ pip install -e . --no-deps
141
140
```
142
141
143
142
143
+ Set the domain ID:
144
+ ```
145
+ $ export ROS_DOMAIN_ID=#
146
+ ```
147
+
148
+ Run the policy:
149
+ ```
150
+ $ python src/lerobot/robots/ihmc_ros_robot/ihmc_ros_robot.py \
151
+ --trained_policy=/path/to/dataset/last/pretrained_model/
152
+ ```
153
+
0 commit comments