This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Eigen/Geometry> | |
| #include <iostream> | |
| Eigen::Affine3d create_rotation_matrix(double ax, double ay, double az) { | |
| Eigen::Affine3d rx = | |
| Eigen::Affine3d(Eigen::AngleAxisd(ax, Eigen::Vector3d(1, 0, 0))); | |
| Eigen::Affine3d ry = | |
| Eigen::Affine3d(Eigen::AngleAxisd(ay, Eigen::Vector3d(0, 1, 0))); | |
| Eigen::Affine3d rz = | |
| Eigen::Affine3d(Eigen::AngleAxisd(az, Eigen::Vector3d(0, 0, 1))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Put `pkg-config --cflags --libs *pkg_name* | |
| $ g++ test.cpp -o test `pkg-config --cflags --libs opencv` | |
| Other Libraries: | |
| OpenCV : `pkg-config --cflags --libs opencv` | |
| GSL : `pkg-config --cflags --libs gsl` | |
| Eigen3: `pkg-config --cflags --lib eigen3` | |
| KDL : `pkg-config --cflags --libs orocos-kdl` |