增加夹爪控制器切换
Some checks are pending
Lint / pre-commit (push) Waiting to run

This commit is contained in:
shen 2026-04-15 11:45:21 +08:00
parent 8aad6559b3
commit 3298016e2d

View File

@ -30,7 +30,9 @@ controller_manager:
type: joint_trajectory_controller/JointTrajectoryController type: joint_trajectory_controller/JointTrajectoryController
left_gripper_controller: left_gripper_controller:
type: position_controllers/GripperActionController type: forward_command_controller/ForwardCommandController
#使用action控制器时注释掉上面type参数使用下面的参数配置
# type: position_controllers/GripperActionController
right_forward_position_controller: right_forward_position_controller:
type: forward_command_controller/ForwardCommandController type: forward_command_controller/ForwardCommandController
@ -42,7 +44,9 @@ controller_manager:
type: joint_trajectory_controller/JointTrajectoryController type: joint_trajectory_controller/JointTrajectoryController
right_gripper_controller: right_gripper_controller:
type: position_controllers/GripperActionController type: forward_command_controller/ForwardCommandController
#使用action控制器时注释掉上面type参数使用下面的参数配置
# type: position_controllers/GripperActionController
left_forward_position_controller: left_forward_position_controller:
@ -103,11 +107,15 @@ left_joint_trajectory_controller:
left_gripper_controller: left_gripper_controller:
ros__parameters: ros__parameters:
joint: openarm_left_finger_joint1 joints:
command_interfaces: - openarm_left_finger_joint1
- position interface_name: position
state_interfaces: # 使用action控制器时注释掉上面interface_name和joints参数使用下面的参数配置
- position # joint: openarm_left_finger_joint1
# command_interfaces:
# - position
# state_interfaces:
# - position
right_forward_position_controller: right_forward_position_controller:
@ -168,8 +176,12 @@ right_joint_trajectory_controller:
right_gripper_controller: right_gripper_controller:
ros__parameters: ros__parameters:
joint: openarm_right_finger_joint1 joints:
command_interfaces: - openarm_right_finger_joint1
- position interface_name: position
state_interfaces: # 使用action控制器时注释掉上面interface_name和joints参数使用下面的参数配置
- position # joint: openarm_right_finger_joint1
# command_interfaces:
# - position
# state_interfaces:
# - position