-
Notifications
You must be signed in to change notification settings - Fork 3
3.1.2 File Generation
###World File
The world file is done by the generateWorld
script. It creates the boundary and generates the rows of orchards which is configurable.
###Entity Generation
Generation of the entity files are done by the generateEntity
script which generates script for each type of entity and the number for each type is determined in the config file. The generation is done by using a template file for each entity type and changing the constructor to have the correct inputs like id number and initial x and y values.
The generateEntity
script also writes to the world file to include the entity models and their initial positions.
The generateEntity
script also starts the entity scripts after generating them. This step is not done if the launcher is in testing mode.
To add new entities to be generated, the following files are needed and placed in their specific directory:
- Class file in
se306Project1/src
- Model file in
/world/objects
(file must end with .inc) - Template file in
/world/templates
(file must end with .template)
Complete the steps below to ensure files are generated correctly:
- Include model file of the entity at the top of the World Template
- Add entity name to the robot_type list(Line 33) in generateEntity *
- Include in the config.properties, the number of robots.
Example: (Entity_Name).number=2
*The entity name(case-sensitive) must be same as the class name and the model name.
###Obstacle Generation Obstacles are placed at random positions along the trees to block the path of the robots but are not placed too close to each other so that the robot can still navigate around the obstacles. The number generated are also based on the config file.
##1.0 Introduction
##2.0 User Manual
##2.5 Testing
3.1 Launch Infrastructure
3.2 Entities and behaviours (Robots, humans, animals)
- 3.2.1 Entity Superclass
- 3.2.1.1 Entity Movement
- 3.2.2 Robot Entity
- 3.2.2.1 Robot Entity Detection
- 3.2.2.2 Robot Path Finding
- 3.2.3 Robot Pickers
- 3.2.4 Robot Carriers
- 3.2.4.1 Carrier Queue
- 3.2.5 Humans
- 3.2.6 Animals
- 3.2.7 Entity Topics
3.3 Special services and features
##4.0 Project Planning and management
- 4.1 Project plan
- 4.2 Git Branching and Merging Etiquette
- 4.3 Design Requirements, System requirements and Technical specifications
- 4.4 Key Factors and Constraints
- 4.5 System Design
- 4.6 Time spent
- 4.7 Testing and integration overview
- 4.8 Meeting minutes
##Miscellaneous resources