public class ConfigurationMessage extends GBEvent implements cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent, cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
Features |
protected List<String> |
JointTypes |
protected List<Integer> |
Links |
protected double |
Mass |
protected double |
MaxFrontSteer |
protected List<Double> |
MaxRanges |
protected double |
MaxRearSteer |
protected List<Double> |
MaxSpeeds |
protected List<Double> |
MaxTorques |
protected List<Double> |
MaxVals |
protected List<Double> |
MinRanges |
protected List<Double> |
MinVals |
protected String |
Name |
protected List<String> |
Names |
protected List<String> |
Opcodes |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected String |
SteeringType |
protected String |
Type |
| Constructor and Description |
|---|
ConfigurationMessage()
Used by Yylex to create empty message then to fill it's protected fields
(Yylex is in the same package).
|
ConfigurationMessage(ConfigurationMessage original)
Cloning constructor.
|
ConfigurationMessage(String Type,
double MaxFrontSteer,
double MaxRearSteer,
double Mass,
String SteeringType) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getFeatures()
For a camera, sensor or effecter, a configuration message conatins a pair
‘{Name Value}’ that describes the feature of this sensor type.
|
List<String> |
getJointTypes()
Each value can either be “Revolute” or “Prismatic”, as determined by the
type of joint being described.
|
List<Integer> |
getLinks()
Each value is the mission package’s link number(or index) that is
described further by JoinType, Max/Min Torque, Max/Min Speed and Max/Min
Range.
|
double |
getMass()
It is the robot's mass in kg.
|
double |
getMaxFrontSteer()
The maximum steering angle for robot’s front wheels, in radians.
|
List<Double> |
getMaxRanges()
For a revolute joint, Each value is the maximum absolute angle that the
joint can rotate to.
|
double |
getMaxRearSteer()
The maximum steering angle for robot’s rear wheels, in radians.
|
List<Double> |
getMaxSpeeds()
Each value describes the joint’s maximum speed, in rad/s.
|
List<Double> |
getMaxTorques()
Each value describes the joint’s maximum torque.
|
List<Double> |
getMaxVals()
It is value that indicates the upper bound for the value that is accepted
by the effecter.
|
List<Double> |
getMinRanges()
For a revolute joint, Each value is the minimum absolute angle that the
joint can rotate to.
|
List<Double> |
getMinVals()
It is value that indicates the lower bound for the value that is accepted
by the effecter.
|
String |
getName()
Name of the subject that this geometry message concerns.
|
List<String> |
getNames()
For an effector, the configuration message can contain multiple names.
|
List<String> |
getOpcodes()
For an effector, the configuration message can contain multiple OpCodes.
|
String |
getSteeringType()
Value should be one of the following: “AckermanSteered” or “SkidSteered”
or “OmniDrive”, as dictated by the steering type of the robot.
|
String |
getType()
Type describes the vehicle type.
|
String |
toHtmlString()
Gets all properties and values to create a HTML formated string;
|
String |
toString() |
getSimTime, getWorldEventtoJsonLiteralclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final String PROTOTYPE
protected String Type
protected String Name
protected String SteeringType
protected double Mass
protected double MaxFrontSteer
protected double MaxRearSteer
public ConfigurationMessage(String Type, double MaxFrontSteer, double MaxRearSteer, double Mass, String SteeringType)
public ConfigurationMessage(ConfigurationMessage original)
public ConfigurationMessage()
public String getType()
public String getName()
public String getSteeringType()
public double getMass()
public double getMaxFrontSteer()
public double getMaxRearSteer()
public Map<String,String> getFeatures()
public List<String> getNames()
public List<String> getOpcodes()
public List<Double> getMaxVals()
public List<Double> getMinVals()
public List<Integer> getLinks()
public List<String> getJointTypes()
public List<Double> getMaxSpeeds()
public List<Double> getMaxTorques()
public List<Double> getMaxRanges()
public List<Double> getMinRanges()
public String toString()
toString in class cz.cuni.amis.pogamut.base.communication.messages.InfoMessagepublic String toHtmlString()
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.