public static object Microsoft_Robotics_Services_Motor_Proxy_WheeledMotorState_TO_Microsoft_Robotics_Services_Motor_Proxy_WheeledMotorState(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Motor.WheeledMotorState       target = new global::Microsoft.Robotics.Services.Motor.WheeledMotorState();
     global::Microsoft.Robotics.Services.Motor.Proxy.WheeledMotorState from   = ((global::Microsoft.Robotics.Services.Motor.Proxy.WheeledMotorState)(transformFrom));
     target.WheelSpeed = from.WheelSpeed;
     target.Name       = from.Name;
     if ((from.MotorState != null))
     {
         target.MotorState = ((global::Microsoft.Robotics.Services.Motor.MotorState)(Microsoft_Robotics_Services_Motor_Proxy_MotorState_TO_Microsoft_Robotics_Services_Motor_Proxy_MotorState(from.MotorState)));
     }
     else
     {
         target.MotorState = null;
     }
     target.Radius    = from.Radius;
     target.GearRatio = from.GearRatio;
     if ((from.EncoderState != null))
     {
         target.EncoderState = ((global::Microsoft.Robotics.Services.Encoder.EncoderState)(Microsoft_Robotics_Services_Encoder_Proxy_EncoderState_TO_Microsoft_Robotics_Services_Encoder_Proxy_EncoderState(from.EncoderState)));
     }
     else
     {
         target.EncoderState = null;
     }
     return(target);
 }
 public static object Microsoft_Robotics_Services_Drive_Proxy_DriveDifferentialTwoWheelState_TO_Microsoft_Robotics_Services_Drive_Proxy_DriveDifferentialTwoWheelState0(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Drive.Proxy.DriveDifferentialTwoWheelState target = new global::Microsoft.Robotics.Services.Drive.Proxy.DriveDifferentialTwoWheelState();
     global::Microsoft.Robotics.Services.Drive.DriveDifferentialTwoWheelState       from   = ((global::Microsoft.Robotics.Services.Drive.DriveDifferentialTwoWheelState)(transformFrom));
     target.TimeStamp = from.TimeStamp;
     global::Microsoft.Robotics.Services.Motor.WheeledMotorState tmp = from.LeftWheel;
     if ((tmp != null))
     {
         target.LeftWheel = ((global::Microsoft.Robotics.Services.Motor.Proxy.WheeledMotorState)(Microsoft_Robotics_Services_Motor_Proxy_WheeledMotorState_TO_Microsoft_Robotics_Services_Motor_Proxy_WheeledMotorState0(tmp)));
     }
     global::Microsoft.Robotics.Services.Motor.WheeledMotorState tmp0 = from.RightWheel;
     if ((tmp0 != null))
     {
         target.RightWheel = ((global::Microsoft.Robotics.Services.Motor.Proxy.WheeledMotorState)(Microsoft_Robotics_Services_Motor_Proxy_WheeledMotorState_TO_Microsoft_Robotics_Services_Motor_Proxy_WheeledMotorState0(tmp0)));
     }
     target.DistanceBetweenWheels = from.DistanceBetweenWheels;
     target.IsEnabled             = from.IsEnabled;
     target.DriveDistanceStage    = ((global::Microsoft.Robotics.Services.Drive.Proxy.DriveStage)(((int)(from.DriveDistanceStage))));
     target.RotateDegreesStage    = ((global::Microsoft.Robotics.Services.Drive.Proxy.DriveStage)(((int)(from.RotateDegreesStage))));
     target.DriveState            = ((global::Microsoft.Robotics.Services.Drive.Proxy.DriveState)(((int)(from.DriveState))));
     return(target);
 }