hardeep / antix Goto Github PK
View Code? Open in Web Editor NEWThis project forked from horseplay/antix
foraging simulator
This project forked from horseplay/antix
foraging simulator
STARTING THE SIMULATION ====================================================================== SCRIPT RUN SEQUENCE ====================================================================== 1. Change directory to Controller/ 2. Fix the settings in configuration.py to the proper values. 3. Make sure you have the following files: - grid.config - drawer.config 4. See below for how to format these files. 5. Command for running everything: python controller.py SFU_USERNAME PATH_TO_ANTIX grid.config drawer.config The output for remote processes is piped to ~/antix.machine_name.out, and to ~/antix.nameX.out for local processes. 6. When you want to kill all the processes on every machine, run: python killthemall.py SFU_USERNAME Note: To see output from individual processes in your home directory (in files called antix.machine.out), you must disable stdout buffering. Add the following line to your code, somewhere near the top: setbuf(stdout, NULL); MANUAL RUN SEQUENCE ====================================================================== 1.) Clock 2.) Grid Servers 3.) ControllerClient 4.) RobotClients 5.) Drawer RUN: Clock ====================================================================== Description: The clock helps keep the simulation in sync. How to: ./clock.bin -p {{port}} -c {{# of robot clients}} -g {{# of grid servers}} Configuration file: None. RUN: Grid Servers ====================================================================== Description: The grid servers are the robot's playing field. How to: ./grid.bin -f {{config file}} -p {{port}} Configuration file: NUMBER_OF_TEAMS {{integer}} # Required: specifies the number of teams on the grid ROBOTS_PER_TEAM {{integer}} # Required: specified the number of robots per team CLOCK {{IP ADDRESS}} {{port}} NUM_CLIENTS {{integer}} # Required: specified the number of robots clients RUN: ControllerClient ====================================================================== Description: ControllerClient The ControllerClient regulates the simulation How to: ./controller.bin -f {{config file}} Configuration file: HOME_RADIUS {{float}} WORLD_SIZE {{integer}} NUM_GRIDS {{integer}} PUCK_TOTAL {{integer}} GRID {{IP Address}} {{port}} CLOCK {{IP Address}} {{port}} RUN: RobotClient ====================================================================== Description: RobotClients The RobotClients are the clients who will take part in the simulation. How to: ./robot.bin -f {{config file}} Configuration file: GRID {{ID}} {{IP ADDRESS}} {{port}} CLOCK {{IP ADDRESS}} {{port}} INIT_GRID {{ID}} # will request a team from this grid RUN: Drawer ====================================================================== Description: Drawer The Drawer is responsible for taking the information passed by the GridServers and drawing them. How to: ./drawer.bin -f {{config file}} Configuration file: WINDOW_SIZE {{integer}} WORLD_SIZE {{float}} HOME_RADIUS {{float}} ENABLE_FOV {{ 'T' or 'F' }} TOTAL_NUM_TEAMS {{integer}} TOTAL_NUM_ROBOTS {{integer}} TOTAL_NUM_PUCKS {{integer}} [ FOV_ANGLE {{float}} ] [ FOV_RANGE {{float}} ] GRID {{id}} {{IP ADDRESS}} {{port}}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.