The Robot Application Programming Interface Delegate Project
RAPID Logo

RapidPoseProducer Class Reference

This simulator simulates a producer that has a drive face and can count the number of messages it can send. More...

Inheritance diagram for RapidPoseProducer:
Collaboration diagram for RapidPoseProducer:

List of all members.

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]

Detailed Description

It can also report back the position information.

Author:
jtorres

Constructor & Destructor Documentation

Parameters:
agent

Member Function Documentation

[static initializer] ( ) [static, package]
static int checkErrorForSomeSubSystem ( ) [static, protected]
Returns:
void initializeAndExecute ( )

Here is the call graph for this function:

static void main ( String[]  args) [static]

It can be modified to accept command line parameters.

Parameters:
args

Here is the call graph for this function:

void updatePositionSample ( RapidPositionSample  rapidPositionSample,
GPS  telemetryGPS 
) [protected]

Here is the call graph for this function:


Member Data Documentation

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines