Public Member Functions | Protected Member Functions | Private Member Functions | Friends
youbot::EthercatMasterInterface Class Reference

#include <EthercatMasterInterface.hpp>

Inheritance diagram for youbot::EthercatMasterInterface:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void AutomaticReceiveOn (const bool enableAutomaticReceive)=0
virtual void AutomaticSendOn (const bool enableAutomaticSend)=0
virtual void getEthercatDiagnosticInformation (std::vector< ec_slavet > &ethercatSlaveInfos)=0
virtual unsigned int getNumberOfSlaves () const =0
 return the quantity of ethercat slave which have an input/output buffer
virtual bool isErrorInSoemDriver ()=0
virtual bool isEtherCATConnectionEstablished ()=0
virtual bool isThreadActive ()=0
virtual bool receiveProcessData ()=0
virtual void registerJointLimitMonitor (JointLimitMonitor *object, const unsigned int JointNumber)=0
virtual bool sendProcessData ()=0

Protected Member Functions

 EthercatMasterInterface ()
virtual ~EthercatMasterInterface ()

Private Member Functions

virtual bool getMailboxMsgBuffer (YouBotSlaveMailboxMsg &mailboxMsg, const unsigned int jointNumber)=0
virtual void getMsgBuffer (const unsigned int jointNumber, YouBotSlaveMsg &returnMsg)=0
virtual void setMailboxMsgBuffer (const YouBotSlaveMailboxMsg &msgBuffer, const unsigned int jointNumber)=0
virtual void setMsgBuffer (const YouBotSlaveMsg &msgBuffer, const unsigned int jointNumber)=0

Friends

class EthercatMaster
class YouBotGripper
class YouBotGripperBar
class YouBotJoint

Detailed Description

The Ethercat Master interface

Definition at line 69 of file EthercatMasterInterface.hpp.


Constructor & Destructor Documentation

Definition at line 76 of file EthercatMasterInterface.hpp.

virtual youbot::EthercatMasterInterface::~EthercatMasterInterface ( ) [inline, protected, virtual]

Definition at line 81 of file EthercatMasterInterface.hpp.


Member Function Documentation

virtual void youbot::EthercatMasterInterface::AutomaticReceiveOn ( const bool  enableAutomaticReceive) [pure virtual]
virtual void youbot::EthercatMasterInterface::AutomaticSendOn ( const bool  enableAutomaticSend) [pure virtual]
virtual void youbot::EthercatMasterInterface::getEthercatDiagnosticInformation ( std::vector< ec_slavet > &  ethercatSlaveInfos) [pure virtual]

provides all ethercat slave informations from the SOEM driver

Parameters:
ethercatSlaveInfosethercat slave informations

Implemented in youbot::EthercatMasterWithThread, and youbot::EthercatMasterWithoutThread.

virtual bool youbot::EthercatMasterInterface::getMailboxMsgBuffer ( YouBotSlaveMailboxMsg mailboxMsg,
const unsigned int  jointNumber 
) [private, pure virtual]

gets a mailbox message form the buffer which came form the motor controllers

Parameters:
msgBufferethercat mailbox message
jointNumberjoint number of the receiver joint

Implemented in youbot::EthercatMasterWithThread, and youbot::EthercatMasterWithoutThread.

virtual void youbot::EthercatMasterInterface::getMsgBuffer ( const unsigned int  jointNumber,
YouBotSlaveMsg returnMsg 
) [private, pure virtual]

get a ethercat message form the buffer

Parameters:
msgBufferethercat message
jointNumberjoint number of the receiver joint

Implemented in youbot::EthercatMasterWithThread, and youbot::EthercatMasterWithoutThread.

virtual unsigned int youbot::EthercatMasterInterface::getNumberOfSlaves ( ) const [pure virtual]

return the quantity of ethercat slave which have an input/output buffer

Implemented in youbot::EthercatMasterWithThread, and youbot::EthercatMasterWithoutThread.

checks if an error has occurred in the soem driver returns a true if an error has occurred

Implemented in youbot::EthercatMasterWithThread, and youbot::EthercatMasterWithoutThread.

virtual bool youbot::EthercatMasterInterface::isThreadActive ( ) [pure virtual]
virtual bool youbot::EthercatMasterInterface::receiveProcessData ( ) [pure virtual]

receives ethercat messages from the motor controllers returns a true if everything it OK and returns false if something fail

Implemented in youbot::EthercatMasterWithThread, and youbot::EthercatMasterWithoutThread.

virtual void youbot::EthercatMasterInterface::registerJointLimitMonitor ( JointLimitMonitor object,
const unsigned int  JointNumber 
) [pure virtual]
virtual bool youbot::EthercatMasterInterface::sendProcessData ( ) [pure virtual]

sends ethercat messages to the motor controllers returns a true if everything it OK and returns false if something fail

Implemented in youbot::EthercatMasterWithThread, and youbot::EthercatMasterWithoutThread.

virtual void youbot::EthercatMasterInterface::setMailboxMsgBuffer ( const YouBotSlaveMailboxMsg msgBuffer,
const unsigned int  jointNumber 
) [private, pure virtual]

stores a mailbox message in a buffer which will be sent to the motor controllers

Parameters:
msgBufferethercat mailbox message
jointNumberjoint number of the sender joint

Implemented in youbot::EthercatMasterWithThread, and youbot::EthercatMasterWithoutThread.

virtual void youbot::EthercatMasterInterface::setMsgBuffer ( const YouBotSlaveMsg msgBuffer,
const unsigned int  jointNumber 
) [private, pure virtual]

stores a ethercat message to the buffer

Parameters:
msgBufferethercat message
jointNumberjoint number of the sender joint

Implemented in youbot::EthercatMasterWithThread, and youbot::EthercatMasterWithoutThread.


Friends And Related Function Documentation

friend class EthercatMaster [friend]
friend class YouBotGripper [friend]
friend class YouBotGripperBar [friend]
friend class YouBotJoint [friend]

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


youbot_driver
Author(s): Jan Paulus
autogenerated on Mon Oct 6 2014 09:08:03