# transforms3d_cpp **Repository Path**: shaw190224/transforms3d_cpp ## Basic Information - **Project Name**: transforms3d_cpp - **Description**: 基于Eigen实现的坐标转换库,在机器人坐标转换中常用的库。 - **Primary Language**: Unknown - **License**: WTFPL - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 26 - **Created**: 2021-12-17 - **Last Updated**: 2021-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 基于Eigen的坐标转换库-TransForms3d - 实现一个更强大的坐标转换组,可以进行坐标关系推算,解放你的笔头和双手 - 实现欧拉角与旋转矩阵的互相转换,欧拉角到四元数的转换 - 实现四元数与旋转矩阵的互相转换,四元数到欧拉角的转换 - 实现通过齐次矩阵合成与部分转换 - 持续更新中.......... Git:[仓库地址](https://gitee.com/ohhuo/transforms3d_cpp) | Wiki:[函数列表](https://gitee.com/ohhuo/transforms3d_cpp/wikis/pages) ## 一、安装与使用 ### 1.源码引入 复制TransForms.cpp和TransForms.h到你的工程即可 ### 2.编译安装 ``` git clone https://gitee.com/ohhuo/transforms3d_cpp.git cd transforms3d_cpp mkdir build cd build cmake .. make sudo make install sudo ldconfig ``` ### 3.使用样例 例子1:利用TransformsGroup进行手眼矩阵估算 ```c++ /* * @Descripttion: * @Author: sangxin * @Date: 2021-05-01 21:04:19 * @LastEditTime: 2021-05-02 23:39:20 */ #include "math.h" #include #include using namespace std; using namespace Eigen; int main() { /* base@grapper */ Matrix4d Tbg = TransForms::ComposeEuler(-0.544, -0.203,-0.037, 180, 0.00000, 140); /* camera@maker*/ Matrix4d Tcw = TransForms::ComposeEuler(0.020,-0.040,0.300,0,0,-45); /* base@bottle */ Matrix4d Tbw = TransForms::ComposeEuler(-0.663,-0.193,-0.231,-180,0,140); TransFormsGroup tfg; tfg.pushTransForm("base","grapper",Tbg); tfg.pushTransForm("camera","bottle",Tcw); tfg.pushTransForm("base","bottle",Tbw); cout< } 路径数组 */ std::vector findPath(const std::string& start, const std::string& end); ``` ## 三、鸣谢与反馈 ### 1. 贡献 - 作者:桑欣 | Autor:SangXin - 邮箱 | Email 2876424407@qq.com ## 2. 反馈 - 直接将问题发送至邮箱2876424407@qq.com - 提出Issuce