public class GeometryMessage 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 javax.vecmath.Point3d |
CenterOfGravity |
protected javax.vecmath.Vector3d |
Dimensions |
protected List<Integer> |
Links |
protected List<cz.cuni.amis.pogamut.base3d.worldview.object.Location> |
Locations |
protected String |
Name |
protected List<cz.cuni.amis.pogamut.base3d.worldview.object.Rotation> |
Orientations |
protected List<Integer> |
ParentLinks |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected List<SensorMount> |
SenEffGeo |
protected String |
Type |
protected double |
WheelBase |
protected double |
WheelRadius |
protected double |
WheelSeparation |
| Constructor and Description |
|---|
GeometryMessage()
Used by Yylex to create empty message then to fill it's protected fields
(Yylex is in the same package).
|
GeometryMessage(GeometryMessage original)
Cloning constructor.
|
GeometryMessage(String Type,
String Name,
double WheelBase,
double WheelRadius,
double WheelSeparation,
javax.vecmath.Point3d COG,
javax.vecmath.Vector3d Dimensions) |
| Modifier and Type | Method and Description |
|---|---|
javax.vecmath.Point3d |
getCenterOfGravity()
COG(x,y,z) ‘x’, ‘y’, and ‘z’ identify the position of the center of
gravity, in meters, calculated from the chassis origin.
|
javax.vecmath.Vector3d |
getDimensions()
Dimension (x,y,z) ‘x’ defines the robot’s length, ‘y’ defines the robot’s
width, and ‘z’ describes the robot’s height.
|
List<Integer> |
getLinks()
For a mission package, the geometry message is expressed in the following
format to tell us how the mission package and its elements are
‘installed’ together to the robot.
|
List<cz.cuni.amis.pogamut.base3d.worldview.object.Location> |
getLocations()
For a mission package, the geometry message is expressed in the following
format to tell us how the mission package and its elements are
‘installed’ together to the robot.
|
String |
getName()
Name of the subject that this geometry message concerns.
|
List<cz.cuni.amis.pogamut.base3d.worldview.object.Rotation> |
getOrientations()
For a mission package, the geometry message is expressed in the following
format to tell us how the mission package and its elements are
‘installed’ together to the robot.
|
List<Integer> |
getParentLinks()
For a mission package, the geometry message is expressed in the following
format to tell us how the mission package and its elements are
‘installed’ together to the robot.
|
List<SensorMount> |
getSenEffGeo()
Camera, Sensor and effecter mounts are composed from Name, Location,
Orientaion and Mount name.
|
long |
getSimTime() |
String |
getType()
Type describes the vehicle type.
|
double |
getWheelBase()
The value is the wheel base, in meters.
|
double |
getWheelRadius()
The value is the radius of the robot’s wheels, in meters
|
double |
getWheelSeparation()
The value is the wheel separation, in meters.
|
String |
toHtmlString()
Gets all properties and values to create a HTML formated string;
|
String |
toString() |
getWorldEventpublic static final String PROTOTYPE
protected String Type
protected String Name
protected javax.vecmath.Vector3d Dimensions
protected javax.vecmath.Point3d CenterOfGravity
protected double WheelRadius
protected double WheelSeparation
protected double WheelBase
protected List<SensorMount> SenEffGeo
protected List<cz.cuni.amis.pogamut.base3d.worldview.object.Location> Locations
protected List<cz.cuni.amis.pogamut.base3d.worldview.object.Rotation> Orientations
public GeometryMessage(String Type, String Name, double WheelBase, double WheelRadius, double WheelSeparation, javax.vecmath.Point3d COG, javax.vecmath.Vector3d Dimensions)
public GeometryMessage(GeometryMessage original)
public GeometryMessage()
public String getType()
public String getName()
public javax.vecmath.Vector3d getDimensions()
public javax.vecmath.Point3d getCenterOfGravity()
public double getWheelRadius()
public double getWheelSeparation()
public double getWheelBase()
public List<SensorMount> getSenEffGeo()
public List<Integer> getLinks()
public List<Integer> getParentLinks()
public List<cz.cuni.amis.pogamut.base3d.worldview.object.Location> getLocations()
public List<cz.cuni.amis.pogamut.base3d.worldview.object.Rotation> getOrientations()
public String toString()
toString in class cz.cuni.amis.pogamut.base.communication.messages.InfoMessagepublic String toHtmlString()
public long getSimTime()
getSimTime in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEventgetSimTime in interface cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEventgetSimTime in class GBEventCopyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.