sas
Modularised monitoring, logging, and control of robots.
Loading...
Searching...
No Matches
eigen3_std_conversions.cpp File Reference

Conversion functions between Eigen, STL containers, and DQ. More...

Functions

std::vector< double > sas::vectorxd_to_std_vector_double (const VectorXd &vectorxd)
 Convert an Eigen::VectorXd to a std::vector<double>.
VectorXd sas::std_vector_double_to_vectorxd (std::vector< double > std_vector_double)
 Convert a std::vector<double> to an Eigen::VectorXd.
DQ sas::std_vector_double_to_dq (const std::vector< double > &std_vector_double)
 Convert a std::vector<double> to a DQ (dual quaternion) object.
std::vector< int > sas::vectorxi_to_std_vector_int (const VectorXi &vectorxi)
 Convert an Eigen::VectorXi to a std::vector<int>.
VectorXi sas::std_vector_int_to_vectorxi (std::vector< int > std_vector_int)
 Convert a std::vector<int> to an Eigen::VectorXi.

Detailed Description

Conversion functions between Eigen, STL containers, and DQ.

Function Documentation

◆ std_vector_double_to_dq()

DQ sas::std_vector_double_to_dq ( const std::vector< double > & std_vector_double)

Convert a std::vector<double> to a DQ (dual quaternion) object.

Parameters
std_vector_doubleSource std::vector<double> containing the DQ coefficients.
Returns
DQ constructed from the provided coefficients.

◆ std_vector_double_to_vectorxd()

VectorXd sas::std_vector_double_to_vectorxd ( std::vector< double > std_vector_double)

Convert a std::vector<double> to an Eigen::VectorXd.

Parameters
std_vector_doubleSource std::vector<double>.
Returns
VectorXd containing the same elements.

◆ std_vector_int_to_vectorxi()

VectorXi sas::std_vector_int_to_vectorxi ( std::vector< int > std_vector_int)

Convert a std::vector<int> to an Eigen::VectorXi.

Parameters
std_vector_intSource std::vector<int>.
Returns
VectorXi containing the same elements.

◆ vectorxd_to_std_vector_double()

std::vector< double > sas::vectorxd_to_std_vector_double ( const VectorXd & vectorxd)

Convert an Eigen::VectorXd to a std::vector<double>.

Parameters
vectorxdSource Eigen vector.
Returns
std::vector<double> containing the same elements in order.

◆ vectorxi_to_std_vector_int()

std::vector< int > sas::vectorxi_to_std_vector_int ( const VectorXi & vectorxi)

Convert an Eigen::VectorXi to a std::vector<int>.

Parameters
vectorxiSource Eigen integer vector.
Returns
std::vector<int> containing the same elements in order.