Public Types | Public Member Functions | Protected Attributes | List of all members
pinocchio::CodeGenDifference< _Scalar > Struct Template Reference

#include <code-generator-algo.hpp>

Inheritance diagram for pinocchio::CodeGenDifference< _Scalar >:
Inheritance graph
[legend]

Public Types

typedef Base::ADConfigVectorType ADConfigVectorType
 
typedef Base::ADTangentVectorType ADTangentVectorType
 
typedef CodeGenBase< _Scalar > Base
 
typedef Base::MatrixXs MatrixXs
 
typedef Base::Model Model
 
typedef Base::Scalar Scalar
 
typedef Base::VectorXs VectorXs
 
- Public Types inherited from pinocchio::CodeGenBase< _Scalar >
enum  { Options = 0 }
 
typedef ADModel::ConfigVectorType ADConfigVectorType
 
typedef pinocchio::DataTpl< ADScalar, OptionsADData
 
typedef CppAD::ADFun< CGScalarADFun
 
typedef Eigen::Matrix< ADScalar, Eigen::Dynamic, Eigen::Dynamic, OptionsADMatrixXs
 
typedef pinocchio::ModelTpl< ADScalar, OptionsADModel
 
typedef CppAD::AD< CGScalarADScalar
 
typedef ADModel::TangentVectorType ADTangentVectorType
 
typedef Eigen::Matrix< ADScalar, Eigen::Dynamic, 1, OptionsADVectorXs
 
typedef pinocchio::DataTpl< CGScalar, OptionsCGData
 
typedef pinocchio::ModelTpl< CGScalar, OptionsCGModel
 
typedef CppAD::cg::CG< ScalarCGScalar
 
typedef Model::ConfigVectorType ConfigVectorType
 
typedef pinocchio::DataTpl< Scalar, OptionsData
 
typedef Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic, OptionsMatrixXs
 
typedef pinocchio::ModelTpl< Scalar, OptionsModel
 
typedef Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic, Options|Eigen::RowMajor > RowMatrixXs
 
typedef _Scalar Scalar
 
typedef Model::TangentVectorType TangentVectorType
 
typedef Eigen::Matrix< Scalar, Eigen::Dynamic, 1, OptionsVectorXs
 

Public Member Functions

void buildMap ()
 build the mapping Y = f(X) More...
 
 CodeGenDifference (const Model &model, const std::string &function_name="difference", const std::string &library_name="cg_difference_eval")
 
template<typename ConfigVectorType1 , typename ConfigVectorType2 , typename TangentVector >
void evalFunction (const Eigen::MatrixBase< ConfigVectorType1 > &q0, const Eigen::MatrixBase< ConfigVectorType2 > &q1, const Eigen::MatrixBase< TangentVector > &v)
 
template<typename Vector >
void evalFunction (const Eigen::MatrixBase< Vector > &x)
 
- Public Member Functions inherited from pinocchio::CodeGenBase< _Scalar >
 CodeGenBase (const Model &model, const Eigen::DenseIndex dim_input, const Eigen::DenseIndex dim_output, const std::string &function_name, const std::string &library_name)
 
CppAD::cg::ModelCSourceGen< Scalar > & codeGenerator ()
 
void compileAndLoadLib (const std::string &gcc_path)
 
void compileLib (const std::string &gcc_path="/usr/bin/gcc", const std::string &compile_options="-Ofast")
 
template<typename Vector >
void evalFunction (const Eigen::MatrixBase< Vector > &x)
 
template<typename Vector >
void evalJacobian (const Eigen::MatrixBase< Vector > &x)
 
bool existLib () const
 
Eigen::DenseIndex getInputDimension () const
 Dimension of the input vector. More...
 
Eigen::DenseIndex getOutputDimension () const
 Dimension of the output vector. More...
 
void initLib ()
 
void loadLib (const bool generate_if_not_exist=true, const std::string &gcc_path="/usr/bin/gcc", const std::string &compile_options="-Ofast")
 
virtual ~CodeGenBase ()
 

Protected Attributes

ADFun ad_fun
 
ADModel ad_model
 
ADConfigVectorType ad_q0
 
ADConfigVectorType ad_q1
 
ADVectorXs ad_X
 
ADVectorXs ad_Y
 
VectorXs res
 
VectorXs x
 
VectorXs y
 
- Protected Attributes inherited from pinocchio::CodeGenBase< _Scalar >
ADTangentVectorType ad_a
 
ADData ad_data
 
ADTangentVectorType ad_dq
 
ADFun ad_fun
 
ADModel ad_model
 
ADConfigVectorType ad_q
 
ADConfigVectorType ad_q_plus
 
ADTangentVectorType ad_v
 
ADVectorXs ad_X
 
ADVectorXs ad_Y
 
bool build_forward
 Options to generate or not the source code for the evaluation function. More...
 
bool build_jacobian
 Options to build or not the Jacobian of he function. More...
 
std::unique_ptr< CppAD::cg::ModelCSourceGen< Scalar > > cgen_ptr
 
std::unique_ptr< CppAD::cg::DynamicLib< Scalar > > dynamicLib_ptr
 
std::unique_ptr< CppAD::cg::DynamicModelLibraryProcessor< Scalar > > dynamicLibManager_ptr
 
const std::string function_name
 Name of the function. More...
 
