public static object Microsoft_Robotics_Services_Motor_Proxy_MotorState_TO_Microsoft_Robotics_Services_Motor_Proxy_MotorState(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Motor.MotorState       target = new global::Microsoft.Robotics.Services.Motor.MotorState();
     global::Microsoft.Robotics.Services.Motor.Proxy.MotorState from   = ((global::Microsoft.Robotics.Services.Motor.Proxy.MotorState)(transformFrom));
     target.Name = from.Name;
     target.HardwareIdentifier = from.HardwareIdentifier;
     target.CurrentPower       = from.CurrentPower;
     target.PowerScalingFactor = from.PowerScalingFactor;
     target.ReversePolarity    = from.ReversePolarity;
     target.Pose = ((global::Microsoft.Robotics.PhysicalModel.Pose)(Microsoft_Robotics_PhysicalModel_Proxy_Pose_TO_Microsoft_Robotics_PhysicalModel_Proxy_Pose(from.Pose)));
     return(target);
 }
 public static object Microsoft_Robotics_Services_Motor_Proxy_WheeledMotorState_TO_Microsoft_Robotics_Services_Motor_Proxy_WheeledMotorState0(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Motor.Proxy.WheeledMotorState target = new global::Microsoft.Robotics.Services.Motor.Proxy.WheeledMotorState();
     global::Microsoft.Robotics.Services.Motor.WheeledMotorState       from   = ((global::Microsoft.Robotics.Services.Motor.WheeledMotorState)(transformFrom));
     target.WheelSpeed = from.WheelSpeed;
     target.Name       = from.Name;
     global::Microsoft.Robotics.Services.Motor.MotorState tmp = from.MotorState;
     if ((tmp != null))
     {
         target.MotorState = ((global::Microsoft.Robotics.Services.Motor.Proxy.MotorState)(Microsoft_Robotics_Services_Motor_Proxy_MotorState_TO_Microsoft_Robotics_Services_Motor_Proxy_MotorState0(tmp)));
     }
     target.Radius    = from.Radius;
     target.GearRatio = from.GearRatio;
     global::Microsoft.Robotics.Services.Encoder.EncoderState tmp0 = from.EncoderState;
     if ((tmp0 != null))
     {
         target.EncoderState = ((global::Microsoft.Robotics.Services.Encoder.Proxy.EncoderState)(Microsoft_Robotics_Services_Encoder_Proxy_EncoderState_TO_Microsoft_Robotics_Services_Encoder_Proxy_EncoderState0(tmp0)));
     }
     return(target);
 }