This software is released under the GPL. See file gpl.txt for more information. If you use this software please acknowledge it appropriately.
A tutorial is available on YouTube describing the basics of working with the magmaOffenburg source code: https://www.youtube.com/watch?v=_FNaMjJlNfI
Clone the repository into a workspace folder of your choice.
git clone <address from github>
- Open Eclipse using the workspace folder (not the RoboCup3D folder but the one above).
- In Project Explorer View right click -> Import... -> Choose Maven -> Existing Maven Projects... Next
- Select RoboCup3D as Root Directory
- Check that all projects are selected -> Finish.
- (optional) In Project Explorer View (not the package explorer!) click on View Menu (triangle) -> Choose Projects Presentation -> hierarchical
First make sure that an instance of rcssserver3d is running on your local machine. There is already an existing launch target:
- Chose Menu->Run::RunConfigurations...
- Select Java Application->RoboCup Client (8)
- Press Run Button
To change the player or robot type, adjust the command line parameters:
--playerid=8 --factory=NaoToe
For a list of all command line parameters see class RoboCupClient
.
Make a deployment:
- Chose Menu->Run::RunConfigurations...
- Select Maven Build->Package magmaagent
- Press Run Button
This will create a folder target/magmaagent. Copy the folder with subfolders to the server you want to run your team.
- Start IntelliJ to get to the welcome screen
- (optional) If a project is already open: Chose "File" -> "Close Project"
- In the welcome screen select "Open" in the "Project" category
- Select the RoboCup3D folder, press "OK" and then wait a few seconds for IntelliJ to initialize the project
First make sure that an instance of rcssserver3d is running on your local machine.
- Chose "Run" -> "Edit Configurations..."
- Press the plus button ("Add New Configuration") -> select "Application"
- Chose a fitting name for the launch configuration, for example "RoboCupClient"
- (optional) For newer IntelliJ versions: Press "Modify options" -> unselect in the category "Java" -> "Use classpath of module"
- Select your JDK in the module dropdown
- Chose "magma.robots.RoboCupClient" as the main class
- Use the following as "program arguments" -> --playerid=8 --factory=NaoToe
- Press "OK" and then press the green run button
For a list of all command line parameters ("program arguments") see class RoboCupClient
.
- Press "File" -> "Settings..." -> "Build, Execution, Deployment" -> "Build Tools" -> "Maven" -> "Runner" -> Make sure "Delegate IDE build/run actions to Maven" is selected
- Press "OK" and then press the green build button
This will create the target folder for magmaagent (full path RoboCup3D/magmaagent/target/magmaagent). Copy the folder with subfolders to the server you want to run your team.
Building the entire project:
./mvnw package
Building only the agent module along with its dependencies:
./mvnw package -pl magmaagent -am
cd magmaagent/target/magmaagent
bash start.sh <serverIP>
// magmaagent module
magma.robots.RoboCupClient
First level architecture:
Second level architecture:
http://robocup.hs-offenburg.de
Ester Amelia, Maximilian Baritz, Martin Baur, Nico Bohlinger, Hannes Braun, Kim Christmann, Alexander Derr, Klaus Dorer, Mathias Ehret, Sebastian Eppinger, Jens Fischer, Camilo Gelvez, Stefan Glaser, Stefan Grossmann, Marcel Gruessinger, Julian Hohenoecker, Danny Huber, Thomas Huber, Stephan Kammerer, Fabian Korak, Maximilian Kroeg, Pascal Liegibel, Duy Nguyen, Simon Raffeiner, Srinivasa Ragavan, Thomas Rinklin, Bjoern Ritter, Mahdi Sadeghi, Joachim Schilling, Rico Schillings, Ingo Schindler, Carmen Schmider, Frederik Sdun, Jannik Seiler, Rajit Shahi, Bjoern Weiler, David Weiler, David Zimmermann, Denis Zimmermann
klaus dot dorer at hs-offenburg dot de