1#ifndef _WRENCH_ACTION_SERVER_HPP
2#define _WRENCH_ACTION_SERVER_HPP
4#include <geometry_msgs/msg/wrench_stamped.hpp>
5#include <wrench_action_sample_msgs/action/wrench.hpp>
7#include "rclcpp_action/rclcpp_action.hpp"
18 using Wrench = wrench_action_sample_msgs::action::Wrench;
20 using WrenchMsg = geometry_msgs::msg::WrenchStamped;
26 explicit WrenchActionServer(
const rclcpp::NodeOptions & options = rclcpp::NodeOptions());
29 rclcpp_action::Server<Wrench>::SharedPtr action_server_;
30 rclcpp::Publisher<WrenchMsg>::SharedPtr publisher_;
38 rclcpp_action::GoalResponse handle_goal(
39 const rclcpp_action::GoalUUID & uuid, std::shared_ptr<const Wrench::Goal> goal);
46 rclcpp_action::CancelResponse handle_cancel(
47 const std::shared_ptr<GoalHandleApplyWrench> goal_handle);
54 void handle_accepted(
const std::shared_ptr<GoalHandleApplyWrench> goal_handle);
61 void execute(
const std::shared_ptr<GoalHandleApplyWrench> goal_handle);
Action Server node that publishes WrenchStamped messages.
Definition: wrench_action_server.hpp:16
wrench_action_sample_msgs::action::Wrench Wrench
Definition: wrench_action_server.hpp:18
rclcpp_action::ServerGoalHandle< Wrench > GoalHandleApplyWrench
Definition: wrench_action_server.hpp:19
geometry_msgs::msg::WrenchStamped WrenchMsg
Definition: wrench_action_server.hpp:20