57 const std::string& robot_description =
"robot_description",
58 double default_search_resolution = 0.0)
59 : node_(node), robot_description_(robot_description), default_search_resolution_(default_search_resolution)
71 const std::string& robot_description =
"robot_description",
72 double default_search_resolution = 0.0)
74 , robot_description_(robot_description)
75 , default_search_resolution_(default_search_resolution)
76 , default_solver_plugin_(solver_plugin)
77 , default_solver_timeout_(solve_timeout)
104 const rclcpp::Node::SharedPtr node_;
105 std::string robot_description_;
106 double default_search_resolution_;
108 MOVEIT_CLASS_FORWARD(KinematicsLoaderImpl);
109 KinematicsLoaderImplPtr loader_;
111 std::vector<std::string> groups_;
112 std::map<std::string, double> ik_timeout_;
115 std::string default_solver_plugin_;
116 double default_solver_timeout_;
Helper class for loading kinematics solvers.
KinematicsPluginLoader(const rclcpp::Node::SharedPtr &node, const std::string &robot_description="robot_description", double default_search_resolution=0.0)
Load the kinematics solvers based on information on the ROS parameter server. Take node as an argumen...
const std::map< std::string, double > & getIKTimeout() const
Get a map from group name to default IK timeout.
moveit::core::SolverAllocatorFn getLoaderFunction()
Get a function pointer that allocates and initializes a kinematics solver. If not previously called,...
KinematicsPluginLoader(const rclcpp::Node::SharedPtr &node, const std::string &solver_plugin, double solve_timeout, const std::string &robot_description="robot_description", double default_search_resolution=0.0)
Use a default kinematics solver (solver_plugin) for all the groups in the robot model....
const std::vector< std::string > & getKnownGroups() const
Get the groups for which the function pointer returned by getLoaderFunction() can allocate a solver.
MOVEIT_CLASS_FORWARD(KinematicsPluginLoader)
std::function< kinematics::KinematicsBasePtr(const JointModelGroup *)> SolverAllocatorFn
Function type that allocates a kinematics solver for a particular group.