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
4
You can install Robostack using either Pixi or Mamba.
5
-
=== "Using Pixi"
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.
6
7
## Install Pixi
7
-
[Pixi](https://prefix.dev/docs/pixi/overview) is a package management tool for developers. It allows the developer to install libraries and applications in a reproducible way. Here's how to install it on your system:
8
+
To install `pixi` you can run the following command in your terminal:
8
9
9
-
=== "Linux/macOS"
10
+
=== "Linux & macOS"
10
11
```bash
11
-
# Install using the official installer script
12
12
curl -fsSL https://pixi.sh/install.sh | bash
13
-
14
-
# Verify the installation
15
-
pixi --version
16
13
```
17
14
18
-
=== "Windows"
19
-
```powershell
20
-
# Install using Windows installer script
21
-
irm https://pixi.sh/install.ps1 | iex
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.
22
17
23
-
# Verify the installation
24
-
pixi --version
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
25
23
```
26
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
+
27
38
!!! note
28
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.
29
43
30
-
!!! tip "Prerequisites"
31
-
- Windows users need Visual Studio (2019 or 2022) with C++ support
32
-
- You can download them here: https://docs.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=msvc-160
33
44
34
45
## Install RoboStack using Pixi
35
46
@@ -50,9 +61,7 @@ You can install Robostack using either Pixi or Mamba.
```bash title="Additional dependencies for developing on windows"
224
-
# Install Visual Studio 2017 or 2019 with C++ support
225
-
# see https://docs.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=msvc-160
226
-
227
-
# Install the Visual Studio command prompt - if you use Visual Studio 2019:
228
-
micromamba install vs2019_win-64
224
+
!!! tip "Developing on Windows"
225
+
- Windows users also need Visual Studio (2019 or 2022) with C++ support
226
+
- 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)
229
227
230
-
# Install the Visual Studio command prompt - if you use Visual Studio 2022:
231
-
micromamba install vs2022_win-64
228
+
If you use Visual Studio 2022, you must also install the command line tool (pre-included included for VS2019):
229
+
```
230
+
mamba install vs2022_win-64
232
231
```
233
232
234
-
## Testing installation
235
-
After installation you are able to run `rviz` and other ros tools.
233
+
## Testing installation
234
+
After installation, you should test if you are able to run `rviz` and other ros tools.
235
+
236
+
!!! note
237
+
The ROS environment activation is included automatically. There is no need to add a `source` command in the `~/.bashrc`
238
+
239
+
=== "Pixi"
240
+
**ROS1**
241
+
```bash title="First terminal"
242
+
cd robostack
243
+
pixi shell -e noetic
244
+
roscore
245
+
```
246
+
247
+
```bash title="Second terminal"
248
+
cd robostack
249
+
pixi shell -e noetic
250
+
rviz
251
+
```
236
252
237
-
In the conda environment activation is the ROS activation included. There is no need to add a `source` command in the `~/.bashrc`
253
+
**ROS2**
254
+
```bash title="Terminal"
255
+
cd robostack
256
+
pixi shell -e humble #OR jazzy
257
+
rviz2
258
+
```
259
+
260
+
!!! note
261
+
Remember that Pixi environments can only be activated from within your project directory.
262
+
263
+
## Updating
264
+
Updating all packages in your environment is as easy as:
265
+
266
+
```bash
267
+
cd robostack
268
+
pixi update
269
+
```
270
+
271
+
## Deactivating
272
+
You can just exit the current shell to deactivate the current environment.
273
+
```bash
274
+
exit # or press Ctrl+D
275
+
```
238
276
277
+
=== "Mamba"
239
278
=== "Mamba"
240
279
241
280
**ROS1**
@@ -314,11 +353,11 @@ You can install Robostack using either Pixi or Mamba.
314
353
micromamba deactivate
315
354
```
316
355
317
-
## Why ROS and Conda?
318
-
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.
356
+
## Why ROS and Conda?
357
+
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.
319
358
320
359
## Attribution
321
-
If you use RoboStack in your academic work, please refer to the following paper:
360
+
If you use RoboStack in your academic work, please reference the following paper:
322
361
```bibtex
323
362
@article{FischerRAM2021,
324
363
title={A RoboStack Tutorial: Using the Robot Operating System Alongside the Conda and Jupyter Data Science Ecosystems},
0 commit comments