public RobotTwoWheelState GetCurrentState(RobotTwoWheelCommand currentCommand)
 {
     RobotWheelModel rightW = new RobotWheelModel(rWheelPos, rWheelVel, rWheelAccel);
     RobotWheelModel leftW = new RobotWheelModel(lWheelPos, lWheelVel, lWheelAccel);
     RobotTwoWheelState state = new RobotTwoWheelState(curPose, currentCommand, rightW, leftW);
     return new RobotTwoWheelState(state, currentCommand);
 }
Ejemplo n.º 2
0
 public RobotTwoWheelState(RobotTwoWheelState toCopy, RobotTwoWheelCommand command)
 {
     //deep copy the class
     this.pose = new RobotPose(toCopy.pose);
     this.rightWheel = new RobotWheelModel(toCopy.rightWheel);
     this.leftWheel = new RobotWheelModel(toCopy.leftWheel);
     this.command = command;
 }
Ejemplo n.º 3
0
 public RobotWheelModel(RobotWheelModel toCopy)
 {
     this.accel = toCopy.accel; this.vel = toCopy.vel; this.pos = toCopy.pos;
 }
Ejemplo n.º 4
0
 public RobotTwoWheelState(RobotPose initialPose, RobotTwoWheelCommand initialCommand, RobotWheelModel right, RobotWheelModel left)
 {
     this.pose = initialPose; this.command = initialCommand;
     rightWheel = new RobotWheelModel(right);
     leftWheel = new RobotWheelModel(left);
 }
Ejemplo n.º 5
0
 public RobotWheelModel(RobotWheelModel toCopy)
 {
     this.accel = toCopy.accel; this.vel = toCopy.vel; this.pos = toCopy.pos;
 }
Ejemplo n.º 6
0
 public RobotTwoWheelState(RobotPose initialPose, RobotTwoWheelCommand initialCommand, RobotWheelModel right, RobotWheelModel left)
 {
     this.pose  = initialPose; this.command = initialCommand;
     rightWheel = new RobotWheelModel(right);
     leftWheel  = new RobotWheelModel(left);
 }