Skip to content

Commit

Permalink
Revert "Update for moveit_visual_tools API"
Browse files Browse the repository at this point in the history
This reverts commit fa139c0.
  • Loading branch information
dylanvaughn committed Apr 4, 2015
1 parent c0fb787 commit c98b6f3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions clam_pick_place/src/simple_pick_place.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,8 @@ bool pick(const geometry_msgs::Pose& block_pose, std::string block_name)
// Pick grasp
moveit_simple_grasps_->generateBlockGrasps( block_pose, grasp_data_, possible_grasps );

const moveit::core::JointModelGroup* ee_jmg
= visual_tools_->getSharedRobotState()->getRobotModel()->getJointModelGroup(grasp_data_.ee_group_);

// Visualize them
visual_tools_->publishAnimatedGrasps(possible_grasps, ee_jmg);
visual_tools_->publishAnimatedGrasps(possible_grasps, grasp_data_.ee_parent_link_);
//visual_tools_->publishGrasps(possible_grasps, grasp_data_.ee_parent_link_);

// Prevent collision with table
Expand Down Expand Up @@ -162,11 +159,8 @@ bool place(const MetaBlock block)
// Generate grasps
moveit_simple_grasps_->generateBlockGrasps( block.second, grasp_data_, possible_grasps );

const moveit::core::JointModelGroup* ee_jmg
= visual_tools_->getSharedRobotState()->getRobotModel()->getJointModelGroup(grasp_data_.ee_group_);

// Visualize them
visual_tools_->publishAnimatedGrasps(possible_grasps, ee_jmg);
visual_tools_->publishAnimatedGrasps(possible_grasps, grasp_data_.ee_parent_link_);
//visual_tools_->publishGrasps(possible_grasps, grasp_data_.ee_parent_link_);

// Convert 'grasps' to place_locations format
Expand Down Expand Up @@ -257,6 +251,7 @@ int main(int argc, char **argv)
// ---------------------------------------------------------------------------------------------
// Load the Robot Viz Tools for publishing to Rviz
visual_tools_.reset(new moveit_visual_tools::MoveItVisualTools( BASE_LINK, RVIZ_MARKER_TOPIC));
visual_tools_->loadEEMarker(grasp_data_.ee_group_, PLANNING_GROUP_NAME);

// ---------------------------------------------------------------------------------------------
// Load grasp generator
Expand Down

0 comments on commit c98b6f3

Please sign in to comment.