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
RoboStack is a bundling of ROS for Linux, Mac and Windows using the [conda package manager](https://docs.conda.io/en/latest/), based on top of [conda-forge](https://conda-forge.org/).
4
-
You can install Robostack using either Pixi or Mamba.
5
-
=== "Pixi"
6
-
[Pixi](https://prefix.dev/docs/pixi/overview) is a package management tool for developers that builds upon the conda ecosystem. [Here](https://pixi.sh/dev/switching_from/conda/) is a comparison of Pixi for those already familiar with Conda and Mamba.
7
-
## Install Pixi
8
-
To install `pixi` you can run the following command in your terminal:
9
-
10
-
=== "Linux & macOS"
11
-
```bash
12
-
curl -fsSL https://pixi.sh/install.sh | bash
13
-
```
14
-
15
-
The above invocation will automatically download the latest version of `pixi`, extract it, and move the `pixi` binary to `~/.pixi/bin`.
16
-
If this directory does not already exist, the script will create it.
17
-
18
-
The script will also update your `~/.bashrc` to include `~/.pixi/bin` in your PATH, allowing you to invoke the `pixi` command from anywhere.
19
-
20
-
=== "Windows"
21
-
```bash
22
-
winget install prefix-dev.pixi
23
-
```
24
-
25
-
The above invocation will automatically download the latest version of `pixi`, extract it, and move the `pixi` binary to `LocalAppData/pixi/bin`.
26
-
If this directory does not already exist, the script will create it.
27
-
28
-
The command will also automatically add `LocalAppData/pixi/bin` to your path allowing you to invoke `pixi` from anywhere.
29
-
30
-
!!! warning "PowerShell is not supported"
31
-
At the moment on Windows only the Command Prompt terminal is supported, while Powershell is not supported.
32
-
33
-
!!! tip "Prerequisites"
34
-
- Windows users need Visual Studio (2019 or 2022) with C++ support
35
-
- You can download them here: [https://docs.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=msvc-160](https://docs.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=msvc-160)
36
-
37
-
38
-
!!! note
39
-
After installation, you may need to restart your terminal for the `pixi` command to be available.
40
-
41
-
!!! warning "Do not source the system ROS environment"
42
-
When there is an installation available of ros on the system, in non-conda environments, there will be interference with the environments. As the `PYTHONPATH` set in the setup script conflicts with the conda environment.
43
-
44
-
45
-
## Install RoboStack using Pixi
46
-
47
-
Initialize a new project and navigate to the project directory.
48
-
```shell
49
-
pixi init robostack
50
-
cd robostack
51
-
```
52
-
53
-
Open the created pixi.toml in any text editor and paste the below configuration into the file (removing the configuration created by `pixi init`):
54
-
``` bash title="pixi.toml"
55
-
[project]
56
-
name = "robostack"
57
-
version = "0.1.0"
58
-
description = "Development environment for RoboStack ROS packages"
#You can now start an environment with your desired robostack distribution using one of the below commands (must be in the project directory):
110
-
111
-
#ROS noetic
112
-
pixi shell -e noetic
113
-
114
-
#ROS humble
115
-
pixi shell -e humble
116
-
117
-
#ROS jazzy
118
-
pixi shell -e jazzy
119
-
120
-
```
3
+
RoboStack is a bundling of ROS for Linux, Mac and Windows using the [Conda package manager](https://docs.conda.io/en/latest/), based on top of [conda-forge](https://conda-forge.org/).
4
+
We have also extended support to the [Pixi](https://pixi.sh/latest/) package manager, which builds upon the foundations of, and maintains compatabillity with the Conda ecosystem.
121
5
6
+
[Here](https://pixi.sh/dev/switching_from/conda/) is a comparison of how Pixi works when compared to Conda/Mamba
122
7
8
+
You can install Robostack using either Mamba or pixi.
123
9
=== "Mamba"
124
10
## Install Mamba
125
11
To get started, you'll need a base conda installation. We recommend using the [`miniforge`](https://github.com/conda-forge/miniforge) installer.
@@ -140,7 +26,7 @@ You can install Robostack using either Pixi or Mamba.
140
26
141
27
!!! warning "PowerShell is not supported"
142
28
143
-
At the moment on Windows only the Command Prompt terminal is supported, while Powershell is not supported.
29
+
On Windows, Powershell is not supported, only the Command Prompt terminal is supported.
144
30
145
31
## Installing ros
146
32
=== "Mamba"
@@ -155,7 +41,7 @@ You can install Robostack using either Pixi or Mamba.
155
41
conda config --env --remove channels defaults
156
42
```
157
43
!!! note
158
-
There are different channels depending on the version of ROS that you want to install:
44
+
There are different channels depending on the version of ROS that you want to install, you must only install ONE version of ROS per environment:
@@ -208,7 +94,7 @@ You can install Robostack using either Pixi or Mamba.
208
94
```
209
95
210
96
211
-
## Installatiing tools for local development
97
+
## Installing tools for local development
212
98
=== "Mamba"
213
99
214
100
```bash title="Default tools to help with local development of ROS packages"
@@ -230,50 +116,128 @@ You can install Robostack using either Pixi or Mamba.
230
116
mamba install vs2022_win-64
231
117
```
232
118
233
-
## Testing installation
234
-
After installation, you should test if you are able to run `rviz` and other ros tools.
119
+
=== "Pixi"
120
+
## Install Pixi
121
+
To install `pixi` you can run the following command in your terminal:
235
122
236
-
!!! note
237
-
The ROS environment activation is included automatically. There is no need to add a `source` command in the `~/.bashrc`
123
+
=== "Linux & macOS"
124
+
```bash
125
+
curl -fsSL https://pixi.sh/install.sh | bash
126
+
```
238
127
239
-
=== "Pixi"
240
-
**ROS1**
241
-
```bash title="First terminal"
242
-
cd robostack
243
-
pixi shell -e noetic
244
-
roscore
245
-
```
128
+
The above invocation will automatically download the latest version of `pixi`, extract it, and move the `pixi` binary to `~/.pixi/bin`.
129
+
If this directory does not already exist, the script will create it.
246
130
247
-
```bash title="Second terminal"
248
-
cd robostack
249
-
pixi shell -e noetic
250
-
rviz
251
-
```
131
+
The script will also update your `~/.bashrc` to include `~/.pixi/bin` in your PATH, allowing you to invoke the `pixi` command from anywhere.
132
+
133
+
=== "Windows"
134
+
```bash
135
+
winget install prefix-dev.pixi
136
+
```
137
+
138
+
The above invocation will automatically download the latest version of `pixi`, extract it, and move the `pixi` binary to `LocalAppData/pixi/bin`.
139
+
If this directory does not already exist, the script will create it.
140
+
141
+
The command will also automatically add `LocalAppData/pixi/bin` to your path allowing you to invoke `pixi` from anywhere.
142
+
143
+
!!! warning "PowerShell is not supported"
144
+
On Windows, Powershell is not supported, only the Command Prompt terminal is supported.
145
+
146
+
!!! tip "Prerequisites"
147
+
- Windows users need Visual Studio (2019 or 2022) with C++ support
148
+
- You can download them here: [https://docs.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=msvc-160](https://docs.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=msvc-160)
149
+
- If you wish to use VS2022, you also need to uncomment the indicated line in the below pixi.toml file.
252
150
253
-
**ROS2**
254
-
```bash title="Terminal"
255
-
cd robostack
256
-
pixi shell -e humble #OR jazzy
257
-
rviz2
258
-
```
259
151
260
152
!!! note
261
-
Remember that Pixi environments can only be activated from within your project directory.
153
+
After installation, you may need to restart your terminal for the `pixi` command to be available.
262
154
263
-
## Updating
264
-
Updating all packages in your environment is as easy as:
155
+
!!! warning "Do not source the system ROS environment"
156
+
When there is an installation available of ROS on the system, in non-conda environments, there will be interference with the environments. As the `PYTHONPATH` set in the setup script conflicts with the conda environment.
265
157
266
-
```bash
158
+
159
+
## Install RoboStack using Pixi
160
+
161
+
Initialize a new project and navigate to the project directory.
162
+
```shell
163
+
pixi init robostack
267
164
cd robostack
268
-
pixi update
269
165
```
270
166
271
-
## Deactivating
272
-
You can just exit the current shell to deactivate the current environment.
167
+
Open the newly created pixi.toml in your favourite text editor and paste the below configuration into the file (overwriting the configuration created by `pixi init`):
168
+
``` bash title="pixi.toml"
169
+
[project]
170
+
name = "robostack"
171
+
version = "0.1.0"
172
+
description = "Development environment for RoboStack ROS packages"
#You can now start an environment with your desired robostack distribution using one of the below commands (must be in the project directory):
223
+
224
+
#ROS noetic
225
+
pixi shell -e noetic
226
+
227
+
#ROS humble
228
+
pixi shell -e humble
229
+
230
+
#ROS jazzy
231
+
pixi shell -e jazzy
232
+
275
233
```
276
234
235
+
## Testing installation
236
+
After installation, you should test if you are able to run `rviz` and other ros tools.
237
+
238
+
!!! note "Reminder"
239
+
The ROS environment activation is included automatically. There is no need to add a `source` command in the `~/.bashrc`
240
+
277
241
=== "Mamba"
278
242
=== "Mamba"
279
243
@@ -352,6 +316,46 @@ After installation, you should test if you are able to run `rviz` and other ros
352
316
```bash
353
317
micromamba deactivate
354
318
```
319
+
=== "Pixi"
320
+
321
+
!!! note
322
+
Remember that Pixi environments can only be activated from within your project directory.
323
+
324
+
**ROS1**
325
+
```bash title="First terminal"
326
+
cd robostack
327
+
pixi shell -e noetic
328
+
roscore
329
+
```
330
+
331
+
```bash title="Second terminal"
332
+
cd robostack
333
+
pixi shell -e noetic
334
+
rviz
335
+
```
336
+
337
+
**ROS2**
338
+
```bash title="Terminal"
339
+
cd robostack
340
+
pixi shell -e humble #OR jazzy
341
+
rviz2
342
+
```
343
+
344
+
If you run into any issues or for any frequently asked questions, you can check the [FAQ page](https://robostack.github.io/FAQ.html)
345
+
346
+
## Updating
347
+
Updating all packages in your environment is as easy as:
348
+
349
+
```bash
350
+
cd robostack
351
+
pixi update
352
+
```
353
+
354
+
## Deactivating
355
+
You can just exit the current shell to deactivate the current environment.
356
+
```bash
357
+
exit # or press Ctrl+D
358
+
```
355
359
356
360
## Why ROS and Conda?
357
361
We tightly couple ROS with Conda, a cross-platform, language-agnostic package manager. We provide ROS binaries for Linux, macOS (Intel and Apple Silicon), Windows and ARM (Linux). Installing other recent packages via conda-forge side-by-side works easily, e.g. you can install TensorFlow/PyTorch in the same environment as ROS Noetic without any issues. As no system libraries are used, you can also easily install ROS Noetic on any recent Linux Distribution - including older versions of Ubuntu. As the packages are pre-built, it saves you from compiling from source, which is especially helpful on macOS and Windows. No root access is required, all packages live in your home directory. We have recently written up a paper and blog post with more information.
0 commit comments