NorthernStars Mixed-Reality Framework
MR-Framework & Example AI:
This project is maintained by NorthernStars
MR-FWNS contains a library called bot_mrlib to use basic fucntions to calculate positions and generating simple movements. The library could be used to implement basic AI behaviour such as getting middle of a goal, moving towards a specific point on the field and so on.
To use the library simply include the file bot_mrlib.jar into your project. The library includes several classes with static functions you can use. Every class represents a different problem type that the included function are solving.
This is an enum to define different types of player on the field.
A player could be an TeamMate
, Opponent
.
The enum is used to search for different types of players.
Contains several functions to generate a kick action.
Mainly used to kick to a ReferencePoint
, FellowPlayer
or into a specific direction.
The class could also be used to kick to the nearest player.
The MoveLib
class contains functions to generate movement actions.
For example running or turning around to a BallPosition
or ReferencePoint
.
It also includes three public static attributes to influence movement behaviour.
Refer to corresponding section in userguide for more details.
This class offers functions to get lists if several types of players or checking dependencies with other players. For example calculating if an enemy is around the bot or getting the distance between two players.
The PositionLib includes function to calculate different positions like the middle of a goal or to check if a
BallPosition
is in a range around an ReferencePoint
.