Skip to content

Class nebula::agnocast_wrapper::ROS2Client

template <typename ServiceT>

ClassList > nebula > agnocast_wrapper > ROS2Client

  • #include <client.hpp>

Inherits the following classes: nebula::agnocast_wrapper::Client

Public Types inherited from nebula::agnocast_wrapper::Client

See nebula::agnocast_wrapper::Client

Type Name
typedef std::future< NEBULA_CLIENT_RESPONSE_PTR(ServiceT)> Future
typedef std::shared_future< NEBULA_CLIENT_RESPONSE_PTR(ServiceT)> SharedFuture
typedef std::shared_ptr< Client< ServiceT > > SharedPtr
typedef NEBULA_CLIENT_RESPONSE_PTR(ServiceT) SharedResponse

Public Functions

Type Name
virtual NEBULA_CLIENT_REQUEST_PTR (ServiceT) override
ROS2Client (rclcpp::Node * node, const std::string & service_name, const rclcpp::QoS & qos, rclcpp::CallbackGroup::SharedPtr group)
virtual async_send_request (NEBULA_CLIENT_REQUEST_PTR(ServiceT) && request) override
async_send_request (NEBULA_CLIENT_REQUEST_PTR(ServiceT) && request, std::function< void(NEBULA_CLIENT_SHARED_FUTURE(ServiceT))> callback) override
virtual const char * get_service_name () override const
virtual bool service_is_ready () override const

Public Functions inherited from nebula::agnocast_wrapper::Client

See nebula::agnocast_wrapper::Client

Type Name
virtual NEBULA_CLIENT_REQUEST_PTR (ServiceT) = 0
virtual FutureAndRequestId async_send_request (NEBULA_CLIENT_REQUEST_PTR(ServiceT) && request) = 0
virtual SharedFutureAndRequestId async_send_request (NEBULA_CLIENT_REQUEST_PTR(ServiceT) && request, std::function< void(SharedFuture)> callback) = 0
FutureAndRequestId async_send_request (const std::shared_ptr< typename ServiceT::Request > & request)
SharedFutureAndRequestId async_send_request (const std::shared_ptr< typename ServiceT::Request > & request, std::function< void(SharedFuture)> callback)
virtual const char * get_service_name () const = 0
virtual bool service_is_ready () const = 0
bool wait_for_service (std::chrono::duration< RepT, RatioT > timeout=std::chrono::nanoseconds(-1)) const
virtual ~Client () = default

Protected Functions

Type Name
virtual bool wait_for_service_impl (std::chrono::nanoseconds timeout) override const

Protected Functions inherited from nebula::agnocast_wrapper::Client

See nebula::agnocast_wrapper::Client

Type Name
virtual bool wait_for_service_impl (std::chrono::nanoseconds timeout) const = 0

Protected Static Functions inherited from nebula::agnocast_wrapper::Client

See nebula::agnocast_wrapper::Client

Type Name
void throw_if_null (const std::shared_ptr< typename ServiceT::Request > & request)

Public Functions Documentation

function NEBULA_CLIENT_REQUEST_PTR

inline virtual nebula::agnocast_wrapper::ROS2Client::NEBULA_CLIENT_REQUEST_PTR (
    ServiceT
) override

Implements nebula::agnocast_wrapper::Client::NEBULA_CLIENT_REQUEST_PTR


function ROS2Client

inline explicit nebula::agnocast_wrapper::ROS2Client::ROS2Client (
    rclcpp::Node * node,
    const std::string & service_name,
    const rclcpp::QoS & qos,
    rclcpp::CallbackGroup::SharedPtr group
) 

function async_send_request [1/2]

inline virtual nebula::agnocast_wrapper::ROS2Client::async_send_request (
    NEBULA_CLIENT_REQUEST_PTR (ServiceT) && request
) override

Implements nebula::agnocast_wrapper::Client::async_send_request


function async_send_request [2/2]

inline nebula::agnocast_wrapper::ROS2Client::async_send_request (
    NEBULA_CLIENT_REQUEST_PTR (ServiceT) && request,
    std::function< void( NEBULA_CLIENT_SHARED_FUTURE (ServiceT))> callback
) override

function get_service_name

inline virtual const char * nebula::agnocast_wrapper::ROS2Client::get_service_name () override const

Implements nebula::agnocast_wrapper::Client::get_service_name


function service_is_ready

inline virtual bool nebula::agnocast_wrapper::ROS2Client::service_is_ready () override const

Implements nebula::agnocast_wrapper::Client::service_is_ready


Protected Functions Documentation

function wait_for_service_impl

inline virtual bool nebula::agnocast_wrapper::ROS2Client::wait_for_service_impl (
    std::chrono::nanoseconds timeout
) override const

Implements nebula::agnocast_wrapper::Client::wait_for_service_impl



The documentation for this class was generated from the following file src/nebula_core/nebula_core_ros/include/nebula_core_ros/agnocast_wrapper/client.hpp