nros C++ API
Lightweight ROS 2 client for embedded real-time systems (C++ headers)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
nros::ActionClient< A >::SendGoalOptions Struct Reference

#include <action_client.hpp>

Public Member Functions

 SendGoalOptions ()
 

Public Attributes

voidcontext
 User context pointer passed to all callbacks.
 
void(* feedback )(const uint8_t goal_id[16], const uint8_t *data, size_t len, void *ctx)
 Called when feedback is received for the goal.
 
void(* goal_response )(bool accepted, const uint8_t goal_id[16], void *ctx)
 Called when the server accepts or rejects the goal.
 
void(* result )(const uint8_t goal_id[16], int32_t status, const uint8_t *data, size_t len, void *ctx)
 Called when the result is received.
 

Detailed Description

template<typename A>
struct nros::ActionClient< A >::SendGoalOptions

Options for async goal sending (mirrors rclcpp SendGoalOptions).

Set callback pointers before calling send_goal_async(). Callbacks are invoked during spin_once() when the corresponding response arrives. All callbacks receive the context pointer for user state.

Constructor & Destructor Documentation

◆ SendGoalOptions()

template<typename A >
nros::ActionClient< A >::SendGoalOptions::SendGoalOptions ( )
inline

Member Data Documentation

◆ context

template<typename A >
void* nros::ActionClient< A >::SendGoalOptions::context

User context pointer passed to all callbacks.

◆ feedback

template<typename A >
void(* nros::ActionClient< A >::SendGoalOptions::feedback) (const uint8_t goal_id[16], const uint8_t *data, size_t len, void *ctx)

Called when feedback is received for the goal.

◆ goal_response

template<typename A >
void(* nros::ActionClient< A >::SendGoalOptions::goal_response) (bool accepted, const uint8_t goal_id[16], void *ctx)

Called when the server accepts or rejects the goal.

◆ result

template<typename A >
void(* nros::ActionClient< A >::SendGoalOptions::result) (const uint8_t goal_id[16], int32_t status, const uint8_t *data, size_t len, void *ctx)

Called when the result is received.


The documentation for this struct was generated from the following file: