Пример #1
0
 public static void Update(this Messages.Standard.Header header)
 {
     if (timer == null)
     {
         GameObject obj = new GameObject("DefaultTimer(UnityEpoch)");
         timer = defaultTimer = obj.AddComponent <Timer>();
     }
     header.seq++;
     header.stamp = timer.Now();
 }
Пример #2
0
 public static void TimeSynchronization(this Messages.Standard.Header header, Messages.Standard.Time sync_time)
 {
     header.seq++;
     header.stamp = sync_time;
 }
Пример #3
0
 public ControllersStatistics()
 {
     header     = new RosSharp.RosBridgeClient.Messages.Standard.Header();
     controller = new List <ControllerStatistics>();
 }