An edge controller working on raspberry pi to control toio robots, which receives instructions via socket.io. This repo is based on @Kei18/toio.js-raspi and used in robot demos of SSSP, together with toio-mrmp.
sudo bash ./install.sh
sudo node ./src/edge_controller.js --addr={YOUR HOST PC}.local -k 1 # number of robots
You can find details for parameters with:
sudo node ./src/edge_controller.js --help
Instruction takes the form of JSON that includes:
agent
index of connected toio robots, starting from 0operation
that specifies which function performsparmas
, a list consisting of arguments ofoperation
For example, cube.move(100, 100, 1000)
in toio.js should be sent as follows:
{
agent: 0,
operation: "move",
params: [100, 100, 1000]
}
This software is released under the MIT License, see LICENSE.txt.
Keisuke Okumura is a Ph.D. student at the Tokyo Institute of Technology, interested in controlling multiple moving agents.