Closed peterwarlg closed 1 month ago
Sigh. This whole thing is confusing because we have Fibonacci.action defined three times:
That said, if you follow the tutorial from https://docs.ros.org/en/humble/Tutorials/Intermediate/Creating-an-Action.html#defining-an-action to https://docs.ros.org/en/humble/Tutorials/Intermediate/Writing-an-Action-Server-Client/Cpp.html, it should do the right thing.
The action here is really to remove two of those three definitions of Fibonacci we have in the code; there is really no reason for three copies.
with the Fibonacci.action file defined in official action tutorial as:
Code here should be modified to
auto & sequence = feedback->partial_sequence;
, otherwise it cannot be compiled successfullyhttps://github.com/ros2/examples/blob/8a9fbfb54ffb600728644f2f310a8f4b1e23d5b6/rclcpp/actions/minimal_action_server/member_functions.cpp#L76