Skip to content

Commit 90bab3a

Browse files
committed
move to pixi
1 parent a6bdf18 commit 90bab3a

3 files changed

Lines changed: 14714 additions & 10 deletions

File tree

README.md

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,33 +43,47 @@ The solver is wrapped by the `MPCControllerWrapper` class, and all the settings
4343
You can switch between two solvers, Primal-dual LQR of GPU-FDDP. Just change the flang in the config `solver_mode = "fddp" or "primal_dual`.
4444
## Installation
4545

46+
### Prerequisites
47+
- Install [Pixi](https://pixi.prefix.dev/latest/) - a fast conda package manager
48+
4649
### Clone the repo
4750
```
4851
git clone git@github.com:iit-DLSLab/mpx.git
4952
cd mpx && git submodule update --init --recursive
5053
```
5154

52-
### Set Up Conda Environment
53-
Create and activate the conda environment:
55+
### Set Up Environment with Pixi
56+
Pixi will automatically manage your environment with all dependencies including ROS 2 Humble, JAX, and build tools:
57+
58+
```bash
59+
# Initialize the Pixi environment
60+
pixi install
61+
62+
# Activate the environment
63+
pixi shell
5464
```
65+
66+
### Alternative: Traditional Conda Setup (Deprecated)
67+
For reference, the legacy conda setup is:
68+
```bash
5569
conda create -n mpx_env python=3.13 -y
5670
conda activate mpx_env
57-
```
58-
59-
### Install with pip
60-
from the repo main folder
61-
```
6271
pip install -e .
6372
```
6473

6574

6675
## RUN example
67-
```
68-
conda activate mpx_env
76+
```bash
77+
# Using Pixi
78+
pixi run python mpx/examples/mjx_quad.py
79+
80+
# Or activate the environment first
81+
pixi shell
6982
python mpx/examples/mjx_quad.py
70-
## Use the keyboard's arrows to control the robot ##
7183
```
7284

85+
Use the keyboard's arrows to control the robot.
86+
7387
> **Note:**
7488
The first time running the script it can take more than a minute to JIT the solver
7589

0 commit comments

Comments
 (0)