#include <EthercatMasterWithoutThread.hpp>
Public Member Functions | |
void | AutomaticReceiveOn (const bool enableAutomaticReceive) |
void | AutomaticSendOn (const bool enableAutomaticSend) |
void | getEthercatDiagnosticInformation (std::vector< ec_slavet > ðercatSlaveInfos) |
unsigned int | getNumberOfSlaves () const |
return the quantity of ethercat slave which have an input/output buffer More... | |
bool | isErrorInSoemDriver () |
bool | isEtherCATConnectionEstablished () |
bool | isThreadActive () |
bool | receiveProcessData () |
void | registerJointLimitMonitor (JointLimitMonitor *object, const unsigned int JointNumber) |
bool | sendProcessData () |
Private Member Functions | |
bool | closeEthercat () |
closes the ethercat connection More... | |
EthercatMasterWithoutThread (const std::string &configFile, const std::string &configFilePath) | |
bool | getMailboxMsgBuffer (YouBotSlaveMailboxMsg &mailboxMsg, const unsigned int jointNumber) |
void | getMsgBuffer (const unsigned int jointNumber, YouBotSlaveMsg &returnMsg) |
void | initializeEthercat () |
establishes the ethercat connection More... | |
void | parseYouBotErrorFlags (const YouBotSlaveMsg &messageBuffer) |
bool | receiveMailboxMessage (YouBotSlaveMailboxMsg &mailboxMsg) |
bool | sendMailboxMessage (const YouBotSlaveMailboxMsg &mailboxMsg) |
void | setMailboxMsgBuffer (const YouBotSlaveMailboxMsg &msgBuffer, const unsigned int jointNumber) |
void | setMsgBuffer (const YouBotSlaveMsg &msgBuffer, const unsigned int jointNumber) |
~EthercatMasterWithoutThread () | |
Private Attributes | |
ConfigFile * | configfile |
bool | ethercatConnectionEstablished |
std::vector< SlaveMessageInput * > | ethercatInputBufferVector |
std::vector< SlaveMessageOutput * > | ethercatOutputBufferVector |
std::vector< ec_slavet > | ethercatSlaveInfo |
unsigned int | ethercatTimeout |
std::string | ethernetDevice |
std::vector< YouBotSlaveMailboxMsg > | firstMailboxBufferVector |
char | IOmap_ [4096] |
ec_mbxbuft | mailboxBufferReceive |
ec_mbxbuft | mailboxBufferSend |
unsigned int | mailboxTimeout |
unsigned int | nrOfSlaves |
std::vector< YouBotSlaveMsg > | processDataBuffer |
Static Private Attributes | |
static std::string | configFileName |
static std::string | configFilepath |
Friends | |
class | EthercatMaster |
class | YouBotGripper |
class | YouBotGripperBar |
class | YouBotJoint |
Additional Inherited Members | |
Protected Member Functions inherited from youbot::EthercatMasterInterface | |
EthercatMasterInterface () | |
virtual | ~EthercatMasterInterface () |
The Ethercat Master is managing the whole ethercat communication It have to be a singleton in the system
Definition at line 84 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 66 of file EthercatMasterWithoutThread.cpp.
|
private |
Definition at line 94 of file EthercatMasterWithoutThread.cpp.
|
virtual |
Implements youbot::EthercatMasterInterface.
Definition at line 123 of file EthercatMasterWithoutThread.cpp.
|
virtual |
Implements youbot::EthercatMasterInterface.
Definition at line 115 of file EthercatMasterWithoutThread.cpp.
|
private |
closes the ethercat connection
Definition at line 344 of file EthercatMasterWithoutThread.cpp.
|
virtual |
provides all ethercat slave informations from the SOEM driver
ethercatSlaveInfos | ethercat slave informations |
Implements youbot::EthercatMasterInterface.
Definition at line 132 of file EthercatMasterWithoutThread.cpp.
|
privatevirtual |
gets a mailbox message form the buffer which came form the motor controllers
msgBuffer | ethercat mailbox message |
jointNumber | joint number of the receiver joint |
Implements youbot::EthercatMasterInterface.
Definition at line 398 of file EthercatMasterWithoutThread.cpp.
|
privatevirtual |
get a ethercat message form the buffer
msgBuffer | ethercat message |
jointNumber | joint number of the receiver joint |
Implements youbot::EthercatMasterInterface.
Definition at line 375 of file EthercatMasterWithoutThread.cpp.
|
virtual |
return the quantity of ethercat slave which have an input/output buffer
Implements youbot::EthercatMasterInterface.
Definition at line 109 of file EthercatMasterWithoutThread.cpp.
|
private |
establishes the ethercat connection
Definition at line 205 of file EthercatMasterWithoutThread.cpp.
|
virtual |
checks if an error has occurred in the soem driver returns a true if an error has occurred
Implements youbot::EthercatMasterInterface.
Definition at line 184 of file EthercatMasterWithoutThread.cpp.
|
virtual |
Implements youbot::EthercatMasterInterface.
Definition at line 192 of file EthercatMasterWithoutThread.cpp.
|
virtual |
Implements youbot::EthercatMasterInterface.
Definition at line 102 of file EthercatMasterWithoutThread.cpp.
|
private |
Definition at line 442 of file EthercatMasterWithoutThread.cpp.
|
private |
receives mailbox messages and stores them in the buffer
mailboxMsg | ethercat mailbox message |
Definition at line 428 of file EthercatMasterWithoutThread.cpp.
|
virtual |
receives ethercat messages from the motor controllers returns a true if everything it OK and returns false if something fail
Implements youbot::EthercatMasterInterface.
Definition at line 164 of file EthercatMasterWithoutThread.cpp.
|
virtual |
Implements youbot::EthercatMasterInterface.
Definition at line 198 of file EthercatMasterWithoutThread.cpp.
|
private |
sends the mailbox Messages which have been stored in the buffer
mailboxMsg | ethercat mailbox message |
Definition at line 408 of file EthercatMasterWithoutThread.cpp.
|
virtual |
sends ethercat messages to the motor controllers returns a true if everything it OK and returns false if something fail
Implements youbot::EthercatMasterInterface.
Definition at line 144 of file EthercatMasterWithoutThread.cpp.
|
privatevirtual |
stores a mailbox message in a buffer which will be sent to the motor controllers
msgBuffer | ethercat mailbox message |
jointNumber | joint number of the sender joint |
Implements youbot::EthercatMasterInterface.
Definition at line 386 of file EthercatMasterWithoutThread.cpp.
|
privatevirtual |
stores a ethercat message to the buffer
msgBuffer | ethercat message |
jointNumber | joint number of the sender joint |
Implements youbot::EthercatMasterInterface.
Definition at line 364 of file EthercatMasterWithoutThread.cpp.
|
friend |
Definition at line 85 of file EthercatMasterWithoutThread.hpp.
|
friend |
Definition at line 87 of file EthercatMasterWithoutThread.hpp.
|
friend |
Definition at line 88 of file EthercatMasterWithoutThread.hpp.
|
friend |
Definition at line 86 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 181 of file EthercatMasterWithoutThread.hpp.
|
staticprivate |
Definition at line 189 of file EthercatMasterWithoutThread.hpp.
|
staticprivate |
Definition at line 191 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 193 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 171 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 169 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 183 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 187 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 163 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 173 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 185 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 179 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 175 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 177 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 167 of file EthercatMasterWithoutThread.hpp.
|
private |
Definition at line 165 of file EthercatMasterWithoutThread.hpp.