コード例 #1
0
 // Update is called in fixed Rate
 void FixedUpdate()
 {
     if (is_connected)
     {
         var clock_msg = new Ros.Clock();
         clock_msg.clock = Ros.Time.Now();
         RosClockWriter.Publish(clock_msg);
     }
 }
コード例 #2
0
 void FixedUpdate()
 {
     if (Bridge != null && Bridge.Status == Comm.BridgeStatus.Connected)
     {
         var clock_msg = new Ros.Clock();
         clock_msg.clock = Ros.Time.Now();
         RosClockWriter.Publish(clock_msg);
     }
 }