- Based on the
jade-develbranch ofrobotiq, we have built our own fork with theirg-jadebranch.
- We are using the original URDF
robotiq/robotiq_s_model_visualization/cfg/robotiq_hand_macro.urdf.xacrofromjade-develbranch ofrobotiq
roslaunch robotiq_s_model_articulated_gazebo robotiq_gripper_empty_world.launchlibRobotiqHandPlugin_controlMsg.sohere will publish the joint states of the gripper to/left_hand/joint_states- This/left_hand/joint_statesis defined here- And then the
joint_state_publisherwill publish the information at/left_hand/joint_statesinside the\source_listforward to/joint_states. - Then the
robot_state_publisherwill use the information at/joint_statesto publish thetf, so in RVIZ, you can view the robot usingRobotModel.
-
roslaunch robotiq_s_model_articulated_gazebo robotiq_gripper_empty_world.launch -
To close it half-way
- If we are using the
RobotiqHandPluginpluginrostopic pub --once left_hand/command robotiq_s_model_articulated_msgs/SModelRobotOutput {1,0,1,0,0,0,127,255,0,155,0,0,255,0,0,0,0,0}- all the way
rostopic pub --once left_hand/command robotiq_s_model_articulated_msgs/SModelRobotOutput {1,0,1,0,0,0,255,255,0,155,0,0,255,0,0,0,0,0}
- If we are using the
RobotiqHandPlugin_controlMsgpluginrostopic pub --once /left_hand/SModelRobotOutput robotiq_s_model_control/SModel_robot_output {1,0,1,0,0,0,127,255,0,155,0,0,255,0,0,0,0,0,0}- all the way
rostopic pub --once /left_hand/SModelRobotOutput robotiq_s_model_control/SModel_robot_output {1,0,1,0,0,0,127,255,0,255,0,0,255,0,0,0,0,0,0}
- If we are using the
-
To fully open it
- If we are using the
RobotiqHandPluginpluginrostopic pub --once left_hand/command robotiq_s_model_articulated_msgs/SModelRobotOutput {1,0,1,0,0,0,0,0,0,155,0,0,0,0,0,0,0,0}
- If we are using the
RobotiqHandPlugin_controlMsgpluginrostopic pub --once /left_hand/SModelRobotOutput robotiq_s_model_control/SModel_robot_output {1,0,1,0,0,0,127,0,0,0,0,0,0,0,0,0,0,0,0}
- If we are using the
- You have to add
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")toCMakeLists.txt - Then for the Gazebo plugin
c++files, you might have to changeconsttoconstexpr. Otherwise it won't compile.