|
nros C++ API
Lightweight ROS 2 client for embedded real-time systems (C++ headers)
|
#include <action_client.hpp>
Public Member Functions | |
| SendGoalOptions () | |
Public Attributes | |
| void * | context |
| 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. | |
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.
|
inline |
| void* nros::ActionClient< A >::SendGoalOptions::context |
User context pointer passed to all callbacks.
| 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.
| 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.
| 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.