hand->open(Hand::GRASP, true);
hand->close(Hand::SPREAD, true);
}
- for (size_t i = 0; i < DOF; i++)
- jp_cmd[i] = 0.0;
- wam.moveTo(jp_cmd, true);
- jp_home[3] -= 0.3;
- wam.moveTo(jp_home, true);
- jp_home[3] += 0.3;
- wam.moveTo(jp_home, true);
+ wam.moveHome();
return true;
}
pose_cmd = boost::make_tuple(cp_cmd, ortn_cmd);
- //wam.moveTo(pose_cmd, false); //(TODO:KM Update Libbarrett API for Pose Moves)
- ROS_INFO("Pose Commands for WAM not yet supported by API");
- return false;
+ wam.moveTo(pose_cmd, false); //(TODO:KM Update Libbarrett API for Pose Moves)
+ //ROS_INFO("Pose Commands for WAM not yet supported by API");
+ return true;
}
//Function to command a cartesian move to the WAM
std::vector<int> fingerTip = hand->getFingertipTorque();
Hand::jp_type hi = hand->getInnerLinkPosition(); // get finger positions information
Hand::jp_type ho = hand->getOuterLinkPosition();
- //Normalized raw pressure values to interpretable measurements.
for (int i = 0; i < tps.size(); i++)
{
TactilePuck::v_type pressures(tps[i]->getFullData());