42 if (scale < std::numeric_limits<double>::epsilon())
47 if (scale > std::numeric_limits<double>::max())
62 if (padding > std::numeric_limits<double>::max())
73 : robot_model_(model), world_(new
World()), world_const_(world_)
80 const std::vector<const moveit::core::LinkModel*>& links =
robot_model_->getLinkModelsWithCollisionGeometry();
81 for (
auto link : links)
90 : robot_model_(model), world_(world), world_const_(world_)
97 const std::vector<const moveit::core::LinkModel*>& links =
robot_model_->getLinkModelsWithCollisionGeometry();
98 for (
auto link : links)
106 : robot_model_(other.robot_model_), world_(world), world_const_(world)
115 std::vector<std::string> u;
116 const std::vector<const moveit::core::LinkModel*>& links =
robot_model_->getLinkModelsWithCollisionGeometry();
117 for (
auto link : links)
120 u.push_back(link->getName());
131 std::vector<std::string> u;
132 const std::vector<const moveit::core::LinkModel*>& links =
robot_model_->getLinkModelsWithCollisionGeometry();
133 for (
auto link : links)
136 u.push_back(link->getName());
150 std::vector<std::string> u(1, link_name);
166 std::vector<std::string> u;
167 for (
const auto& link_pad_pair : padding)
173 u.push_back(link_pad_pair.first);
191 std::vector<std::string> u(1, link_name);
207 std::vector<std::string> u;
208 for (
const auto& link_scale_pair : scale)
211 link_scale_[link_scale_pair.first] = link_scale_pair.second;
213 u.push_back(link_scale_pair.first);
226 std::vector<std::string> u;
227 for (
const auto& p : padding)
233 u.push_back(p.link_name);
241 std::vector<std::string> u;
242 for (
const auto&
s : scale)
248 u.push_back(
s.link_name);
259 moveit_msgs::LinkPadding lp_msg;
260 lp_msg.link_name = lp.first;
261 lp_msg.padding = lp.second;
262 padding.push_back(lp_msg);
271 moveit_msgs::LinkScale ls_msg;
272 ls_msg.link_name = ls.first;
273 ls_msg.scale = ls.second;
274 scale.push_back(ls_msg);
286 world_ = std::make_shared<World>();