Giter Club home page Giter Club logo

ssl-simulation-controller's Introduction

CircleCI Go Report Card Go Doc Release

ssl-simulation-controller

A controller for SSL simulation tournaments.

Behaviors

Manual ball placement

The ball is manually moved to the designated target position, if the game is in HALT for at least 0.5s.

Maintain robot count

Adds and removes robots, if the robot count does not match the max robot count in the referee message:

  • The robot substitution rules are applied as far as possible.
  • Robots are only added or removed, if the game is either in HALT, or the ball is not within 2m to the halfway line (see robot substitution rules).
  • Robots are put near the halfway line at a free position.
  • Robots nearest to either crossing of halfway line and touch lines are removed first.

Apply Geometry

The geometry for division A or B is applied, based on the max number of robots in the referee message. The geometry is currently hard-coded into the binary. It will only be applied in NORMAL_FIRST_HALF_PRE stage.

Apply robot specs

Send the robot specs for the respective teams to the simulator:

  • The robot specs are taken from a config file specified via command line. There is also an example config in config/robot-specs.yaml.
  • The team names are taken from the referee message and must match exactly with the keys in the config file.
  • Robot specs are only applied during pre-stages.
  • The simulator will receive equal robot specs for all 16 robots in one message.
  • Robot specs are only send once on startup and when a team changes. The simulator-controller will not resend the specs after a simulator crash and must be restarted, or the team name must be switched to force resending the specs.

Usage

If you just want to use this app, simply download the latest release binary. The binary is self-contained. No dependencies are required.

You can also use pre-build docker images:

docker pull robocupssl/ssl-simulation-controller
docker run --network host robocupssl/ssl-simulation-controller

Development

Requirements

You need to install following dependencies first:

  • Go >= 1.14

Prepare

Download and install to GOPATH:

go get -u github.com/RoboCup-SSL/ssl-simulation-controller/...

Switch to project root directory

cd $GOPATH/src/github.com/RoboCup-SSL/ssl-simulation-controller/

Run

Run the backend:

go run cmd/ssl-simulation-controller/main.go

ssl-simulation-controller's People

Contributors

g3force avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

bebetocf

ssl-simulation-controller's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

circleci
.circleci/config.yml
  • cimg/go 1.22
  • cimg/go 1.22
  • cimg/base 2024.06
dockerfile
Dockerfile
  • golang 1.22-alpine
  • alpine 3.20
gomod
go.mod
  • go 1.21
  • google.golang.org/protobuf v1.34.2
  • gopkg.in/yaml.v3 v3.0.1

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.