|
The Robot Application Programming Interface Delegate Project
|
|


Public Member Functions | |
| AssetConfig () | |
| AssetConfig (AssetConfig other) | |
| boolean | equals (Object o) |
| int | hashCode () |
| Object | copy_from (Object src) |
This is the implementation of the Copyable interface. | |
| String | toString () |
| String | toString (String desc, int indent) |
Static Public Member Functions | |
| static Object | create () |
Public Attributes | |
| gov.nasa.rapid.idl.dds.rapid.AgentType | assetType = (gov.nasa.rapid.idl.dds.rapid.AgentType) gov.nasa.rapid.idl.dds.rapid.AgentType.create() |
| Denotes what agent species this Agent is. | |
| gov.nasa.rapid.idl.dds.rapid.KeyTypeValueSequence64 | topics = (gov.nasa.rapid.idl.dds.rapid.KeyTypeValueSequence64) gov.nasa.rapid.idl.dds.rapid.KeyTypeValueSequence64.create() |
| List of topic names for messages from Agents that have multiple of a message type. | |
| gov.nasa.rapid.idl.dds.rapid.KeyTypeValueSequence64 | valueKeys = (gov.nasa.rapid.idl.dds.rapid.KeyTypeValueSequence64) gov.nasa.rapid.idl.dds.rapid.KeyTypeValueSequence64.create() |
| Agent-specific state information can be stored in this extras sequence. | |
| AssetConfig | ( | ) |
| AssetConfig | ( | AssetConfig | other | ) |

| Object copy_from | ( | Object | src | ) |
This method will perform a deep copy of src This method could be placed into AssetConfigTypeSupport rather than here by using the -noCopyable option to rtiddsgen.
| src | The Object which contains the data to be copied. |
this. | NullPointerException | If src is null. |
| ClassCastException | If src is not the same type as this. |
Reimplemented from Message.

| static Object create | ( | ) | [static] |
| boolean equals | ( | Object | o | ) |
| int hashCode | ( | ) |
| String toString | ( | String | desc, |
| int | indent | ||
| ) |
| String toString | ( | ) |
Reimplemented from Message.
| gov.nasa.rapid.idl.dds.rapid.AgentType assetType = (gov.nasa.rapid.idl.dds.rapid.AgentType) gov.nasa.rapid.idl.dds.rapid.AgentType.create() |
| gov.nasa.rapid.idl.dds.rapid.KeyTypeValueSequence64 topics = (gov.nasa.rapid.idl.dds.rapid.KeyTypeValueSequence64) gov.nasa.rapid.idl.dds.rapid.KeyTypeValueSequence64.create() |
For example, R2's right end effector position will be reported in the rapid.position.sample.endeffector.right topic which is the value to the key RightEndEffectorPosition.
| gov.nasa.rapid.idl.dds.rapid.KeyTypeValueSequence64 valueKeys = (gov.nasa.rapid.idl.dds.rapid.KeyTypeValueSequence64) gov.nasa.rapid.idl.dds.rapid.KeyTypeValueSequence64.create() |
The Name and Type information is stored in the KeyTypeSequence, and the AssetState message provides the values. The key denotes the name of a piece of information, the type is the DataType of the information, and the Value is the current value of the information upon start-up. This sequence has a counterpart in AssetState, named 'values'.
For example,
AssetConfig.valueKeys[0] = 'fooBar', BOOLEAN
AssetConfig.valueKeys[1] = 'driveFace', INT
AssetConfig.valueKeys[2] = 'fluxCapacitance', FLOAT
Updates are published as:
AssetState.values[0] = 'false'
AssetState.values[1] = '2'
AssetState.values[2] = '3.14159'
The value in the Sequence is the default value for that key.