Project: bml_realizer

License: BSD

Dependencies:

Used by: None

All Packages

edu::wpi::hri::bml::realizer::BMLComm Class Reference

Inheritance diagram for edu::wpi::hri::bml::realizer::BMLComm:

List of all members.

Public Member Functions

 BMLComm (Logger logger, NodeHandle handle) throws RosException
void call (Behavior behav)
void publishEmit (SyncRef ref, String event, String body)
void publishException (SchedulerException e)
void publishException (SyncRef ref, byte status, String reason, boolean warning)
void publishPerformance (SyncRef ref, byte status)
void shutdown ()
void waitForEndEmit (String id)

Private Attributes

final Publisher< BMLEmitemit
final Subscriber< BehaviorendEmit
final Publisher< BMLExceptionexception
final List< String > finishedIds
final Logger logger
final Publisher< BMLPerformanceperforming
final Publisher< BMLExceptionwarning

Detailed Description

This class is the communication from the realizer to the outside nodes. Each type of message that BML requires is created here and can be sent through ROS.

Author:
Aaron Holroyd (aholroyd (at) wpi (dot) edu)

Definition at line 62 of file BMLComm.java.


Constructor & Destructor Documentation

edu::wpi::hri::bml::realizer::BMLComm::BMLComm ( Logger  logger,
NodeHandle  handle 
) throws RosException [inline]

Create a new BML Comm object which can send the messages as behaviors are being executed.

Parameters:
logger The logger to print messages to
handle The handle to attach the messages to. Normally this should be the base handle.
Exceptions:
RosException This exception should only be thrown if ros is not setup properly.

Definition at line 85 of file BMLComm.java.


Member Function Documentation

void edu::wpi::hri::bml::realizer::BMLComm::call ( Behavior  behav  )  [inline]

Definition at line 217 of file BMLComm.java.

void edu::wpi::hri::bml::realizer::BMLComm::publishEmit ( SyncRef  ref,
String  event,
String  body 
) [inline]

Publish a message that indicates information that needed to be sent. This is the generic message which can contain information for calling other services or messages from a listening node.

Parameters:
ref The reference point from which the emit is being fired.
event The event id of the emit tag.
body The body of the emit's event tag.

Definition at line 137 of file BMLComm.java.

void edu::wpi::hri::bml::realizer::BMLComm::publishException ( SchedulerException  e  )  [inline]

Publish an exception thrown by the scheduler.

Parameters:
e The exception that was thrown.

Definition at line 184 of file BMLComm.java.

void edu::wpi::hri::bml::realizer::BMLComm::publishException ( SyncRef  ref,
byte  status,
String  reason,
boolean  warning 
) [inline]

Publish a message corresponding to an exception that occurred. If the warning flag is true, the exception will be broadcasted but the schedule is expected to continue to execute or be scheduled. If the warning flag is false, the schedule is expected to terminate.

Parameters:
ref The reference point that caused the exception.
status The status of that point.
reason The human readable reason for throwing the exception.
warning True for warning, false for error.

Definition at line 162 of file BMLComm.java.

void edu::wpi::hri::bml::realizer::BMLComm::publishPerformance ( SyncRef  ref,
byte  status 
) [inline]

Publish a message that indicates that this given reference point has been reached and that the given status indicates how well that point is doing.

Parameters:
reference The behavior reference point.
status The status of the point.

Definition at line 116 of file BMLComm.java.

void edu::wpi::hri::bml::realizer::BMLComm::shutdown (  )  [inline]

Shutdown the subscriber for the end of emit tags.

Definition at line 103 of file BMLComm.java.

void edu::wpi::hri::bml::realizer::BMLComm::waitForEndEmit ( String  id  )  [inline]

Wait for the given emit id to be finished by an outside node (normally generation because of the DG and MFG calls).

Parameters:
id The id of the emit to wait for.

Definition at line 195 of file BMLComm.java.


Member Data Documentation

Definition at line 66 of file BMLComm.java.

Definition at line 69 of file BMLComm.java.

Definition at line 67 of file BMLComm.java.

Definition at line 70 of file BMLComm.java.

Definition at line 64 of file BMLComm.java.

Definition at line 65 of file BMLComm.java.

Definition at line 68 of file BMLComm.java.


The documentation for this class was generated from the following file:

bml_realizer
Author(s): Aaron Holroyd (aholroyd (at) wpi (dot) edu)
autogenerated on Fri Sep 9 10:44:15 2011