Template Class Input

Inheritance Relationships

Base Type

Derived Type

Class Documentation

template<typename T>
class Input : public soar_ros::InputBase

Subclassed by soar_ros::Subscriber< T >

Public Functions

inline Input()
inline ~Input()
virtual void parse(T msg) = 0

This function must attach the ROS message T from m_r2sQueue to the Soar input link.

Soar usually requires a pAgent->Commit() to send the changes, but this is handled inside the SoarRunner::processInput() call.

The function is called inside the Interface::Input::process_r2s() function.

Parameters:

msg – The ROS2 message.

inline virtual void process_r2s() override

This function reads the queue and calls the parse function of the input to create new WM elements via parse function, cf. Input.

Protected Attributes

SafeQueue<T> m_r2sQueue