5 #include <SimoxUtility/math/pose/pose.h>
6 #include <VirtualRobot/Nodes/RobotNode.h>
28 draw(gc, l, simox::color::GlasbeyLUT::at(_color_offset, 255));
34 draw(gch, l, simox::color::GlasbeyLUT::at(_color_offset, 255));
55 const auto&
s = side(gch);
56 const std::string name =
"grasp_" +
s.name +
"_" +
std::to_string(_color_offset++);
58 .file(
s.hand_model_package,
s.hand_model_path)
78 draw(side.
name, side, l, ax_len, ax_width, color_up, color_trans);
108 draw(
"", side, l, gpose, ax_len, ax_width, color_up, color_trans);
121 const Eigen::Vector3f hand_up =
122 simox::math::orientation(gpose) * side.
hand_up.normalized() * ax_len;
124 const Eigen::Vector3f transversal_outward =
125 simox::math::orientation(gpose) * side.
hand_transverse.normalized() * ax_len;
127 const Eigen::Vector3f tcp_pos = simox::math::position(gpose);
132 .fromTo(tcp_pos, tcp_pos + hand_up));
136 .fromTo(tcp_pos, tcp_pos + transversal_outward));
139 const grasp_candidate_drawer::side_data&
150 const auto nh =
rnh->getArm(
s);
151 const auto nh_w_rob = nh.addRobot(
robot);
152 auto&
data = _sides[
s];
154 data.hand_model_package = nh.getHandModelPackage();
155 data.hand_model_path = nh.getHandModelPath();
156 data.tcp_2_hroot = nh_w_rob.getTcp2HandRootTransform();