예제 #1
0
    protected override void GenerateMessage()
    {
        try
        {
            micomWritingData = GetMessageData <messages.Twist>();
        }
        catch
        {
            Debug.LogWarning("GetMessageData: ERROR");
        }

        // Right-handed -> Left-handed direction of rotation
        linearVelocity  = -SDF2Unity.GetPosition(micomWritingData.Linear.X, micomWritingData.Linear.Y, micomWritingData.Linear.Z);
        angularVelocity = -SDF2Unity.GetPosition(micomWritingData.Angular.X, micomWritingData.Angular.Y, micomWritingData.Angular.Z);
    }
예제 #2
0
 protected override void InitializeMessages()
 {
     micomWritingData = null;
 }