Ejemplo n.º 1
0
 /// <summary>
 /// Post CreateDriveDirect and return the response port.
 /// </summary>
 /// <param name="body"></param>
 /// <returns></returns>
 public virtual irobot.StandardResponse DriveDirect(create.CmdDriveDirect body)
 {
     create.CreateDriveDirect op = new create.CreateDriveDirect();
     op.Body = body ?? new create.CmdDriveDirect();
     this.Post(op);
     return(op.ResponsePort);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Post CreateDriveDirect and return the response port.
 /// </summary>
 /// <param name="rightVelocity"></param>
 /// <param name="leftVelocity"></param>
 /// <returns></returns>
 public virtual irobot.StandardResponse DriveDirect(int rightVelocity, int leftVelocity)
 {
     create.CreateDriveDirect op = new create.CreateDriveDirect(rightVelocity, leftVelocity);
     this.Post(op);
     return(op.ResponsePort);
 }