MCPcopy Create free account
hub / github.com/LARG/HFO

github.com/LARG/HFO @v0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1 ↗ · + Follow
876 symbols 1,591 edges 177 files 526 documented · 60% updated 3y agov0.1 · 2015-06-14★ 23640 open issues

Browse by type

Functions 676 Types & classes 200
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

RoboCup 2D Half Field Offense

3 on 3 HFO

Half Field Offense in RoboCup 2D Soccer is a subtask in RoboCup simulated soccer, modeling a situation in which the offense of one team has to get past the defense of the opposition in order to shoot goals. This repository offers the ability to quickly and easily interface your learning agent with the HFO domain.

Dependencies

  • rcssserver-15.2.2
  • If configure fails to detect boost libraries, set the configure flag --with-boost-libdir=your_boost_path
  • If make encounters lex errors, ensure you have bison 2.7.1 installed.
  • Only run single-threaded make. Multi-threaded make (eg make -j4) fails.
  • librcsc-4.1.0
  • soccerwindow2-5.1.0 (Optional)
  • If -laudio is not found during make, it can be safely removed from the link command.

Install

  1. Edit the LIBRCSC_INCLUDE/LIBRCSC_LINK variables in CMakeLists.txt to point to your librcsc include/lib directories.
  2. cmake .
  3. make

Patch rcssserver

By default if your agent takes longer then two seconds to select an action it will be disconnected from the server. To enable longer wait times, apply the following patch and rebuild your rcssserver:

patch your_path/rcssserver-15.2.2/src/stadium.cpp < stadium.patch

Example Agents

Example C++ and Python agents are provided in the example directory.

Run

To start the HFO server run: ./bin/start.py then start an example agent: ./example/hfo_example_agent or start them both at the same time:

(./bin/start.py &) && ./example/hfo_example_agent

Documentation

The state and action spaces provided by the HFO domain are documented in the manual.

Core symbols most depended-on inside this repo

Shape

Method 646
Class 193
Function 30
Enum 7

Languages

C++90%
Python10%

Modules by API surface

bin/Trainer.py59 symbols
src/sample_communication.cpp39 symbols
src/chain_action/field_analyzer.cpp28 symbols
src/agent.cpp27 symbols
src/chain_action/strict_check_pass_generator.cpp23 symbols
src/feature_extractor.cpp19 symbols
src/sample_player.cpp17 symbols
src/chain_action/predict_state.h17 symbols
src/strategy.cpp16 symbols
src/sample_coach.cpp16 symbols
src/chain_action/cooperative_action.h16 symbols
src/chain_action/cooperative_action.cpp15 symbols

For agents

$ claude mcp add HFO \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page