Skip to content

Commit

Permalink
Update raspberry pi instructions for bookworm, which now requires venv
Browse files Browse the repository at this point in the history
  • Loading branch information
jpieper committed Jan 3, 2024
1 parent 56c5523 commit 1ba9e68
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions docs/raspberry_pi.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
The non-gui moteus library will work on a Raspberry Pi out of the box:

```
pip3 install moteus
python -m venv --system-site-packages moteus-venv
source moteus-venv/bin/activate
pip install moteus
```

However, neither pypi nor piwheels has a functioning pyside2 library,
Expand All @@ -13,10 +15,24 @@ following:

```
sudo apt install python3-pyside2* python3-serial python3-can python3-matplotlib python3-qtconsole
sudo pip3 install asyncqt importlib_metadata pyelftools
sudo pip3 install --no-deps moteus moteus_gui
source moteus-venv/bin/activate
pip install asyncqt importlib_metadata pyelftools
pip install --no-deps moteus moteus_gui
```

# Running moteus_tool and tview #

pi3hat specific options for these tools are documented at https://github.com/mjbots/pi3hat/blob/master/docs/reference.md#usage-with-client-side-tools

Note that to use the pi3hat, all python scripts must be run as root.
Using sudo is one mechanism to do so:

```
sudo apt install libraspberrypi-dev
source moteus-venv/bin/active
pip install moteus-pi3hat
sudo moteus-venv/bin/tview
```

0 comments on commit 1ba9e68

Please sign in to comment.