Class ReceivingInterface
Defined in File receiving_interface.hpp
Inheritance Relationships
Base Type
public Poco::Runnable
Derived Type
public ClientMotionCommandInterface(Class ClientMotionCommandInterface)
Class Documentation
-
class ReceivingInterface : public Poco::Runnable
The ReceivingInterface class is the base class for all receiving interfaces, such as ClientControlModeInterface, etc.
Subclassed by ClientMotionCommandInterface
Public Functions
Constructs a new ReceivingInterface object.
- Parameters:
hostadress – The IP address of the Navigator to connect to
port – The port number for the binary connection
node – A shared pointer to the ROS 2 node
-
virtual ~ReceivingInterface()
Destroys the ReceivingInterface object.
-
virtual void onReadEvent(const Poco::AutoPtr<Poco::Net::ReadableNotification> ¬ification)
Callback method invoked when data is available on the socket.
- Parameters:
notification – A smart pointer to the ReadableNotification
-
void run()
The main execution loop for the receiving interface.
Protected Functions
Actual function to be overwritten by child to handle data, e.g., convert to ros messages and publish.
- Parameters:
datagram_buffer – The data received via the binary connection socket
- Returns:
amount of bytes successfully parsed and can be removed from the buffer (0 if not parsing failed)
Protected Attributes
-
rclcpp::Node::SharedPtr node_
Node.