ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

How to open and close the OpenMAN IPULATOR gripper with the moveit_commander command.

asked 2020-04-23 22:57:34 -0500

willow gravatar image

Hello. I am writing the code for opening and closing the gripper of OpenManipulator using python using moveit_commander, but it does not work. Can anyone help me?

The openmanipulator controller is coming to lunch below. $ roslaunch open_manipulator_controller open_manipulator_controller.launch use_moveit:=true

In addition, the gripper opening and closing command, I am using "moveit_commander". $ from moveit_commander import MoveGroupCommander, RobotCommander

edit retag flag offensive close merge delete

Comments

Hey,
I think I have the same issue. Did you solved your problem?
I defined a group for gripper with joint End_effector_joint and links gripper_link and gripper_link_sub.
I use this piece of python code to control my gripper:
def control_grapper(self, joint_value): rospy.wait_for_service('/oma_pikachu/gripper_controller', timeout=5.) set_joint_position = rospy.ServiceProxy('/open_manipulator/gripper_controller', SetJointPosition) msg = open_manipulator_msgs.msg.JointPosition() msg.joint_name.append("gripper") msg.position.append(joint_value) resp1 = set_joint_position("arm", msg, 5) time.sleep(1.5) For some reason, it stay stuck at wait_for_service. What should be the argument of wait_for_service? I tried to inpu the controller for my gripper but it did not worked.
Thanks and best regard,
AL

alexLaborie gravatar image alexLaborie  ( 2022-12-01 02:20:08 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-05-30 13:08:11 -0500

Sai teja gravatar image

As far as I know, you need to configure a group for gripper in Moveit and add the respective joints to that group. Later you can call them by using use command in Moveit_commander. Please let me know if I answered your question correctly

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-04-23 22:57:34 -0500

Seen: 396 times

Last updated: Dec 01 '22