The Robot Application Programming Interface Delegate Project
RAPID Logo

PointCloudConfigCache Class Reference

Inheritance diagram for PointCloudConfigCache:
Collaboration diagram for PointCloudConfigCache:

List of all members.

Classes

class  PointCloudConfigHolder

Public Member Functions

void addConfigImpl (PointCloudConfig config)
void rapidEventReceived (Agent agent, MessageType type, IRapidMessage msg)

Static Public Member Functions

static PointCloudConfigHolder getSubscribedConfig (final Agent agent, final MessageType configType, PointCloudSample data)
 Matches the serial number in JointSample to the latest JointConfig and returns it if true.
static PointCloudConfigHolder getConfig (final Agent agent, final MessageType configType)
static synchronized void createCache (final Agent agent, MessageType configType)
static void addConfig (Agent agent, MessageType configType, PointCloudConfig config)
 manually add Config to cache.
static void addConfig (String agentName, MessageType configType, PointCloudConfig config)

Protected Member Functions

PointCloudConfigHolder getLatestConfig ()
PointCloudConfigHolder getLatestMatchingConfig (Header hdr)

Package Attributes

ArrayList< PointCloudConfigHolderhistory = new ArrayList<PointCloudConfigHolder>()

Member Function Documentation

static void addConfig ( Agent  agent,
MessageType  configType,
PointCloudConfig  config 
) [static]

Used for client Configs

Parameters:
agent
configType
config

Here is the call graph for this function:

static void addConfig ( String  agentName,
MessageType  configType,
PointCloudConfig  config 
) [static]

Here is the call graph for this function:

void addConfigImpl ( PointCloudConfig  config)
static synchronized void createCache ( final Agent  agent,
MessageType  configType 
) [static]

Here is the call graph for this function:

static PointCloudConfigHolder getConfig ( final Agent  agent,
final MessageType  configType 
) [static]

Here is the call graph for this function:

PointCloudConfigHolder getLatestConfig ( ) [protected]
PointCloudConfigHolder getLatestMatchingConfig ( Header  hdr) [protected]
static PointCloudConfigHolder getSubscribedConfig ( final Agent  agent,
final MessageType  configType,
PointCloudSample  data 
) [static]

If false, null is returned

TODO: match against history of JointConfig messages

If the client would like to subscribe to the Config message to receive the initial JointSample, the following should be done at the calling class:

JointConfig.getSubscribedConfig(agent, new JointSample());

This will return null, but the JointConfig has been registered to listen for events.

Parameters:
agent
configType
data
  • should never be null
Returns:
PointCloudConfigHolder
Exceptions:
RapidEventCollectorException

Here is the call graph for this function:

void rapidEventReceived ( Agent  agent,
MessageType  type,
IRapidMessage  msg 
)

Implements IRapidEventListener.

Here is the call graph for this function:


Member Data Documentation

ArrayList<PointCloudConfigHolder> history = new ArrayList<PointCloudConfigHolder>() [package]

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