17#ifndef STAUBLI_ROBOT_DRIVER__REAL_TIME_SOCKET_INTERFACE_HPP_
18#define STAUBLI_ROBOT_DRIVER__REAL_TIME_SOCKET_INTERFACE_HPP_
38template <
typename MessageSub,
typename MessagePub>
63 std::vector<uint8_t> data_out_;
67template class RealTimeSocketInterface<RobotStateMessage, RobotCommandMessage>;
68template class RealTimeSocketInterface<RobotCommandMessage, RobotStateMessage>;
Bilateral real-time socket interface for pub/sub communication.
Definition real_time_socket_interface.hpp:39
RealTimeSocketInterface(std::shared_ptr< Socket > socket)
~RealTimeSocketInterface()
bool send_message(const MessagePub &msg)
Serialize and send a message over the socket.
bool is_ready() const override
Check if the interface is ready (socket connected and receiving)
Definition real_time_socket_interface.hpp:58
Real-time socket subscriber class template.
Definition real_time_socket_subscriber.hpp:63
virtual bool is_ready() const
Check if the subscriber is ready (socket connected and receiving)
Definition messages.hpp:23