Template Class Service

Nested Relationships

Nested Types

Class Documentation

template<typename ServiceT>
class Service

Agnocast service server. The callback signature is void(const ipc_shared_ptr<RequestT>&, ipc_shared_ptr<ResponseT>&). The service/client API is experimental and may change in future versions.

Template Parameters:

ServiceT – The ROS service type (e.g., std_srvs::srv::SetBool).

Public Types

using SharedPtr = std::shared_ptr<Service<ServiceT>>

Public Functions

template<typename Func, typename NodeT>
inline Service(NodeT *node, const std::string &service_name, Func &&callback, const rclcpp::QoS &qos, rclcpp::CallbackGroup::SharedPtr group)