rclcpp
master
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 () |
rcl_service_t * | get_service_handle () |
const rcl_service_t * | get_service_handle () const |
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 Member Functions | |
rcl_node_t * | get_rcl_node_handle () |
const rcl_node_t * | get_rcl_node_handle () const |
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::ServiceBase::ServiceBase | ( | std::shared_ptr< rcl_node_t > | node_handle, |
const std::string & | service_name | ||
) |
|
explicit |
|
virtual |
std::string rclcpp::ServiceBase::get_service_name | ( | ) |
rcl_service_t* rclcpp::ServiceBase::get_service_handle | ( | ) |
const rcl_service_t* rclcpp::ServiceBase::get_service_handle | ( | ) | const |
|
pure virtual |
Implemented in rclcpp::Service< ServiceT >, rclcpp::Service< rcl_interfaces::srv::DescribeParameters >, rclcpp::Service< rcl_interfaces::srv::GetParameterTypes >, rclcpp::Service< rcl_interfaces::srv::ListParameters >, rclcpp::Service< rcl_interfaces::srv::SetParameters >, rclcpp::Service< rcl_interfaces::srv::SetParametersAtomically >, and rclcpp::Service< rcl_interfaces::srv::GetParameters >.
|
pure virtual |
Implemented in rclcpp::Service< ServiceT >, rclcpp::Service< rcl_interfaces::srv::DescribeParameters >, rclcpp::Service< rcl_interfaces::srv::GetParameterTypes >, rclcpp::Service< rcl_interfaces::srv::ListParameters >, rclcpp::Service< rcl_interfaces::srv::SetParameters >, rclcpp::Service< rcl_interfaces::srv::SetParametersAtomically >, and rclcpp::Service< rcl_interfaces::srv::GetParameters >.
|
pure virtual |
Implemented in rclcpp::Service< ServiceT >, rclcpp::Service< rcl_interfaces::srv::DescribeParameters >, rclcpp::Service< rcl_interfaces::srv::GetParameterTypes >, rclcpp::Service< rcl_interfaces::srv::ListParameters >, rclcpp::Service< rcl_interfaces::srv::SetParameters >, rclcpp::Service< rcl_interfaces::srv::SetParametersAtomically >, and rclcpp::Service< rcl_interfaces::srv::GetParameters >.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |