[[TOC(Software/eAM*, depth=2, heading=Aggregate Managers)]] == METIS II 5G Visualization - Trace Extension == TODO Brief intro... === Adding the Trace Extension code to METIS II 5G Visualization source === The following documentation gives an overview of the changes that have to be made to the original METIS II simulator for it to have the ability to generate pairwise attenuation traces for selected objects in the simulator. 1. Adding an empty object to the scene: a. Under the Hierarchy tab, select the ‘Stage’ object, right click on it and choose ‘Create Empty’. b. Rename it to Tracker and under the Inspector tab of Unity, click Add Component button. c. Select Scripts and add the [attachment:TrackObject_Test.cs TrackObject_Test.cs] file d. Alternatively, add a new script and paste the code from Track Object_Test.cs after renaming the class Track Object_Test to whatever name was given to the script. 2. Adding tags to !GameObjects: a. Under the project tab, search for the object Antenna5G_01 b. In the inspector tab, click on the Tag dropdown and choose ‘Add Tag..’. c. In the Tags and Layers window, inside the Inspector tab, click on ‘+’ and add the tag “Antenna”. d. Now, select Antenna5G_01 from the Project tab and the tag ‘Antenna’ should be available. Click on Antenna to add that tag to the !GameObject. e. Repeat the same steps for the following objects i. Person, !StaticPerson – Pedestrian ii. !MadridGrid, MadridGridRectangle8, MadridGridRectangle10, !MadridGridSquare – Building iii. Sensor – Sensor iv. lamp-single-ap-002 – Lightpole v. CarSedan01 – Car vi. Bus – Bus 3. Adding Collider to !GameObjects: a. For getting a list of the objects the ray hits between the source and the destination object, it is necessary to add Box Colliders to each of the objects that the ray might pass through. b. For the models !MadridGrid, MadridGridRectangle8, MadridGridRectangle10, Person, !StaticPerson and Sensor, add Box Collider components c. For adding it, select the model from the Project tab and in the Inspector tab, select !AddComponent -> Physics -> Box Collider. 4. Generating a build: a. Once all of the above has been done, generate a build by selecting File -> Build Settings b. Choose the Target Platform, Architecture and hit Build. c. Make sure that the config file “config.xml” is located in the running directory. In its absence, the simulator runs normally. === XML Configuration File === Sample XML configuration: [attachment:config.xml config.xml] Below is a brief overview of the different sections of the XML config file and how they function. {{{ }}} ==== ... ==== The links section defines how many independent sets of connections objects in the simulator may have (eg. multi-homing). It can be thought of in terms of [wiki:foo Sandbox 4] as the number of available attenuator matrices. Each matrix (ie. each link set) is independent of the other. The default attenuation per matrix (link set) is defined in this section and used in cases where maximum attenuation is calculated between a pair of objects or an object pair is not defined. The maximum number of objects per matrix (link set) is also defined here for proper generation of the trace file.