Skip to content

Need graps config file #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ltaoist opened this issue Jun 19, 2014 · 2 comments
Closed

Need graps config file #5

ltaoist opened this issue Jun 19, 2014 · 2 comments

Comments

@ltaoist
Copy link
Contributor

ltaoist commented Jun 19, 2014

grasp_data_.loadRobotGraspData has not been called. The old loadRobotGraspData has been remove in commit c341a81, but no new one added.

From the example in https://github.com/davetcoleman/moveit_simple_grasps/blob/b8eef918d842309d84c028065a5fa0476a88848a/src/simple_grasps_test.cpp line 92 and https://github.com/davetcoleman/moveit_simple_grasps/blob/b8eef918d842309d84c028065a5fa0476a88848a/config/baxter_grasp_data.yaml, does that it need a end_effector yaml config file and run the script by roslaunch and load such yaml as param ?

@ltaoist
Copy link
Contributor Author

ltaoist commented Jun 19, 2014

I try add a new yaml file from the old file and the example:

base_link: 'base_link'

gripper_group:
  end_effector_name: 'gripper_group'
  joints : ['gripper_finger_joint']
  pregrasp_posture : [0.0]
  grasp_posture : [1.0]
  end_effector_parent_link : 'gripper_roll_link'
  pregrasp_time_from_start : 4.0
  grasp_time_from_start : 4.0
  grasp_pose_to_eef : [0,0,0]    // What should this would be ?

and add this line in 'simple_pick_place.cpp'

  if(!grasp_data_.loadRobotGraspData(nh, EE_GROUP))
  {
      ROS_ERROR_STREAM_NAMED("simple_pick_place", "Cannot load end_effector");
      return 1;
  }
  // ---------------------------------------------------------------------------------------------
  // Load grasp generator
  moveit_simple_grasps_.reset(new moveit_simple_grasps::SimpleGrasps(rviz_tools_));

and the launch file :

<launch>

  <arg name="debug" default="true"/>
  <rosparam command="load" file="$(find clam_pick_place)/config/clam_grasp_data.yaml"/>

  <group>
    <node name="$(anon simple_pick_place)" type="simple_pick_place" pkg="clam_pick_place">
    </node>   
  </group>

</launch>

and it work ! (but not look correct) . I think it because the grasp_pose_to_eef is not right ...

@ltaoist ltaoist closed this as completed Jun 20, 2014
@ltaoist
Copy link
Contributor Author

ltaoist commented Jun 20, 2014

I open a new issuse for this #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant