hpp-core  4.9.0
Implement basic classes for canonical path planning for kinematic chains.
hpp::core::plugin Namespace Reference

Functions

std::string findPluginLibrary (const std::string &name)
 
bool loadPlugin (const std::string &lib, ProblemSolver *ps)
 

Function Documentation

◆ findPluginLibrary()

std::string hpp::core::plugin::findPluginLibrary ( const std::string &  name)

Find the absolute path to a library named name.

Parameters
name
Returns
name if it is an absolute path. Otherwise, for each path in LD_LIBRARY_PATH environment variable, look for path/hppPlugins/name.
Exceptions
std::invalid_argumentif not valid file found.

◆ loadPlugin()

bool hpp::core::plugin::loadPlugin ( const std::string &  lib,
ProblemSolver ps 
)

Load a plugin into ProblemSolver

  1. Call findPluginLibrary
  2. Call dlopen and handle errors
  3. ProblemSolverPlugin::initialize with ps