Woolfrey / software_robot_library

Custom classes for robot control.
GNU General Public License v3.0
2 stars 1 forks source link

Add `typedef` for classes? #110

Closed Woolfrey closed 3 months ago

Woolfrey commented 4 months ago

All the classes have a datatype template argument. It might be nice to add a typedef for each, similar to Eigen:

Eigen::MatrixXf  <---> Eigen::Matrix<float, Eigen::Dynamic, Eigen::Dynamic>
Eigen::MatrixXd <---> Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>

Is it as simple as:

typedef KinematicTree<float> KinematicTreef;
typedef KinematicTree<double> KinematicTreed;

:thinking:

@ssutjipto your thoughts?

Woolfrey commented 3 months ago

I put in, as an example,

using KinematicTree_f = KinematicTree<float>

for all (most?) classes.