Version 2 (modified by 7 years ago) ( diff ) | ,
---|
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.
- Adding an empty object to the scene:
- Under the Hierarchy tab, select the ‘Stage’ object, right click on it and choose ‘Create Empty’.
- Rename it to Tracker and under the Inspector tab of Unity, click Add Component button.
- Select Scripts and add the TrackObject_Test.cs file
- 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.
- Adding tags to GameObjects:
- Under the project tab, search for the object Antenna5G_01
- In the inspector tab, click on the Tag dropdown and choose ‘Add Tag..’.
- In the Tags and Layers window, inside the Inspector tab, click on ‘+’ and add the tag “Antenna”.
- 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.
- Repeat the same steps for the following objects
- Person, StaticPerson – Pedestrian
- MadridGrid, MadridGridRectangle8, MadridGridRectangle10, MadridGridSquare – Building
- Sensor – Sensor
- lamp-single-ap-002 – Lightpole
- CarSedan01 – Car
- Bus – Bus
- Adding Collider to GameObjects:
- 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.
- For the models MadridGrid, MadridGridRectangle8, MadridGridRectangle10, Person, StaticPerson and Sensor, add Box Collider components
- For adding it, select the model from the Project tab and in the Inspector tab, select AddComponent → Physics → Box Collider.
- Generating a build:
- Once all of the above has been done, generate a build by selecting File → Build Settings
- Choose the Target Platform, Architecture and hit Build.
- Make sure that the config file “config.xml” is located in the running directory. In its absence, the simulator runs normally.
XML Configuration File
Attachments (2)
- TrackObject_Test.cs (12.7 KB ) - added by 7 years ago.
- config.xml (1.5 KB ) - added by 7 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.