Skip to content

kercre123/victor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

victor

Welcome to victor. This is the home of the Anki Vector robot's source code. Original README: README-orig.md

Check the wiki for more information about the leak, what we can do with this, and general Vector info.

Warning

You CANNOT currently deploy this to a regular, non-unlocked bot.

Changes

Building (Linux)

  • Prereqs: Make sure you have docker and git-lfs installed.
  1. Clone the repo and cd into it:
cd ~
git clone --recurse-submodules https://github.com/kercre123/victor -b snowboy
cd victor
git lfs install
git lfs pull
  1. Make sure you can run Docker as a normal user. This will probably involve:
sudo groupadd docker
sudo gpasswd -a $USER docker
newgrp docker
sudo chown root:docker /var/run/docker.sock
sudo chmod 660 /var/run/docker.sock
  1. Run the build script:
cd ~/victor
./wire/build-d.sh
  1. It should just work! The output will be in ./_build/vicos/Release/

Building (Intel macOS)

  • Prereqs: Make sure you have brew installed.
    • Then: brew install pyenv git-lfs ccache
  1. Clone the repo and cd into it:
cd ~
git clone --recurse-submodules https://github.com/kercre123/victor -b snowboy
cd victor
git lfs install
git lfs pull
  1. Set up Python 2:
pyenv install 2.7.18
pyenv init
  • Add the following to both ~/.zshrc and ~/.zprofile:
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv shell 2.7.18
  1. Run the build script:
cd ~/victor
./wire/build.sh
  1. It should just work! The output will be in ./_build/vicos/Release/

Deploying

  1. Echo your robot's IP address to robot_ip.txt (in the root of the victor repo):
echo 192.168.1.150 > robot_ip.txt
  1. Copy your bot's SSH key to a file called robot_sshkey in the root of this repo.

  2. Run:

# Linux
./wire/deploy-d.sh

# macOS
./wire/deploy.sh