Skip to content

Commit

Permalink
change signature of publish_feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Feb 26, 2019
1 parent b73e5df commit 21c011a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rclcpp_action/include/rclcpp_action/server_goal_handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,12 @@ class ServerGoalHandle : public ServerGoalHandleBase
* \param[in] feedback_msg the message to publish to clients.
*/
void
publish_feedback(std::shared_ptr<typename ActionT::Impl::FeedbackMessage> feedback_msg)
publish_feedback(std::shared_ptr<typename ActionT::Feedback> feedback_msg)
{
feedback_msg->goal_id.uuid = uuid_;
publish_feedback_(feedback_msg);
auto feedback_message = std::make_shared<typename ActionT::Impl::FeedbackMessage>();
feedback_message->goal_id.uuid = uuid_;
feedback_message->feedback = *feedback_msg;
publish_feedback_(feedback_message);
}

// TODO(sloretz) which exception is raised?
Expand Down

0 comments on commit 21c011a

Please sign in to comment.