Classes | Public Member Functions | Protected Member Functions | List of all members
TrajectoryPointInterfaceTest::Client Class Reference
Inheritance diagram for TrajectoryPointInterfaceTest::Client:
Inheritance graph
[legend]

Classes

struct  TrajData
 

Public Member Functions

 Client (const int &port)
 
int32_t getBlendRadius ()
 
TrajData getData ()
 
int32_t getGoalTime ()
 
int32_t getMotionType ()
 
vector6int32_t getPosition ()
 
vector6int32_t getVelocity ()
 
void readMessage (vector6int32_t &pos, vector6int32_t &vel, vector6int32_t &acc, int32_t &goal_time, int32_t &blend_radius_or_spline_type, int32_t &motion_type)
 
void send (const int32_t &result)
 
- Public Member Functions inherited from urcl::comm::TCPSocket
void close ()
 Closes the connection to the socket. More...
 
std::string getIP () const
 Determines the local IP address of the currently configured socket. More...
 
int getSocketFD ()
 Getter for the file descriptor of the socket. More...
 
SocketState getState ()
 Getter for the state of the socket. More...
 
bool read (char *character)
 Reads one byte from the socket. More...
 
bool read (uint8_t *buf, const size_t buf_len, size_t &read)
 Reads data from the socket. More...
 
void setReceiveTimeout (const timeval &timeout)
 Setup Receive timeout used for this socket. More...
 
void setReconnectionTime (std::chrono::seconds reconnection_time)
 Set reconnection time, if the server is unavailable during connection this will set the time before trying connect to the server again. More...
 
 TCPSocket ()
 Creates a TCPSocket object. More...
 
bool write (const uint8_t *buf, const size_t buf_len, size_t &written)
 Writes to the socket. More...
 
virtual ~TCPSocket ()
 

Protected Member Functions

virtual bool open (int socket_fd, struct sockaddr *address, size_t address_len)
 
- Protected Member Functions inherited from urcl::comm::TCPSocket
virtual void setOptions (int socket_fd)
 
bool setup (std::string &host, int port)
 

Additional Inherited Members

- Protected Attributes inherited from urcl::comm::TCPSocket
std::unique_ptr< timeval > recv_timeout_
 

Detailed Description

Definition at line 40 of file test_trajectory_point_interface.cpp.

Constructor & Destructor Documentation

◆ Client()

TrajectoryPointInterfaceTest::Client::Client ( const int &  port)
inline

Definition at line 43 of file test_trajectory_point_interface.cpp.

Member Function Documentation

◆ getBlendRadius()

int32_t TrajectoryPointInterfaceTest::Client::getBlendRadius ( )
inline

Definition at line 147 of file test_trajectory_point_interface.cpp.

◆ getData()

TrajData TrajectoryPointInterfaceTest::Client::getData ( )
inline

Definition at line 169 of file test_trajectory_point_interface.cpp.

◆ getGoalTime()

int32_t TrajectoryPointInterfaceTest::Client::getGoalTime ( )
inline

Definition at line 139 of file test_trajectory_point_interface.cpp.

◆ getMotionType()

int32_t TrajectoryPointInterfaceTest::Client::getMotionType ( )
inline

Definition at line 155 of file test_trajectory_point_interface.cpp.

◆ getPosition()

vector6int32_t TrajectoryPointInterfaceTest::Client::getPosition ( )
inline

Definition at line 123 of file test_trajectory_point_interface.cpp.

◆ getVelocity()

vector6int32_t TrajectoryPointInterfaceTest::Client::getVelocity ( )
inline

Definition at line 131 of file test_trajectory_point_interface.cpp.

◆ open()

virtual bool TrajectoryPointInterfaceTest::Client::open ( int  socket_fd,
struct sockaddr *  address,
size_t  address_len 
)
inlineprotectedvirtual

Reimplemented from urcl::comm::TCPSocket.

Definition at line 177 of file test_trajectory_point_interface.cpp.

◆ readMessage()

void TrajectoryPointInterfaceTest::Client::readMessage ( vector6int32_t pos,
vector6int32_t vel,
vector6int32_t acc,
int32_t &  goal_time,
int32_t &  blend_radius_or_spline_type,
int32_t &  motion_type 
)
inline

Definition at line 62 of file test_trajectory_point_interface.cpp.

◆ send()

void TrajectoryPointInterfaceTest::Client::send ( const int32_t &  result)
inline

Definition at line 53 of file test_trajectory_point_interface.cpp.


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 Tue Jul 4 2023 02:09:47