Skip to content

Commit

Permalink
interface named changes as per control_msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinkum0009 committed Jan 2, 2025
1 parent 485abbf commit d7394e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@

#include <sensor_msgs/msg/joint_state.hpp>

#include "control_msgs/srv/set_config.hpp"
#include "control_msgs/msg/io_gripper_sensor.hpp"
#include "control_msgs/srv/set_io_gripper_config.hpp"
#include "control_msgs/msg/interface_value.hpp"
#include "control_msgs/msg/dynamic_interface_values.hpp"
#include "control_msgs/action/gripper.hpp"
#include "control_msgs/action/set_gripper_config.hpp"
#include "control_msgs/action/io_gripper_command.hpp"
#include "control_msgs/action/set_io_gripper_config.hpp"
#include "rclcpp_action/rclcpp_action.hpp"

namespace io_gripper_controller
Expand Down Expand Up @@ -193,14 +192,14 @@ class IOGripperController : public controller_interface::ControllerInterface

using ControllerModeSrvType = std_srvs::srv::SetBool;
using OpenCloseSrvType = std_srvs::srv::Trigger;
using ConfigSrvType = control_msgs::srv::SetConfig;
using ConfigSrvType = control_msgs::srv::SetIOGripperConfig;
using JointStateMsg = sensor_msgs::msg::JointState;
using EventStateMsg = sensor_msgs::msg::JointState;
using ConfigJointMsg = sensor_msgs::msg::JointState;
using DynInterfaceMsg = control_msgs::msg::DynamicInterfaceValues;
using GripperAction = control_msgs::action::Gripper;
using GripperAction = control_msgs::action::IOGripperCommand;
using GoalHandleGripper = rclcpp_action::ServerGoalHandle<GripperAction>;
using GripperConfigAction = control_msgs::action::SetGripperConfig;
using GripperConfigAction = control_msgs::action::SetIOGripperConfig;
using GoalHandleGripperConfig = rclcpp_action::ServerGoalHandle<GripperConfigAction>;

protected:
Expand Down Expand Up @@ -322,10 +321,10 @@ class IOGripperController : public controller_interface::ControllerInterface
rclcpp::CallbackGroup::SharedPtr open_service_callback_group_;
rclcpp::CallbackGroup::SharedPtr close_service_callback_group_;
rclcpp::CallbackGroup::SharedPtr reconfigure_service_callback_group_;
std::shared_ptr<control_msgs::action::Gripper_Feedback> gripper_feedback_;
std::shared_ptr<control_msgs::action::Gripper_Result> gripper_result_;
std::shared_ptr<control_msgs::action::SetGripperConfig_Feedback> gripper_config_feedback_;
std::shared_ptr<control_msgs::action::SetGripperConfig_Result> gripper_config_result_;
std::shared_ptr<control_msgs::action::IOGripperCommand_Feedback> gripper_feedback_;
std::shared_ptr<control_msgs::action::IOGripperCommand_Result> gripper_result_;
std::shared_ptr<control_msgs::action::SetIOGripperConfig_Feedback> gripper_config_feedback_;
std::shared_ptr<control_msgs::action::SetIOGripperConfig_Result> gripper_config_result_;

/**
* @brief Handles the goal for the gripper action.
Expand Down
2 changes: 1 addition & 1 deletion io_gripper_controller/test/test_io_gripper_controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ using JointStateMsg = io_gripper_controller::IOGripperController::JointStateMsg;
using OpenCloseSrvType = io_gripper_controller::IOGripperController::OpenCloseSrvType;
using ControllerModeSrvType = io_gripper_controller::IOGripperController::ControllerModeSrvType;
using EventStateMsg = io_gripper_controller::IOGripperController::EventStateMsg;
using ConfigSrvType = control_msgs::srv::SetConfig;
using ConfigSrvType = io_gripper_controller::IOGripperController::ConfigSrvType; // control_msgs::srv::SetIOGripperConfig;

using GripperAction = io_gripper_controller::IOGripperController::GripperAction;
using GoalHandleGripperAction = rclcpp_action::ClientGoalHandle<GripperAction>;
Expand Down

0 comments on commit d7394e4

Please sign in to comment.