Code for my robot, Rizmo.
rizmosudo pro attach <token>, where token comes from here.~/.ssh/id_rsa.pub of dev machine to ~/.ssh/authorized_keys on Jetson Nano.chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keysnumpy versions):
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt install gcc-9 g++-9 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 70
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 90
gcc --version # Verify version is 9.x
g++ --version # Verify version is 9.x
pyenv (instructions).
pyenv updateenv PYTHON_CONFIGURE_OPTS='--enable-optimizations --with-lto' PYTHON_CFLAGS='-march=native -mtune=native' pyenv install --verbose 3.12pyenv global 3.12pactl list short sinks
pactl list short sources
/etc/pulse/default.pa:
set-default-sink <sink-name>
set-default-source <source-name>
jetson_inference library:
python3.6 -m venv --system-site-packages --symlinks venv36. venv36/bin/activate
pip install -U pip
pip install -r requirements.py36.txt
python -c "import jetson_inference"
git clone https://github.com/austin-bowen/rizmo.git
cd rizmo
python -m venv --symlinks venv
. venv/bin/activate
pip install -U pip
pip install -r requirements.<rizmo|potato>.txt
# For sounddevice lib
sudo apt install libportaudio2
# For serial communication
sudo usermod -aG dialout $USER
Setup git:
git config --global user.name "<name>"
git config --global user.email "<email>"
git config credential.helper store
# When trying to push, enter username, and paste personal access token
# generated from here: https://github.com/settings/tokens
Create file rizmo/secrets.py with the following contents:
AWS_ACCESS_KEY_ID: str = ...
AWS_SECRET_ACCESS_KEY: str = ...
OPENAI_API_KEY: str = ...
# Get from: https://developer.wolframalpha.com/access
# Make sure it has "Full Results API" permissions
WOLFRAM_ALPHA_APP_ID: str = ...
Make Rizmo start on system boot:
./bin/install-rizmo-service
sudo systemctl start rizmo
# Install latest Python version
pyenv update
env PYTHON_CONFIGURE_OPTS='--enable-optimizations --with-lto' PYTHON_CFLAGS='-march=native -mtune=native' pyenv install --verbose 3.12
# Create new venv
echo 3.12.x> .python-version
mv venv venv.old
python -m venv --symlinks venv
. venv/bin/activate
python -V
# <verify it is using latest version>
# Install requirements
pip install -U pip
pip install -r requirements.<hostname>.txt
# <verify everything is working>
# Cleanup
rm -r venv.old
pyenv versions
pyenv uninstall <old-version>
410 commits
Python
99.0%
Code for my robot, Rizmo.
rizmosudo pro attach <token>, where token comes from here.~/.ssh/id_rsa.pub of dev machine to ~/.ssh/authorized_keys on Jetson Nano.chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keysnumpy versions):
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt install gcc-9 g++-9 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 70
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 90
gcc --version # Verify version is 9.x
g++ --version # Verify version is 9.x
pyenv (instructions).
pyenv updateenv PYTHON_CONFIGURE_OPTS='--enable-optimizations --with-lto' PYTHON_CFLAGS='-march=native -mtune=native' pyenv install --verbose 3.12pyenv global 3.12pactl list short sinks
pactl list short sources
/etc/pulse/default.pa:
set-default-sink <sink-name>
set-default-source <source-name>
jetson_inference library:
python3.6 -m venv --system-site-packages --symlinks venv36. venv36/bin/activate
pip install -U pip
pip install -r requirements.py36.txt
python -c "import jetson_inference"
git clone https://github.com/austin-bowen/rizmo.git
cd rizmo
python -m venv --symlinks venv
. venv/bin/activate
pip install -U pip
pip install -r requirements.<rizmo|potato>.txt
# For sounddevice lib
sudo apt install libportaudio2
# For serial communication
sudo usermod -aG dialout $USER
Setup git:
git config --global user.name "<name>"
git config --global user.email "<email>"
git config credential.helper store
# When trying to push, enter username, and paste personal access token
# generated from here: https://github.com/settings/tokens
Create file rizmo/secrets.py with the following contents:
AWS_ACCESS_KEY_ID: str = ...
AWS_SECRET_ACCESS_KEY: str = ...
OPENAI_API_KEY: str = ...
# Get from: https://developer.wolframalpha.com/access
# Make sure it has "Full Results API" permissions
WOLFRAM_ALPHA_APP_ID: str = ...
Make Rizmo start on system boot:
./bin/install-rizmo-service
sudo systemctl start rizmo
# Install latest Python version
pyenv update
env PYTHON_CONFIGURE_OPTS='--enable-optimizations --with-lto' PYTHON_CFLAGS='-march=native -mtune=native' pyenv install --verbose 3.12
# Create new venv
echo 3.12.x> .python-version
mv venv venv.old
python -m venv --symlinks venv
. venv/bin/activate
python -V
# <verify it is using latest version>
# Install requirements
pip install -U pip
pip install -r requirements.<hostname>.txt
# <verify everything is working>
# Cleanup
rm -r venv.old
pyenv versions
pyenv uninstall <old-version>
410 commits
Python
99.0%