You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering a segmentation fault (exit code -11) when using the async_send_request method to set parameters in a ROS 2 C++ client. Below is the relevant code snippet:
When executing the above code, the program exits with code -11 at the spin_until_future_complete call.
Additional information
The direct use of ros2 service call from the command line works correctly, and its implementation in Python at ros2cli GitHub resembles the C++ code I am using.
An alternative approach, using a promise and callback with async_send_request, does work as shown below. This approach is inspired by the implementation in rclcpp::SyncParametersClient:
Bug report
Required Info:
Steps to reproduce issue
I am encountering a segmentation fault (exit code -11) when using the async_send_request method to set parameters in a ROS 2 C++ client. Below is the relevant code snippet:
Actual behavior
When executing the above code, the program exits with code -11 at the spin_until_future_complete call.
Additional information
The direct use of
ros2 service call
from the command line works correctly, and its implementation in Python at ros2cli GitHub resembles the C++ code I am using.An alternative approach, using a promise and callback with async_send_request, does work as shown below. This approach is inspired by the implementation in rclcpp::SyncParametersClient:
Questions:
The text was updated successfully, but these errors were encountered: