Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
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)
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 643 of file asebaros.cpp.

Definition at line 669 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 621 of file asebaros.cpp.

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

Definition at line 525 of file asebaros.cpp.

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

Definition at line 538 of file asebaros.cpp.

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

Definition at line 377 of file asebaros.cpp.

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

Definition at line 369 of file asebaros.cpp.

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

Definition at line 394 of file asebaros.cpp.

bool AsebaROS::getNodePosFromNames ( const std::string &  nodeName,
const std::string &  variableName,
unsigned &  nodeId,
unsigned &  pos 
) const [protected]

Definition at line 550 of file asebaros.cpp.

bool AsebaROS::getVariable ( GetVariable::Request req,
GetVariable::Response res 
) [protected]

Definition at line 474 of file asebaros.cpp.

Definition at line 421 of file asebaros.cpp.

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

Definition at line 632 of file asebaros.cpp.

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

Definition at line 172 of file asebaros.cpp.

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

Reimplemented from Aseba::DescriptionsManager.

Definition at line 615 of file asebaros.cpp.

Definition at line 684 of file asebaros.cpp.

void AsebaROS::run ( )

Definition at line 675 of file asebaros.cpp.

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

Definition at line 590 of file asebaros.cpp.

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

Definition at line 457 of file asebaros.cpp.


Member Data Documentation

anonymous publisher, for aseba events with no associated name

Definition at line 99 of file asebaros.h.

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.

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:


asebaros
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:35