std::unique_ptr< CppAD::cg::GenericModel< Scalar > > generatedFun_ptr
 
RowMatrixXs jac
 
std::unique_ptr< CppAD::cg::ModelLibraryCSourceGen< Scalar > > libcgen_ptr
 
const std::string library_name
 Name of the library. More...
 
VectorXs y
 

Detailed Description

template<typename _Scalar>
struct pinocchio::CodeGenDifference< _Scalar >

Definition at line 1135 of file code-generator-algo.hpp.

Member Typedef Documentation

◆ ADConfigVectorType

template<typename _Scalar >
typedef Base::ADConfigVectorType pinocchio::CodeGenDifference< _Scalar >::ADConfigVectorType

Definition at line 1141 of file code-generator-algo.hpp.

◆ ADTangentVectorType

template<typename _Scalar >
typedef Base::ADTangentVectorType pinocchio::CodeGenDifference< _Scalar >::ADTangentVectorType

Definition at line 1142 of file code-generator-algo.hpp.

◆ Base

template<typename _Scalar >
typedef CodeGenBase<_Scalar> pinocchio::CodeGenDifference< _Scalar >::Base

Definition at line 1137 of file code-generator-algo.hpp.

◆ MatrixXs

template<typename _Scalar >
typedef Base::MatrixXs pinocchio::CodeGenDifference< _Scalar >::MatrixXs

Definition at line 1143 of file code-generator-algo.hpp.

◆ Model

template<typename _Scalar >
typedef Base::Model pinocchio::CodeGenDifference< _Scalar >::Model

Definition at line 1140 of file code-generator-algo.hpp.

◆ Scalar

template<typename _Scalar >
typedef Base::Scalar pinocchio::CodeGenDifference< _Scalar >::Scalar

Definition at line 1138 of file code-generator-algo.hpp.

◆ VectorXs

template<typename _Scalar >
typedef Base::VectorXs pinocchio::CodeGenDifference< _Scalar >::VectorXs

Definition at line 1144 of file code-generator-algo.hpp.

Constructor & Destructor Documentation

◆ CodeGenDifference()

template<typename _Scalar >
pinocchio::CodeGenDifference< _Scalar >::CodeGenDifference ( const Model model,
const std::string &  function_name = "difference",
const std::string &  library_name = "cg_difference_eval" 
)
inline

Definition at line 1146 of file code-generator-algo.hpp.

Member Function Documentation

◆ buildMap()

template<typename _Scalar >
void pinocchio::CodeGenDifference< _Scalar >::buildMap ( )
inlinevirtual

build the mapping Y = f(X)

Implements pinocchio::CodeGenBase< _Scalar >.

Definition at line 1160 of file code-generator-algo.hpp.

◆ evalFunction() [1/2]

template<typename _Scalar >
template<typename ConfigVectorType1 , typename ConfigVectorType2 , typename TangentVector >
void pinocchio::CodeGenDifference< _Scalar >::evalFunction ( const Eigen::MatrixBase< ConfigVectorType1 > &  q0,
const Eigen::MatrixBase< ConfigVectorType2 > &  q1,
const Eigen::MatrixBase< TangentVector > &  v 
)
inline

Definition at line 1176 of file code-generator-algo.hpp.

◆ evalFunction() [2/2]

template<typename _Scalar >
template<typename Vector >
void pinocchio::CodeGenBase< _Scalar >::evalFunction ( typename Vector  )
inline

Definition at line 151 of file code-generator-base.hpp.

Member Data Documentation

◆ ad_fun

template<typename _Scalar >
ADFun pinocchio::CodeGenBase< _Scalar >::ad_fun
protected

Definition at line 196 of file code-generator-base.hpp.

◆ ad_model

template<typename _Scalar >
ADModel pinocchio::CodeGenBase< _Scalar >::ad_model
protected

Definition at line 181 of file code-generator-base.hpp.

◆ ad_q0

template<typename _Scalar >
ADConfigVectorType pinocchio::CodeGenDifference< _Scalar >::ad_q0
protected

Definition at line 1201 of file code-generator-algo.hpp.

◆ ad_q1

template<typename _Scalar >
ADConfigVectorType pinocchio::CodeGenDifference< _Scalar >::ad_q1
protected

Definition at line 1202 of file code-generator-algo.hpp.

◆ ad_X

template<typename _Scalar >
ADVectorXs pinocchio::CodeGenBase< _Scalar >::ad_X
protected

Definition at line 195 of file code-generator-base.hpp.

◆ ad_Y

template<typename _Scalar >
ADVectorXs pinocchio::CodeGenBase< _Scalar >::ad_Y
protected

Definition at line 195 of file code-generator-base.hpp.

◆ res

template<typename _Scalar >
VectorXs pinocchio::CodeGenDifference< _Scalar >::res
protected

Definition at line 1199 of file code-generator-algo.hpp.

◆ x

template<typename _Scalar >
VectorXs pinocchio::CodeGenDifference< _Scalar >::x
protected

Definition at line 1198 of file code-generator-algo.hpp.

◆ y

template<typename _Scalar >
VectorXs pinocchio::CodeGenBase< _Scalar >::y
protected

Definition at line 201 of file code-generator-base.hpp.


The documentation for this struct was generated from the following file:


pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:14