cz.cuni.amis.pogamut.usar2004.communication.messages.usarcommands
Class DriveOmni

Package class diagram package DriveOmni
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.usar2004.communication.messages.usarcommands.DriveOmni

public class DriveOmni
extends cz.cuni.amis.pogamut.base.communication.messages.CommandMessage

Drive command specified for a ground vehicle with multiple omnidrive stearing. Corresponding GameBots command is DRIVE.


Field Summary
protected  List<Integer> WheelNumbers
           
protected  List<Double> WheelSpeeds
           
protected  List<Double> WheelSteers
           
 
Constructor Summary
DriveOmni()
          WARNING: this is empty-command constructor, you have to use setters to fill it up!
DriveOmni(DriveOmni original)
          Cloning constructor.
DriveOmni(int[] WheelNumbers, double[] WheelSpeeds, double[] WheelSteers)
           
DriveOmni(int WheelNumber, double WheelSpeed, double WheelSteer)
           
 
Method Summary
 void addWheelNumber(int number)
           
 void addWheelNumber(int[] numbers)
           
 void addWheelSpeed(double speed)
           
 void addWheelSpeed(double[] speeds)
           
 void addWheelSteer(double steer)
           
 void addWheelSteer(double[] steers)
           
 List<Integer> getWheelNumbers()
           
 List<Double> getWheelSpeeds()
           
 List<Double> getWheelSteers()
           
 String toHtmlString()
           
 String toMessage()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WheelNumbers

protected List<Integer> WheelNumbers

WheelSpeeds

protected List<Double> WheelSpeeds

WheelSteers

protected List<Double> WheelSteers
Constructor Detail

DriveOmni

public DriveOmni(int WheelNumber,
                 double WheelSpeed,
                 double WheelSteer)

DriveOmni

public DriveOmni(int[] WheelNumbers,
                 double[] WheelSpeeds,
                 double[] WheelSteers)

DriveOmni

public DriveOmni()

WARNING: this is empty-command constructor, you have to use setters to fill it up!


DriveOmni

public DriveOmni(DriveOmni original)
Cloning constructor.

Method Detail

getWheelNumbers

public List<Integer> getWheelNumbers()

addWheelNumber

public void addWheelNumber(int number)

addWheelNumber

public void addWheelNumber(int[] numbers)

getWheelSpeeds

public List<Double> getWheelSpeeds()

addWheelSpeed

public void addWheelSpeed(double speed)

addWheelSpeed

public void addWheelSpeed(double[] speeds)

getWheelSteers

public List<Double> getWheelSteers()

addWheelSteer

public void addWheelSteer(double steer)

addWheelSteer

public void addWheelSteer(double[] steers)

toString

public String toString()
Overrides:
toString in class cz.cuni.amis.pogamut.base.communication.messages.CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.