#include <aubo_realtime_communication.h>
Public Member Functions | |
void | addCommandToQueue (std::string inp) |
AuboRealtimeCommunication (std::condition_variable &msg_cond, std::string host) | |
std::string | getLocalIp () |
void | getRobotEndSpeed () |
void | getRobotJointStatus () |
void | getRobotPosition () |
void | getRobotSystemStatus () |
void | halt () |
void | setMessagePush (bool flag) |
void | setSpeed (double q0, double q1, double q2, double q3, double q4, double q5, double acc) |
bool | start () |
Public Attributes | |
bool | connected_ |
RobotState * | robot_state_ |
Private Member Functions | |
void | run () |
Private Attributes | |
std::string | command_ |
std::recursive_mutex | command_string_lock_ |
std::thread | comThread_ |
int | flag_ |
bool | keepalive_ |
std::string | local_ip_ |
struct sockaddr_in | serv_addr_ |
struct hostent * | server_ |
int | sockfd_ |
Definition at line 27 of file aubo_realtime_communication.h.
AuboRealtimeCommunication::AuboRealtimeCommunication | ( | std::condition_variable & | msg_cond, |
std::string | host | ||
) |
Definition at line 4 of file aubo_realtime_communication.cpp.
void AuboRealtimeCommunication::addCommandToQueue | ( | std::string | inp | ) |
Definition at line 70 of file aubo_realtime_communication.cpp.
std::string AuboRealtimeCommunication::getLocalIp | ( | ) |
Definition at line 223 of file aubo_realtime_communication.cpp.
Definition at line 124 of file aubo_realtime_communication.cpp.
Definition at line 112 of file aubo_realtime_communication.cpp.
Definition at line 106 of file aubo_realtime_communication.cpp.
Definition at line 118 of file aubo_realtime_communication.cpp.
void AuboRealtimeCommunication::halt | ( | ) |
Definition at line 65 of file aubo_realtime_communication.cpp.
void AuboRealtimeCommunication::run | ( | ) | [private] |
Definition at line 131 of file aubo_realtime_communication.cpp.
void AuboRealtimeCommunication::setMessagePush | ( | bool | flag | ) |
Definition at line 99 of file aubo_realtime_communication.cpp.
void AuboRealtimeCommunication::setSpeed | ( | double | q0, |
double | q1, | ||
double | q2, | ||
double | q3, | ||
double | q4, | ||
double | q5, | ||
double | acc | ||
) |
Definition at line 84 of file aubo_realtime_communication.cpp.
bool AuboRealtimeCommunication::start | ( | ) |
Definition at line 29 of file aubo_realtime_communication.cpp.
std::string AuboRealtimeCommunication::command_ [private] |
Definition at line 37 of file aubo_realtime_communication.h.
std::recursive_mutex AuboRealtimeCommunication::command_string_lock_ [private] |
Definition at line 36 of file aubo_realtime_communication.h.
std::thread AuboRealtimeCommunication::comThread_ [private] |
Definition at line 34 of file aubo_realtime_communication.h.
Definition at line 42 of file aubo_realtime_communication.h.
int AuboRealtimeCommunication::flag_ [private] |
Definition at line 35 of file aubo_realtime_communication.h.
bool AuboRealtimeCommunication::keepalive_ [private] |
Definition at line 33 of file aubo_realtime_communication.h.
std::string AuboRealtimeCommunication::local_ip_ [private] |
Definition at line 32 of file aubo_realtime_communication.h.
Definition at line 43 of file aubo_realtime_communication.h.
struct sockaddr_in AuboRealtimeCommunication::serv_addr_ [private] |
Definition at line 30 of file aubo_realtime_communication.h.
struct hostent* AuboRealtimeCommunication::server_ [private] |
Definition at line 31 of file aubo_realtime_communication.h.
int AuboRealtimeCommunication::sockfd_ [private] |
Definition at line 29 of file aubo_realtime_communication.h.