vic-go

command module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 11 Imported by: 0

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).

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL