Skip to content
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

"loadRobotGraspData" code in "simple pick place" #7

Merged
merged 2 commits into from
Jun 20, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions clam_pick_place/config/clam_grasp_data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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]
11 changes: 11 additions & 0 deletions clam_pick_place/launch/pick_place.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<launch>

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs to go inside the tags?


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

</launch>
6 changes: 5 additions & 1 deletion clam_pick_place/src/simple_pick_place.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,12 @@ int main(int argc, char **argv)
// ---------------------------------------------------------------------------------------------
// Load the Robot Viz Tools for publishing to Rviz
rviz_tools_.reset(new moveit_visual_tools::VisualTools( BASE_LINK, RVIZ_MARKER_TOPIC));


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