1 #ifndef YOUBOT_ETHERCATMASTERWITHOUTTHREAD_H 2 #define YOUBOT_ETHERCATMASTERWITHOUTTHREAD_H 61 #include <boost/thread.hpp> 62 #include <boost/date_time/posix_time/posix_time.hpp>
void registerJointLimitMonitor(JointLimitMonitor *object, const unsigned int JointNumber)
ec_mbxbuft mailboxBufferReceive
~EthercatMasterWithoutThread()
The Ethercat Master factory.
bool receiveProcessData()
unsigned int getNumberOfSlaves() const
return the quantity of ethercat slave which have an input/output buffer
std::vector< YouBotSlaveMailboxMsg > firstMailboxBufferVector
bool closeEthercat()
closes the ethercat connection
Reads and writes a configuration file.
void setMsgBuffer(const YouBotSlaveMsg &msgBuffer, const unsigned int jointNumber)
std::string ethernetDevice
void AutomaticSendOn(const bool enableAutomaticSend)
bool ethercatConnectionEstablished
static std::string configFileName
The youBot gripper with one degree of freedom.
unsigned int ethercatTimeout
General typedefs and defines for EtherCAT.
std::vector< ec_slavet > ethercatSlaveInfo
std::vector< YouBotSlaveMsg > processDataBuffer
EthercatMasterWithoutThread(const std::string &configFile, const std::string &configFilePath)
bool receiveMailboxMessage(YouBotSlaveMailboxMsg &mailboxMsg)
ec_mbxbuft mailboxBufferSend
bool isErrorInSoemDriver()
std::vector< SlaveMessageInput * > ethercatInputBufferVector
bool sendMailboxMessage(const YouBotSlaveMailboxMsg &mailboxMsg)
It monitors the joint position and will decelerate and stop the joint if it is close the limits...
EtherCAT mailbox message of the youBot slaves.
void setMailboxMsgBuffer(const YouBotSlaveMailboxMsg &msgBuffer, const unsigned int jointNumber)
void initializeEthercat()
establishes the ethercat connection
The Ethercat Master interface.
One bar of the youBot gripper.
std::vector< SlaveMessageOutput * > ethercatOutputBufferVector
void parseYouBotErrorFlags(const YouBotSlaveMsg &messageBuffer)
bool isEtherCATConnectionEstablished()
Headerfile for ethercatmain.c.
void getEthercatDiagnosticInformation(std::vector< ec_slavet > ðercatSlaveInfos)
unsigned int mailboxTimeout
bool getMailboxMsgBuffer(YouBotSlaveMailboxMsg &mailboxMsg, const unsigned int jointNumber)
void AutomaticReceiveOn(const bool enableAutomaticReceive)
static std::string configFilepath
EtherCat message of the youBot EtherCat slaves.
uint8 ec_mbxbuft[EC_MAXMBX+1]
void getMsgBuffer(const unsigned int jointNumber, YouBotSlaveMsg &returnMsg)