rclcpp
beta1
C++ ROS Client Library API
|
#include <service.hpp>
Public Member Functions | |
ServiceBase (std::shared_ptr< rcl_node_t > node_handle, const std::string &service_name) | |
ServiceBase (std::shared_ptr< rcl_node_t > node_handle) | |
virtual | ~ServiceBase () |
std::string | get_service_name () |
const rcl_service_t * | get_service_handle () |
virtual std::shared_ptr< void > | create_request ()=0 |
virtual std::shared_ptr< rmw_request_id_t > | create_request_header ()=0 |
virtual void | handle_request (std::shared_ptr< rmw_request_id_t > request_header, std::shared_ptr< void > request)=0 |
Protected Attributes | |
std::shared_ptr< rcl_node_t > | node_handle_ |
rcl_service_t * | service_handle_ = nullptr |
std::string | service_name_ |
bool | owns_rcl_handle_ = true |
rclcpp::service::ServiceBase::ServiceBase | ( | std::shared_ptr< rcl_node_t > | node_handle, |
const std::string & | service_name | ||
) |
|
explicit |
|
virtual |
std::string rclcpp::service::ServiceBase::get_service_name | ( | ) |
const rcl_service_t* rclcpp::service::ServiceBase::get_service_handle | ( | ) |
|
pure virtual |
Implemented in rclcpp::service::Service< ServiceT >, rclcpp::service::Service< rcl_interfaces::srv::DescribeParameters >, rclcpp::service::Service< rcl_interfaces::srv::GetParameterTypes >, rclcpp::service::Service< rcl_interfaces::srv::ListParameters >, rclcpp::service::Service< rcl_interfaces::srv::SetParameters >, rclcpp::service::Service< rcl_interfaces::srv::SetParametersAtomically >, and rclcpp::service::Service< rcl_interfaces::srv::GetParameters >.
|
pure virtual |
Implemented in rclcpp::service::Service< ServiceT >, rclcpp::service::Service< rcl_interfaces::srv::DescribeParameters >, rclcpp::service::Service< rcl_interfaces::srv::GetParameterTypes >, rclcpp::service::Service< rcl_interfaces::srv::ListParameters >, rclcpp::service::Service< rcl_interfaces::srv::SetParameters >, rclcpp::service::Service< rcl_interfaces::srv::SetParametersAtomically >, and rclcpp::service::Service< rcl_interfaces::srv::GetParameters >.
|
pure virtual |
Implemented in rclcpp::service::Service< ServiceT >, rclcpp::service::Service< rcl_interfaces::srv::DescribeParameters >, rclcpp::service::Service< rcl_interfaces::srv::GetParameterTypes >, rclcpp::service::Service< rcl_interfaces::srv::ListParameters >, rclcpp::service::Service< rcl_interfaces::srv::SetParameters >, rclcpp::service::Service< rcl_interfaces::srv::SetParametersAtomically >, and rclcpp::service::Service< rcl_interfaces::srv::GetParameters >.
|
protected |
|
protected |
|
protected |
|
protected |