Example #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);
    }
Example #2
0
 protected override void InitializeMessages()
 {
     micomWritingData = null;
 }