Categorygithub.com/kercre123/vic-go
repositorypackage
0.3.1
Repository: https://github.com/kercre123/vic-go.git
Documentation: pkg.go.dev

# README

vic-go

A Go wrapper for poc.vic-hack.

Install example program

On a Linux host machine,

cd ~
git clone https://github.com/kercre123/vic-go
cd vic-go
sudo ./download-deps.sh
./compile.sh
./send.sh vectorip
  • (replace vectorip with Vector's actual IP)

  • This expects the SSH key to be in the user directory (~/ssh_root_key).

  • If you get an error like scp: Connection closed, run ./send.sh with -O like ./send.sh vectorip -O

  • The compile.sh script should give you a good sense of how you would need to compile your own program.

    • A compatible toolchain. Ideally, we would statically compile so we could use the special CPU features of Vector's processor, but this is CGO which makes it difficult. So, we must use a timely toolchain. Newest one that works seems to be Linaro's 5.5.
      • Go works perfectly with old toolchains. It just makes it harder to include stuff like GoCV.
    • librobot.so must be seperate, as that code is written in C++, and CGO only compiles C code.

Running

SSH into your bot,

systemctl stop anki-robot.target
/data/vic-go/main

The default example will show the camera on the LCD, then do some body functions (recieving and transmitting).