AsebaROS Class Reference

#include <asebaros.h>

Inheritance diagram for AsebaROS:
Inheritance graph
[legend]

List of all members.

Classes

class  GetVariableQueryKey
struct  GetVariableQueryValue

Public Member Functions

 AsebaROS (unsigned port, bool forward)
void connectTarget (const std::string &target)
void processAsebaMessage (Aseba::Message *message)
void run ()
 ~AsebaROS ()

Protected Types

typedef std::map
< GetVariableQueryKey,
GetVariableQueryValue * > 
GetVariableQueryMap
typedef std::map< std::string,
unsigned > 
NodesNamesMap
typedef std::map< std::string,
Aseba::Compiler::VariablesMap
UserDefinedVariablesMap

Protected Member Functions

void eventReceived (const AsebaAnonymousEventConstPtr &event)
bool getEventId (GetEventId::Request &req, GetEventId::Response &res)
bool getEventName (GetEventName::Request &req, GetEventName::Response &res)
bool getNodeId (GetNodeId::Request &req, GetNodeId::Response &res)
bool getNodeList (GetNodeList::Request &req, GetNodeList::Response &res)
bool getNodeName (GetNodeName::Request &req, GetNodeName::Response &res)
bool getNodePosFromNames (const std::string &nodeName, const std::string &variableName, unsigned &nodeId, unsigned &pos) const
bool getVariable (GetVariable::Request &req, GetVariable::Response &res)
bool getVariableList (GetVariableList::Request &req, GetVariableList::Response &res)
void knownEventReceived (const uint16 id, const AsebaEventConstPtr &event)
bool loadScript (LoadScripts::Request &req, LoadScripts::Response &res)
void nodeDescriptionReceived (unsigned nodeId)
 Virtual function that is called when a node description has been fully received.
void sendEventOnROS (const Aseba::UserMessage *asebaMessage)
bool setVariable (SetVariable::Request &req, SetVariable::Response &res)

Protected Attributes

ros::Publisher anonPub
 anonymous publisher, for aseba events with no associated name
ros::Subscriber anonSub
 anonymous subscriber, for aseba events with no associated name
Aseba::CommonDefinitions commonDefinitions
 description of aseba constants and events
GetVariableQueryMap getVariableQueries
 all get variable queries
AsebaDashelHub hub
 hub is the network interface for dashel peers
boost::mutex mutex
 mutex for protecting accesses from hub
ros::NodeHandle n
 node handler of this class
NodesNamesMap nodesNames
 the name of all nodes
Publishers pubs
 publishers for known events
ServiceServers s
 all services of this class
Subscribers subs
 subscribers for known events
UserDefinedVariablesMap userDefinedVariablesMap
 the name of the user-defined variables

Detailed Description

Definition at line 72 of file asebaros.h.


Member Typedef Documentation

Definition at line 94 of file asebaros.h.

typedef std::map<std::string, unsigned> AsebaROS::NodesNamesMap [protected]

Definition at line 75 of file asebaros.h.

typedef std::map<std::string, Aseba::Compiler::VariablesMap> AsebaROS::UserDefinedVariablesMap [protected]

Definition at line 76 of file asebaros.h.


Constructor & Destructor Documentation

AsebaROS::AsebaROS ( unsigned  port,
bool  forward 
)

Definition at line 598 of file asebaros.cpp.

AsebaROS::~AsebaROS (  ) 

Definition at line 624 of file asebaros.cpp.


Member Function Documentation

void AsebaROS::connectTarget ( const std::string &  target  )  [inline]

Definition at line 143 of file asebaros.h.

void AsebaROS::eventReceived ( const AsebaAnonymousEventConstPtr &  event  )  [protected]

Definition at line 584 of file asebaros.cpp.

bool AsebaROS::getEventId ( GetEventId::Request req,
GetEventId::Response res 
) [protected]

Definition at line 488 of file asebaros.cpp.

bool AsebaROS::getEventName ( GetEventName::Request req,
GetEventName::Response res 
) [protected]

Definition at line 501 of file asebaros.cpp.

bool AsebaROS::getNodeId ( GetNodeId::Request req,
GetNodeId::Response res 
) [protected]

Definition at line 345 of file asebaros.cpp.

bool AsebaROS::getNodeList ( GetNodeList::Request req,
GetNodeList::Response res 
) [protected]

Definition at line 337 of file asebaros.cpp.

bool AsebaROS::getNodeName ( GetNodeName::Request req,
GetNodeName::Response res 
) [protected]

Definition at line 362 of file asebaros.cpp.

bool AsebaROS::getNodePosFromNames ( const std::string &  nodeName,
const std::string &  variableName,
unsigned &  nodeId,
unsigned &  pos 
) const [protected]
bool AsebaROS::getVariable ( GetVariable::Request req,
GetVariable::Response res 
) [protected]

Definition at line 437 of file asebaros.cpp.

bool AsebaROS::getVariableList ( GetVariableList::Request req,
GetVariableList::Response res 
) [protected]

Definition at line 384 of file asebaros.cpp.

void AsebaROS::knownEventReceived ( const uint16  id,
const AsebaEventConstPtr &  event 
) [protected]

Definition at line 591 of file asebaros.cpp.

bool AsebaROS::loadScript ( LoadScripts::Request req,
LoadScripts::Response res 
) [protected]

Definition at line 144 of file asebaros.cpp.

void AsebaROS::nodeDescriptionReceived ( unsigned  nodeId  )  [protected, virtual]

Virtual function that is called when a node description has been fully received.

Reimplemented from Aseba::DescriptionsManager.

Definition at line 578 of file asebaros.cpp.

void AsebaROS::processAsebaMessage ( Aseba::Message message  ) 

Definition at line 639 of file asebaros.cpp.

void AsebaROS::run (  ) 

Definition at line 630 of file asebaros.cpp.

void AsebaROS::sendEventOnROS ( const Aseba::UserMessage asebaMessage  )  [protected]

Definition at line 553 of file asebaros.cpp.

bool AsebaROS::setVariable ( SetVariable::Request req,
SetVariable::Response res 
) [protected]

Definition at line 420 of file asebaros.cpp.


Member Data Documentation

ros::Publisher AsebaROS::anonPub [protected]

anonymous publisher, for aseba events with no associated name

Definition at line 99 of file asebaros.h.

ros::Subscriber AsebaROS::anonSub [protected]

anonymous subscriber, for aseba events with no associated name

Definition at line 100 of file asebaros.h.

description of aseba constants and events

Definition at line 107 of file asebaros.h.

all get variable queries

Definition at line 110 of file asebaros.h.

hub is the network interface for dashel peers

Definition at line 104 of file asebaros.h.

boost::mutex AsebaROS::mutex [protected]

mutex for protecting accesses from hub

Definition at line 105 of file asebaros.h.

ros::NodeHandle AsebaROS::n [protected]

node handler of this class

Definition at line 96 of file asebaros.h.

the name of all nodes

Definition at line 108 of file asebaros.h.

publishers for known events

Definition at line 101 of file asebaros.h.

all services of this class

Definition at line 97 of file asebaros.h.

subscribers for known events

Definition at line 102 of file asebaros.h.

the name of the user-defined variables

Definition at line 109 of file asebaros.h.


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


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:05 2011