Skip to content

Correct and improve pixi documentation #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 62 additions & 4 deletions docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ You can install Robostack using either Mamba or Pixi. We recommend using Pixi fo

The command will also automatically add `LocalAppData/pixi/bin` to your path allowing you to invoke `pixi` from anywhere.

!!! warning "PowerShell is not supported"
On Windows, Powershell is not supported, only the Command Prompt terminal is supported.

!!! tip "Prerequisites"
- Windows users need Visual Studio (2019 or 2022) with C++ support
- 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)
Expand Down Expand Up @@ -172,6 +169,22 @@ You can install Robostack using either Mamba or Pixi. We recommend using Pixi fo
channels = ["https://fast.prefix.dev/conda-forge"]
platforms = ["linux-64", "win-64", "osx-64", "osx-arm64", "linux-aarch64"]

# This will automatically activate the ros workspace on activation
[target.win-64.activation]
scripts = ["install/setup.bat"]

[target.linux-64.activation]
scripts = ["install/setup.bash"]

[target.linux-aarch64.activation]
scripts = ["install/setup.bash"]

[target.osx-64.activation]
scripts = ["install/setup.bash"]

[target.osx-arm64.activation]
scripts = ["install/setup.bash"]

Comment on lines +182 to +187
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have mac so not sure what the activation scripts are, assuming it is the bash scripts ...

[target.win-64.dependencies]
# vs2022_win-64 = "*" # Uncomment if using Visual Studio 2022

Expand Down Expand Up @@ -200,6 +213,16 @@ You can install Robostack using either Mamba or Pixi. We recommend using Pixi fo
catkin_tools = "*"
rosdep = "*"

# To build you can use - pixi run -e noetic build <Any other temporary args>
[feature.noetic.target.win-64.tasks]
build = "colcon build --merge-install --cmake-args -DPython_FIND_VIRTUALENV=ONLY -DPython3_FIND_VIRTUALENV=ONLY"

[feature.noetic.target.linux-64.tasks]
build = "colcon build --symlink-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DPython_FIND_VIRTUALENV=ONLY -DPython3_FIND_VIRTUALENV=ONLY"

[feature.noetic.target.linux-aarch64.tasks]
build = "colcon build --symlink-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DPython_FIND_VIRTUALENV=ONLY -DPython3_FIND_VIRTUALENV=ONLY"

# humble
[feature.humble]
channels = ["https://prefix.dev/robostack-humble"]
Expand All @@ -209,6 +232,16 @@ You can install Robostack using either Mamba or Pixi. We recommend using Pixi fo
colcon-common-extensions = "*"
rosdep = "*"

# To build you can use - pixi run -e humble build <Any other temporary args>
[feature.humble.target.win-64.tasks]
build = "colcon build --merge-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DPython_FIND_VIRTUALENV=ONLY -DPython3_FIND_VIRTUALENV=ONLY"

[feature.humble.target.linux-64.tasks]
build = "colcon build --symlink-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DPython_FIND_VIRTUALENV=ONLY -DPython3_FIND_VIRTUALENV=ONLY"

[feature.humble.target.linux-aarch64.tasks]
build = "colcon build --symlink-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DPython_FIND_VIRTUALENV=ONLY -DPython3_FIND_VIRTUALENV=ONLY"

# jazzy
[feature.jazzy]
channels = ["https://prefix.dev/robostack-jazzy"]
Expand All @@ -217,6 +250,16 @@ You can install Robostack using either Mamba or Pixi. We recommend using Pixi fo
ros-jazzy-desktop = "*"
colcon-common-extensions = "*"
rosdep = "*"

# To build you can use - pixi run -e jazzy build <Any other temporary args>
[feature.jazzy.target.win-64.tasks]
build = "colcon build --merge-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DPython_FIND_VIRTUALENV=ONLY -DPython3_FIND_VIRTUALENV=ONLY"

[feature.jazzy.target.linux-64.tasks]
build = "colcon build --symlink-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DPython_FIND_VIRTUALENV=ONLY -DPython3_FIND_VIRTUALENV=ONLY"

[feature.jazzy.target.linux-aarch64.tasks]
build = "colcon build --symlink-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DPython_FIND_VIRTUALENV=ONLY -DPython3_FIND_VIRTUALENV=ONLY"
```
```bash
# Save and exit pixi.toml
Expand Down Expand Up @@ -320,15 +363,25 @@ After installation, you should test if you are able to run `rviz`/`rviz2` and ot
=== "Pixi"

!!! note
Remember that Pixi environments can only be activated from within your project directory.
Remember if trying to activate the pixi from outside the project directory, provide the path to the pixi.toml with `--manifest-path`.

**ROS1**
```bash title="First terminal"
cd robostack
pixi run -e noetic roscore
```
alternatively,
```bash title="First terminal"
cd robostack
pixi shell -e noetic
roscore
```

```bash title="Second terminal"
cd robostack
pixi run -e noetic rviz
```
alternatively,
```bash title="Second terminal"
cd robostack
pixi shell -e noetic
Expand All @@ -338,6 +391,11 @@ After installation, you should test if you are able to run `rviz`/`rviz2` and ot
**ROS2**
```bash title="Terminal"
cd robostack
pixi run -e humble rviz2 # OR jazzy
```
alternatively,
```bash title="Terminal"
cd robostack
pixi shell -e humble # OR jazzy
rviz2
```
Expand Down