Skip to content
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

Fix setuptools installation #17

Merged
Show file tree
Hide file tree
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
57 changes: 32 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ Main changes compared to Mini Pupper original basic Ubuntu version repository:

### Flash Ubuntu preinstalled image to the SD card.

* Download ubuntu-22.04.1-preinstalled-desktop-arm64+raspi.img from the link, https://ubuntu.com/download/raspberry-pi , or
* Download ubuntu-20.04.3-preinstalled-server-arm64+raspi.img.xz from [the official website](https://old-releases.ubuntu.com/releases/focal/) or [our Google drive link](https://drive.google.com/drive/folders/12FDFbZzO61Euh8pJI9oCxN-eLVm5zjyi).

Choose one of the following 2 OS. Note that ROS 1 Noetic only supports Ubuntu 20.04.

* Download `ubuntu-22.04.2-preinstalled-desktop-arm64+raspi.img.xz` from the official website https://ubuntu.com/download/raspberry-pi
* Download `ubuntu-20.04.5-preinstalled-server-arm64+raspi.img.xz` from [the official website](https://cdimage.ubuntu.com/ubuntu/releases/20.04/release/) or [our Google drive link](https://drive.google.com/drive/folders/12FDFbZzO61Euh8pJI9oCxN-eLVm5zjyi)


### Boot Raspberry Pi

* Romote connect Pi by Ethernet or WiFi, please refer to [Find the Current IP Address of a Raspberry Pi](https://raspberrytips.com/find-current-ip-raspberry-pi/)
Expand All @@ -60,52 +63,56 @@ If you prefer to ubuntu 20 server version, you can follow the below steps to ins
* Power on.
* Follow the prompts to change the password from ubuntu to mangdang, and then install desktop. Before installation, please make sure that raspberry pi is plugged into the network cable to access the Internet.

```
$sudo apt install ubuntu-desktop
```sh
sudo apt install ubuntu-desktop
# waiting for dozens of minutes depend on your internet spped for the install
# After installing the desktop, start the desktop.
# You only need to reboot it one time. The system will enter the desktop system by default next time.
$startx
startx
```

## Install this repository
## Manual installation

```
$ sudo apt install -y git
$ mkdir QuadrupedRobot
$ cd QuadrupedRobot
$ git clone https://github.com/mangdangroboticsclub/mini_pupper_bsp.git
$ cd mini_pupper_bsp
$ ./install.sh
$ sudo reboot
Manual installation is an advanced method. It is strongly recommended to use [the install script](https://github.com/mangdangroboticsclub/mini_pupper).

### Install this repository

```sh
sudo apt update
sudo apt upgrade
sudo apt install -y git python3-pip
cd ~
git clone https://github.com/mangdangroboticsclub/mini_pupper_bsp.git
cd mini_pupper_bsp
./install.sh
sudo reboot
```

2nd boot

```
$ cd QuadrupedRobot/mini_pupper_bsp
$./test.sh
cd ~/mini_pupper_bsp
./test.sh
```

## Calibration
### Calibration

There are two options how to calibrate mini pupper. You can either use a GUI or a CLI.

### Using the GUI
#### Using the GUI

```
# this is a command
$ calibrate
```sh
calibrate # this is a command
```

Running this command will bring up a GUI to calibrate mini pupper. For headless installation use X forwarding

### Using the CLI
#### Using the CLI

Run the command:

```
$ cli-calibrate
```sh
cli-calibrate # this is a command
```

and follow the instructions.
Expand Down
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ sudo sed -i "s|BASEDIR|$BASEDIR|" /usr/bin/battery_monitor
cd /tmp
wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
sudo pip install setuptools==58.2.0 # temporary fix https://github.com/mangdangroboticsclub/mini_pupper_ros/pull/45#discussion_r1104759104

### Install LCD driver
sudo apt install -y python3-dev
Expand Down