|
nros C++ API
Lightweight ROS 2 client for embedded real-time systems (C++ headers)
|
#include <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).
Installed on the CLIENT with set_callbacks(), not passed per goal. Callbacks are invoked during spin_once() when the corresponding response arrives. All callbacks receive the context pointer for user state.
|
inline |
| void* rclcpp_action::Client< A >::SendGoalOptions::context |
User context pointer passed to all callbacks.
| void(* rclcpp_action::Client< 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(* rclcpp_action::Client< A >::SendGoalOptions::goal_response) (bool accepted, const uint8_t goal_id[16], void *ctx) |
Called when the server accepts or rejects the goal.
| void(* rclcpp_action::Client< 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.