diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-04-13 14:27:41 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-04-13 14:27:41 +0000 |
| commit | 0aaf4b690cbe3bc7b4313d9ca4abbfe06bc43e0a (patch) | |
| tree | 8ad4d44aa64426c686ece399849817a4b307526c | |
| parent | 9c42cfe42659d64e4f23b1117b9b0302f2d5c74c (diff) | |
automatic import of moveit-simple-controller-manager
| -rw-r--r-- | moveit-simple-controller-manager-remove-parallel-gripper-command.patch | 49 | ||||
| -rw-r--r-- | moveit-simple-controller-manager.spec | 5 |
2 files changed, 52 insertions, 2 deletions
diff --git a/moveit-simple-controller-manager-remove-parallel-gripper-command.patch b/moveit-simple-controller-manager-remove-parallel-gripper-command.patch new file mode 100644 index 0000000..d875987 --- /dev/null +++ b/moveit-simple-controller-manager-remove-parallel-gripper-command.patch @@ -0,0 +1,49 @@ +diff --git a/src/moveit_simple_controller_manager.cpp b/src/moveit_simple_controller_manager.cpp +--- a/src/moveit_simple_controller_manager.cpp ++++ b/src/moveit_simple_controller_manager.cpp +@@ -37,7 +37,6 @@ + + #include <moveit_simple_controller_manager/action_based_controller_handle.hpp> + #include <moveit_simple_controller_manager/gripper_command_controller_handle.hpp> +-#include <moveit_simple_controller_manager/parallel_gripper_command_controller_handle.hpp> + #include <moveit_simple_controller_manager/follow_joint_trajectory_controller_handle.hpp> + #include <boost/algorithm/string/join.hpp> + #include <pluginlib/class_list_macros.hpp> +@@ -182,37 +181,6 @@ + RCLCPP_INFO_STREAM(getLogger(), "Added GripperCommand controller for " << controller_name); + controllers_[controller_name] = new_handle; + } +- else if (type == "ParallelGripperCommand") +- { +- double max_effort; +- node_->get_parameter_or(makeParameterName(PARAM_BASE_NAME, controller_name, "max_effort"), max_effort, 0.0); +- if (max_effort > 0.0) +- { +- RCLCPP_INFO_STREAM(getLogger(), controller_name << " will command a max effort of: " << max_effort); +- } +- +- double max_velocity; +- node_->get_parameter_or(makeParameterName(PARAM_BASE_NAME, controller_name, "max_velocity"), max_velocity, +- 0.0); +- if (max_effort > 0.0) +- { +- RCLCPP_INFO_STREAM(getLogger(), controller_name << " will command a max velocity of: " << max_velocity); +- } +- +- new_handle = std::make_shared<ParallelGripperCommandControllerHandle>(node_, controller_name, action_ns, +- max_effort, max_velocity); +- +- if (controller_joints.size() > 1) +- { +- RCLCPP_WARN_STREAM(getLogger(), "ParallelGripperCommand controller only supports commanding a single joint " +- "and multiple joint names were specified. Assuming control of joint: " +- << controller_joints[0]); +- } +- static_cast<ParallelGripperCommandControllerHandle*>(new_handle.get())->setCommandJoint(controller_joints[0]); +- +- RCLCPP_INFO_STREAM(getLogger(), "Added ParallelGripperCommand controller for " << controller_name); +- controllers_[controller_name] = new_handle; +- } + else if (type == "FollowJointTrajectory") + { + new_handle = std::make_shared<FollowJointTrajectoryControllerHandle>(node_, controller_name, action_ns); diff --git a/moveit-simple-controller-manager.spec b/moveit-simple-controller-manager.spec index ea87570..b66fa5c 100644 --- a/moveit-simple-controller-manager.spec +++ b/moveit-simple-controller-manager.spec @@ -17,6 +17,7 @@ Summary: A generic, simple controller manager plugin for MoveIt. Url: http://moveit.ros.org License: BSD-3-Clause Source0: %{RosPkgName}-%{version}.tar.gz +Patch0: moveit-simple-controller-manager-remove-parallel-gripper-command.patch Requires: ros-%{ros_distro}-moveit-common Requires: ros-%{ros_distro}-moveit-core @@ -46,7 +47,7 @@ Provides: %{name}-runtime = %{version}-%{release} A generic, simple controller manager plugin for MoveIt. %prep -%autosetup -c -n moveit-simple-controller-manager-2.5.9 +%autosetup -p1 -n %{RosPkgName}-%{version} %build # Needed to bootstrap since the ros_workspace package does not yet exist. @@ -70,7 +71,7 @@ mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform} %if !0%{?with_tests} -DBUILD_TESTING=OFF \ %endif - ../%{RosPkgName}-%{version} + .. %make_build |
