The Robot Application Programming Interface Delegate Project
|
![]() |
This simulator simulates a producer that has a drive face and can count the number of messages it can send. More...
Public Member Functions | |
RapidPoseProducer (Agent agent) | |
Constructor accepting the Agent. | |
void | initializeAndExecute () |
Initialize the DDS libraries and run the publisher code. | |
Static Public Member Functions | |
static void | main (String[] args) |
General main method, no parameters are necessary for this example since the example is set up for GenericSim. | |
Static Public Attributes | |
static final String | DRIVE_FACE = "driveFace" |
This is used in the Asset Config and State messages. | |
static final String | MESSAGE_COUNT = "count" |
another parameter that the example subscribers want to know about is how many messages has been sent. | |
Protected Member Functions | |
void | updatePositionSample (RapidPositionSample rapidPositionSample, GPS telemetryGPS) |
Static Protected Member Functions | |
static int | checkErrorForSomeSubSystem () |
This will randomly generate an output code. | |
Static Package Functions | |
[static initializer] |
It can also report back the position information.
RapidPoseProducer | ( | Agent | agent | ) |
agent |
[static initializer] | ( | ) | [static, package] |
static int checkErrorForSomeSubSystem | ( | ) | [static, protected] |
void initializeAndExecute | ( | ) |
static void main | ( | String[] | args | ) | [static] |
It can be modified to accept command line parameters.
args |
void updatePositionSample | ( | RapidPositionSample | rapidPositionSample, |
GPS | telemetryGPS | ||
) | [protected] |
final String DRIVE_FACE = "driveFace" [static] |
It is used as an example on how to set parameters in those messages. In this case, there is a robot that has a drive face. The listeners would like to know what that drive face is. So, in this case, a parameter called "DRIVE"_FACE" is created and filled by the example asset.
final String MESSAGE_COUNT = "count" [static] |
This is a counter that is sent by the producer. In this example, the count gets incremented as each message