The ReverseInterface class handles communication to the robot. It starts a server and waits for the robot to connect via its URCaps program.
More...
#include <reverse_interface.h>
The ReverseInterface class handles communication to the robot. It starts a server and waits for the robot to connect via its URCaps program.
Definition at line 58 of file reverse_interface.h.
urcl::comm::ReverseInterface::ReverseInterface |
( |
| ) |
|
|
delete |
urcl::comm::ReverseInterface::ReverseInterface |
( |
uint32_t |
port, |
|
|
std::function< void(bool)> |
handle_program_state |
|
) |
| |
|
inline |
urcl::comm::ReverseInterface::~ReverseInterface |
( |
| ) |
|
|
inline |
Disconnects possible clients so the reverse interface object can be safely destroyed.
Definition at line 82 of file reverse_interface.h.
template<typename T >
size_t urcl::comm::ReverseInterface::append |
( |
uint8_t * |
buffer, |
|
|
T & |
val |
|
) |
| |
|
inlineprivate |
void urcl::comm::ReverseInterface::connectionCallback |
( |
const int |
filedescriptor | ) |
|
|
inlineprivate |
void urcl::comm::ReverseInterface::disconnectionCallback |
( |
const int |
filedescriptor | ) |
|
|
inlineprivate |
void urcl::comm::ReverseInterface::messageCallback |
( |
const int |
filedescriptor, |
|
|
char * |
buffer |
|
) |
| |
|
inlineprivate |
void urcl::comm::ReverseInterface::setKeepaliveCount |
( |
const uint32_t & |
count | ) |
|
|
inline |
Set the Keepalive count. This will set the number of allowed timeout reads on the robot.
- Parameters
-
count | Number of allowed timeout reads on the robot. |
Definition at line 135 of file reverse_interface.h.
Writes needed information to the robot to be read by the URCaps program.
- Parameters
-
positions | A vector of joint targets for the robot |
control_mode | Control mode assigned to this command. See documentation of ControlMode for details on possible values. |
- Returns
- True, if the write was performed successfully, false otherwise.
Definition at line 95 of file reverse_interface.h.
int urcl::comm::ReverseInterface::client_fd_ |
|
private |
std::function<void(bool)> urcl::comm::ReverseInterface::handle_program_state_ |
|
private |
uint32_t urcl::comm::ReverseInterface::keepalive_count_ |
|
private |
const int32_t urcl::comm::ReverseInterface::MULT_JOINTSTATE = 1000000 |
|
staticprivate |
TCPServer urcl::comm::ReverseInterface::server_ |
|
private |
The documentation for this class was generated from the following file:
ur_client_library
Author(s): Thomas Timm Andersen, Simon Rasmussen, Felix Exner, Lea Steffen, Tristan Schnell
autogenerated on Sun May 9 2021 02:16:26