22#include "std_msgs/String.h"
126 ROSComms(std::function<
void(T)> cbf,
CommTypes ct,
bool latch,
int qs, std::string t);
135template <
typename M,
typename T>
ROSComms()
Default constructor.
std::string getTopic()
Returns the name string (topic) associated with the service.
CommTypes getCommType()
returns the comms type of this object
std::function< void(M, T)> callback_function_
Class which serves as an abstraction of a pub/sub framework.
T getTemplateType()
Returns an instance of the type this object is parameterized on. This is used for forwarding the data...
int getQueueSize()
Returns the data stream queue size.
bool getLatch()
Returns the latched status of this data stream.
std::string getTopic()
Returns the name string (topic) associated with the data stream.
std::function< void(T)> callback_function_
CommTypes getCommType()
returns the comms type of this object
This class is used to transfer all the information required to initialize ros topics/services.
CommTypes
Enum defining the different possible communications types.
bool callback(cav_srvs::PlanTrajectory::Request &req, cav_srvs::PlanTrajectory::Response &res)