Adding history to identifier to ensure uniqueness by convention, exporting properly.

parent 801a75b7
......@@ -315,7 +315,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &72409654
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -613,7 +612,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Wall
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &206085100
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -660,7 +658,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Floor
showExtents: 0
showOccupancyGrid: 0
--- !u!54 &233609477
Rigidbody:
m_ObjectHideFlags: 0
......@@ -883,7 +880,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#PhysicalPlace
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &266244856
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -1175,7 +1171,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Ceiling
showExtents: 0
showOccupancyGrid: 0
--- !u!65 &354212942
BoxCollider:
m_ObjectHideFlags: 0
......@@ -1431,7 +1426,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Cupboard
showExtents: 0
showOccupancyGrid: 0
--- !u!65 &385145546
BoxCollider:
m_ObjectHideFlags: 0
......@@ -1831,7 +1825,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &403154017
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -2244,7 +2237,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &486434705
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -2353,7 +2345,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Chair
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &491616700
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -2547,7 +2538,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Drawer
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &562335847
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -2575,7 +2565,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Door
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &562335849
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -2764,7 +2753,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Door
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &591176981
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -3055,7 +3043,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Drawer
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &673992306
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -3083,7 +3070,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Door
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &673992308
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -3117,7 +3103,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Wall
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &679120271
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -3221,7 +3206,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Cupboard
showExtents: 0
showOccupancyGrid: 0
--- !u!65 &689074822
BoxCollider:
m_ObjectHideFlags: 0
......@@ -3400,7 +3384,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Entity
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &705507998
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -3434,7 +3417,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Sink
showExtents: 0
showOccupancyGrid: 0
--- !u!65 &727899288
BoxCollider:
m_ObjectHideFlags: 0
......@@ -3489,7 +3471,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Cupboard
showExtents: 0
showOccupancyGrid: 0
--- !u!65 &727899292
BoxCollider:
m_ObjectHideFlags: 0
......@@ -3703,7 +3684,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Chair
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &747210192
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -3911,7 +3891,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Door
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &795689514
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -4169,7 +4148,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Apple
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &851663885
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -4288,7 +4266,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &853770465
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -4322,7 +4299,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Wall
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &868937601
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -4558,7 +4534,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Door
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &881902529
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -4845,7 +4820,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Rack
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &956961678
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -4974,7 +4948,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &964251525
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -5158,7 +5131,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Stove
showExtents: 0
showOccupancyGrid: 0
--- !u!65 &1008622061
BoxCollider:
m_ObjectHideFlags: 0
......@@ -5345,7 +5317,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Shelf
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1024849837
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -5379,7 +5350,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Wall
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1026241614
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -5426,7 +5396,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Cupboard
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1052582939
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -5895,7 +5864,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Shelf
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1137338310
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -6055,7 +6023,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Refrigerator
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1139129199
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -6083,7 +6050,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Door
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1139129201
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -6111,7 +6077,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Door
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1139129203
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -6231,7 +6196,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Door
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1140816811
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -6259,7 +6223,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Door
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1140816813
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -6413,7 +6376,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Wall
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1166413354
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -6680,7 +6642,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Cupboard
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1217411875
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -7089,7 +7050,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Steam
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1232511663
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -7158,7 +7118,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Cupboard
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1238782162
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -7530,7 +7489,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Rack
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1307777421
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -7563,8 +7521,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Cup
showExtents: 0
showOccupancyGrid: 0
showExtents: 1
--- !u!54 &1331286836
Rigidbody:
m_ObjectHideFlags: 0
......@@ -8048,7 +8005,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Shelf
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1403195201
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -8300,7 +8256,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Room
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1425282732
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -8444,7 +8399,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1444289941
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -8558,7 +8512,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Door
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1456574797
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -8914,7 +8867,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1581413264
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -8987,7 +8939,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Countertop
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1656686362
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -9173,7 +9124,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Door
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1724232371
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -9436,7 +9386,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1767828231
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -9635,7 +9584,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Door
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1808417846
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -9801,7 +9749,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Wall
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1845090568
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -10176,7 +10123,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Chair
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1887977819
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -10326,7 +10272,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE-OBJ.owl#Lid
showExtents: 0
showOccupancyGrid: 0
--- !u!4 &1903869703 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -4216859302048453862, guid: 777930a286a884240885b925f58479dc,
......@@ -10520,7 +10465,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Table
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1918559640
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -10629,7 +10573,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Chair
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1928384765
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -10765,7 +10708,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Cupboard
showExtents: 0
showOccupancyGrid: 0
--- !u!65 &1963336215
BoxCollider:
m_ObjectHideFlags: 0
......@@ -10812,7 +10754,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Wall
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &1977428287
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -11035,7 +10976,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Shelf
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &2002183463
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -11149,7 +11089,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Door
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &2012739342
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -11327,7 +11266,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Cupboard
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &2072907048
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -11374,7 +11312,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Countertop
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &2072914416
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -11793,7 +11730,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &2109312689
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -11827,7 +11763,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Wall
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &2125088165
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -11887,7 +11822,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Cupboard
showExtents: 0
showOccupancyGrid: 0
--- !u!65 &2138028497
BoxCollider:
m_ObjectHideFlags: 0
......@@ -11934,7 +11868,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://www.ease-crc.org/ont/EASE.owl#Wall
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &2138746745
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -12225,7 +12158,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
is_a: http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp
showExtents: 0
showOccupancyGrid: 0
--- !u!114 &8529134863782672058
MonoBehaviour:
m_ObjectHideFlags: 0
......
using UnityEngine;
using System.Collections.Generic;
namespace dlu
{
......@@ -6,6 +7,27 @@ namespace dlu
public class InstanceIdentifier : MonoBehaviour
{
public new string name;
protected List<Vector3> positionHistory;
protected List<Quaternion> rotationHistory;
protected void Awake()
{
positionHistory = new List<Vector3>();
rotationHistory = new List<Quaternion>();
}
public (List<Vector3>, List<Quaternion>) GetLog()
{
return (positionHistory, rotationHistory);
}
protected void Update()
{
positionHistory.Add(transform.position);
rotationHistory.Add(transform.rotation);
}
}
}
\ No newline at end of file
......@@ -220,7 +220,13 @@ public class SceneController : MonoBehaviour
int count = 0;
foreach (SemanticBehaviour sb in JSONHandler.instance.semanticBehaviours)
{
(List<Vector3> positions, List<Quaternion> rotations) = sb.GetLog();
InstanceIdentifier ii = sb.GetComponent<InstanceIdentifier>();
if (logs.ContainsKey(ii.name))
{
continue;
}
(List<Vector3> positions, List<Quaternion> rotations) = ii.GetLog();
count = positions.Count;
List<JSONObject> logData = new List<JSONObject>();
for (int i = 0; i < positions.Count; ++i)
......@@ -235,7 +241,7 @@ public class SceneController : MonoBehaviour
jsonObject.Add("rw", rotations[i].w);
logData.Add(jsonObject);
}
logs.Add(sb.GetComponent<InstanceIdentifier>().name, logData);
logs.Add(ii.name, logData);
}
JSONArray logRows = new JSONArray();
......
using UnityEngine;
using SimpleJSON;
using System.Collections.Generic;
namespace dlu
{
......@@ -11,21 +10,6 @@ public abstract class SemanticBehaviour : MonoBehaviour
public string is_a;
public abstract void WriteTo(JSONObject jsonObject);
protected List<Vector3> positionHistory;
protected List<Quaternion> rotationHistory;
public (List<Vector3>, List<Quaternion>) GetLog()
{
return (positionHistory, rotationHistory);
}
protected void Update()
{
positionHistory.Add(transform.position);
rotationHistory.Add(transform.rotation);
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment