Install the following tools:
- Install Pixi: https://pixi.prefix.dev/latest/installation/.
- On Windows, to use pixi in Git Bash, add
export PATH="$HOME/.pixi/bin:$PATH"to~/.bashrc, then runsource ~/.bashrc. - Verify installation:
pixi --version
- On Windows, to use pixi in Git Bash, add
- Rust and cargo are installed via pixi (included in
pixi.toml).
On regular Ubuntu (24.04) or Windows (Windows 11) machine, install the pixi environment (includes all Python dependencies). On Windows, Git Bash is tested.
# From repository root
pixi installOptionally, verify the installation by running unit tests:
pixi run test-python-example
pixi run test-demo
pixi run test-ahcontrolWindows only (Rust / test-ahcontrol): pixi.toml adds vs2022_win-64 for win-64, which activates the MSVC toolchain (via vcvars64) when you run pixi shell or pixi run. You must have Visual Studio or Build Tools installed first (see Appendix). If you get a linker error (e.g. "extra operand", "link.exe not found"), install Build Tools per the Appendix, then run pixi install to refresh the environment. As a fallback, run pixi run test-ahcontrol from "x64 Native Tools Command Prompt for VS" (Start menu).
Raspberry Pi support is experimental and focuses on the haptic/tactile demos.
On Raspberry Pi OS (Debian-based), install system GPIO dependencies first:
sudo apt-get update
sudo apt-get install liblgpio-devThen create the pixi environment from the repository root:
pixi installYou can now run the haptic/tactile sensor test (from the repo root):
pixi run python -m amazinghand_sensors.haptic_testTested on Ubuntu 24.04 and Windows 11 (Git Bash).
Start the dora daemon using pixi:
pixi run dora upThis runs AHSimulation/examples/finger_angle_control.py and streams targets into the MuJoCo viewer nodes. From the repository root:
pixi run dora-build-angle-simu # once
pixi run dora-run-angle-simuNote: Dora/MuJoCo demos are tested on Linux and Windows.
Start an interactive shell in the pixi environment:
pixi shellSee Demo/README.md. On Linux, add your user to the dialout group for serial port access. On Windows, edit the dataflow YAML for the COM port and AHControl.exe path.
Required for building the Rust crate (test-ahcontrol) on Windows. The vs2022_win-64 package in pixi.toml activates this toolchain automatically; you must install Build Tools first. Download and install:
-
Download the Build Tools installer from: https://visualstudio.microsoft.com/visual-cpp-build-tools (or direct: https://aka.ms/vs/17/release/vs_BuildTools.exe).
-
Run
vs_BuildTools.exe. If the Visual Studio Installer is not installed, it will install first. -
In the installer, select the workload "Desktop development with C++". This includes the MSVC compiler, linker (
link.exe), and Windows SDK. -
On the right-hand "Installation details" panel, ensure "MSVC v143 - VS 2022 C++ x64/x86 build tools" and "Windows 10/11 SDK" (or similar) are checked. Click Install.
-
After installation, run
pixi install(if needed) andpixi run test-ahcontrol. Thevs2022_win-64package locates your install via vswhere and runs vcvars64 so the correct linker is on PATH.