Skip to content

Commit

Permalink
Feedback must include goal id
Browse files Browse the repository at this point in the history
  • Loading branch information
sloretz committed Nov 30, 2018
1 parent a77cc11 commit 784edbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions rclcpp_action/include/rclcpp_action/server_goal_handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class ServerGoalHandle : public ServerGoalHandleBase
void
publish_feedback(std::shared_ptr<typename ACTION::Feedback> feedback_msg)
{
feedback_msg->uuid = uuid_;
_publish_feedback(std::static_pointer_cast<void>(feedback_msg));
}

Expand Down
1 change: 1 addition & 0 deletions rclcpp_action/test/test_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ TEST_F(TestServer, publish_feedback)
ASSERT_EQ(1u, received_msgs.size());
auto & msg = received_msgs.back();
ASSERT_EQ(sent_message->sequence, msg->sequence);
ASSERT_EQ(uuid, msg->uuid);
}

TEST_F(TestServer, get_result)
Expand Down

0 comments on commit 784edbd

Please sign in to comment.