Tesseract
Motion Planning Environment
|
#include <kinematics_plugin_factory.h>
Public Member Functions | |
KinematicsPluginFactory () | |
~KinematicsPluginFactory () | |
KinematicsPluginFactory (const KinematicsPluginFactory &)=default | |
KinematicsPluginFactory & | operator= (const KinematicsPluginFactory &)=default |
KinematicsPluginFactory (KinematicsPluginFactory &&)=default | |
KinematicsPluginFactory & | operator= (KinematicsPluginFactory &&)=default |
KinematicsPluginFactory (YAML::Node config) | |
Load plugins from yaml node. More... | |
KinematicsPluginFactory (const tesseract_common::fs::path &config) | |
Load plugins from file path. More... | |
KinematicsPluginFactory (const std::string &config) | |
Load plugins from string. More... | |
void | addSearchPath (const std::string &path) |
Add location for the plugin loader to search. More... | |
std::set< std::string > | getSearchPaths () const |
Get the plugin search paths. More... | |
void | addSearchLibrary (const std::string &library_name) |
Add a library to search for plugin name. More... | |
std::set< std::string > | getSearchLibraries () const |
Get the plugin search libraries. More... | |
void | addFwdKinPlugin (const std::string &group_name, const std::string &solver_name, tesseract_common::PluginInfo plugin_info) |
Add a forward kinematics plugin to the manager. More... | |
std::map< std::string, tesseract_common::PluginInfoContainer > | getFwdKinPlugins () const |
Get the map of forward kinematic plugins. More... | |
void | removeFwdKinPlugin (const std::string &group_name, const std::string &solver_name) |
remove forward kinematics plugin from the manager More... | |
void | setDefaultFwdKinPlugin (const std::string &group_name, const std::string &solver_name) |
Set a groups default forward kinematics solver. More... | |
std::string | getDefaultFwdKinPlugin (const std::string &group_name) const |
Get the default forward kinematics solver for a group. More... | |
void | addInvKinPlugin (const std::string &group_name, const std::string &solver_name, tesseract_common::PluginInfo plugin_info) |
Add a inverse kinematics plugin to the manager. More... | |
std::map< std::string, tesseract_common::PluginInfoContainer > | getInvKinPlugins () const |
Get the map of inverse kinematic plugins. More... | |
void | removeInvKinPlugin (const std::string &group_name, const std::string &solver_name) |
remove inverse kinematics plugin from the manager More... | |
void | setDefaultInvKinPlugin (const std::string &group_name, const std::string &solver_name) |
Set a groups default inverse kinematics solver. More... | |
std::string | getDefaultInvKinPlugin (const std::string &group_name) const |
Get the default forward inverse solver for a group. More... | |
ForwardKinematics::UPtr | createFwdKin (const std::string &group_name, const std::string &solver_name, const tesseract_scene_graph::SceneGraph &scene_graph, const tesseract_scene_graph::SceneState &scene_state) const |
Get forward kinematics object given group name and solver name. More... | |
InverseKinematics::UPtr | createInvKin (const std::string &group_name, const std::string &solver_name, const tesseract_scene_graph::SceneGraph &scene_graph, const tesseract_scene_graph::SceneState &scene_state) const |
Get inverse kinematics object given group name and solver name. More... | |
ForwardKinematics::UPtr | createFwdKin (const std::string &solver_name, const tesseract_common::PluginInfo &plugin_info, const tesseract_scene_graph::SceneGraph &scene_graph, const tesseract_scene_graph::SceneState &scene_state) const |
Get forward kinematics object given plugin info. More... | |
InverseKinematics::UPtr | createInvKin (const std::string &solver_name, const tesseract_common::PluginInfo &plugin_info, const tesseract_scene_graph::SceneGraph &scene_graph, const tesseract_scene_graph::SceneState &scene_state) const |
Get inverse kinematics object given plugin info. More... | |
void | saveConfig (const tesseract_common::fs::path &file_path) const |
Save the plugin information to a yaml config file. More... | |
YAML::Node | getConfig () const |
Get the plugin information config as a yaml node. More... | |
Private Attributes | |
std::map< std::string, FwdKinFactory::Ptr > | fwd_kin_factories_ |
std::map< std::string, InvKinFactory::Ptr > | inv_kin_factories_ |
std::map< std::string, tesseract_common::PluginInfoContainer > | fwd_plugin_info_ |
std::map< std::string, tesseract_common::PluginInfoContainer > | inv_plugin_info_ |
tesseract_common::PluginLoader | plugin_loader_ |
tesseract_kinematics::KinematicsPluginFactory::KinematicsPluginFactory | ( | ) |
|
default |
|
default |
|
default |
tesseract_kinematics::KinematicsPluginFactory::KinematicsPluginFactory | ( | YAML::Node | config | ) |
Load plugins from yaml node.
config | The config node |
tesseract_kinematics::KinematicsPluginFactory::KinematicsPluginFactory | ( | const tesseract_common::fs::path & | config | ) |
Load plugins from file path.
config | The config file path |
tesseract_kinematics::KinematicsPluginFactory::KinematicsPluginFactory | ( | const std::string & | config | ) |
Load plugins from string.
config | The config string |
void tesseract_kinematics::KinematicsPluginFactory::addFwdKinPlugin | ( | const std::string & | group_name, |
const std::string & | solver_name, | ||
tesseract_common::PluginInfo | plugin_info | ||
) |
Add a forward kinematics plugin to the manager.
group_name | The group name |
solver_name | The solver name |
plugin_info | The plugin information |
void tesseract_kinematics::KinematicsPluginFactory::addInvKinPlugin | ( | const std::string & | group_name, |
const std::string & | solver_name, | ||
tesseract_common::PluginInfo | plugin_info | ||
) |
Add a inverse kinematics plugin to the manager.
group_name | The group name |
solver_name | The solver name |
plugin_info | The plugin information |
void tesseract_kinematics::KinematicsPluginFactory::addSearchLibrary | ( | const std::string & | library_name | ) |
Add a library to search for plugin name.
library_name | The library name without the prefix or suffix |
void tesseract_kinematics::KinematicsPluginFactory::addSearchPath | ( | const std::string & | path | ) |
Add location for the plugin loader to search.
path | The full path to the directory |
ForwardKinematics::UPtr tesseract_kinematics::KinematicsPluginFactory::createFwdKin | ( | const std::string & | group_name, |
const std::string & | solver_name, | ||
const tesseract_scene_graph::SceneGraph & | scene_graph, | ||
const tesseract_scene_graph::SceneState & | scene_state | ||
) | const |
Get forward kinematics object given group name and solver name.
This looks for kinematics plugin info added using addFwdKinPlugin. If not found nullptr is returned.
group_name | The group name |
solver_name | The solver |
scene_graph | The scene graph |
scene_state | The scene state |
ForwardKinematics::UPtr tesseract_kinematics::KinematicsPluginFactory::createFwdKin | ( | const std::string & | solver_name, |
const tesseract_common::PluginInfo & | plugin_info, | ||
const tesseract_scene_graph::SceneGraph & | scene_graph, | ||
const tesseract_scene_graph::SceneState & | scene_state | ||
) | const |
Get forward kinematics object given plugin info.
plugin_info | The plugin information to create kinematics object |
scene_graph | The scene graph |
scene_state | The scene state |
InverseKinematics::UPtr tesseract_kinematics::KinematicsPluginFactory::createInvKin | ( | const std::string & | group_name, |
const std::string & | solver_name, | ||
const tesseract_scene_graph::SceneGraph & | scene_graph, | ||
const tesseract_scene_graph::SceneState & | scene_state | ||
) | const |
Get inverse kinematics object given group name and solver name.
This looks for kinematics plugin info added using addInvKinPlugin. If not found nullptr is returned.
group_name | The group name |
solver_name | The solver |
scene_graph | The scene graph |
scene_state | The scene state |
InverseKinematics::UPtr tesseract_kinematics::KinematicsPluginFactory::createInvKin | ( | const std::string & | solver_name, |
const tesseract_common::PluginInfo & | plugin_info, | ||
const tesseract_scene_graph::SceneGraph & | scene_graph, | ||
const tesseract_scene_graph::SceneState & | scene_state | ||
) | const |
Get inverse kinematics object given plugin info.
plugin_info | The plugin information to create kinematics object |
scene_graph | The scene graph |
scene_state | The scene state |
YAML::Node tesseract_kinematics::KinematicsPluginFactory::getConfig | ( | ) | const |
Get the plugin information config as a yaml node.
std::string tesseract_kinematics::KinematicsPluginFactory::getDefaultFwdKinPlugin | ( | const std::string & | group_name | ) | const |
Get the default forward kinematics solver for a group.
group_name | The group |
std::string tesseract_kinematics::KinematicsPluginFactory::getDefaultInvKinPlugin | ( | const std::string & | group_name | ) | const |
Get the default forward inverse solver for a group.
group_name | The group |
std::map< std::string, tesseract_common::PluginInfoContainer > tesseract_kinematics::KinematicsPluginFactory::getFwdKinPlugins | ( | ) | const |
Get the map of forward kinematic plugins.
std::map< std::string, tesseract_common::PluginInfoContainer > tesseract_kinematics::KinematicsPluginFactory::getInvKinPlugins | ( | ) | const |
Get the map of inverse kinematic plugins.
std::set< std::string > tesseract_kinematics::KinematicsPluginFactory::getSearchLibraries | ( | ) | const |
Get the plugin search libraries.
std::set< std::string > tesseract_kinematics::KinematicsPluginFactory::getSearchPaths | ( | ) | const |
Get the plugin search paths.
|
default |
|
default |
void tesseract_kinematics::KinematicsPluginFactory::removeFwdKinPlugin | ( | const std::string & | group_name, |
const std::string & | solver_name | ||
) |
remove forward kinematics plugin from the manager
group_name | The group name |
solver_name | The solver name |
void tesseract_kinematics::KinematicsPluginFactory::removeInvKinPlugin | ( | const std::string & | group_name, |
const std::string & | solver_name | ||
) |
remove inverse kinematics plugin from the manager
group_name | The group name |
solver_name | The solver name |
void tesseract_kinematics::KinematicsPluginFactory::saveConfig | ( | const tesseract_common::fs::path & | file_path | ) | const |
Save the plugin information to a yaml config file.
file_path | The file path |
void tesseract_kinematics::KinematicsPluginFactory::setDefaultFwdKinPlugin | ( | const std::string & | group_name, |
const std::string & | solver_name | ||
) |
Set a groups default forward kinematics solver.
A group can have multiple inverse kinematics solvers
group_name | The group name |
solver_name | The solver name |
void tesseract_kinematics::KinematicsPluginFactory::setDefaultInvKinPlugin | ( | const std::string & | group_name, |
const std::string & | solver_name | ||
) |
Set a groups default inverse kinematics solver.
A group can have multiple inverse kinematics solvers
group_name | The group name |
solver_name | The solver name |
|
mutableprivate |
|
private |
|
mutableprivate |
|
private |
|
private |