13 auto& l =
side(
"Left");
14 auto& r =
side(
"Right");
16 l.hand_transverse = Eigen::Vector3f{0, 1, 0};
17 r.hand_transverse = Eigen::Vector3f{0, 1, 0};
18 l.hand_up = Eigen::Vector3f{-1, 0, -1};
19 r.hand_up = Eigen::Vector3f{+1, 0, -1};
20 l.tcp_shift = Eigen::Vector3f{0, -30, 0};
21 r.tcp_shift = Eigen::Vector3f{0, -30, 0};
62 throw std::logic_error{
"reached unreachable code"};
103 throw std::logic_error{
"reached unreachable code"};
144 throw std::logic_error{
"reached unreachable code"};
185 throw std::logic_error{
"reached unreachable code"};
226 throw std::logic_error{
"reached unreachable code"};
248 if (!(t_len < transverse_length_max && t_len > transverse_length_min))
250 s <<
"tr: " << t_len <<
" [" << transverse_length_min <<
", " << transverse_length_max <<
"] ";
252 if (!(u_len < upward_length_max && u_len > upward_length_min))
254 s <<
"up: " << u_len <<
" [" << upward_length_min <<
", " << upward_length_max <<
"] ";
256 if (!(f_len < forward_length_max && f_len > forward_length_min))
258 s <<
"fw: " << f_len <<
" [" << forward_length_min <<
", " << forward_length_max <<
"]";
263 armarx::grasping::GraspCandidatePtr
265 const std::string& provider_name
269 return make_candidate(provider_name,
side->
name,
272 armarx::grasping::GraspCandidatePtr
274 const std::string& provider_name,
275 const std::string& side_name,
280 return make_candidate(provider_name, side_name, robot->getGlobalPose());
282 armarx::grasping::GraspCandidatePtr
284 const std::string& provider_name,
285 const std::string& side_name,
289 armarx::grasping::GraspCandidatePtr gc =
new armarx::grasping::GraspCandidate;
292 gc->providerName = provider_name;
293 gc->side = side_name;
295 gc->objectType = armarx::objpose::UnknownObject;
296 gc->sourceFrame =
"root";
297 gc->targetFrame =
"root";
306 : _rnh{std::move(rnh)}, _robot{robot}
313 return _sides.at(
side);
320 if (_sides.count(
side))
322 return _sides.at(
side);
327 data.nh_arm_w_rob =
data.nh_arm.addRobot(_robot);
353 return {g.pose, g.approach, &
side};