当前位置:网站首页>Quaternion quaternion and Euler angle Transformation in Ros
Quaternion quaternion and Euler angle Transformation in Ros
2022-06-28 19:46:00 【Xiaomu - 1230】
Dans la navigation du chariot mobile,rosLes systèmes utilisent généralement des quaternions pour représenter les odomètresorientationInformation,Mais la plupart du temps, il faut une représentation plus intuitive et plus pratique de l'angle Euler,Notez donc ici la méthode de conversion.
include "tf/transform_datatypes.h"//Convertir le fichier d'en - tête de fonction
#include <nav_msgs/Odometry.h>//Format d'information du compteur kilométrique
/****************Quaternion transRPYCap Euler,ParodomsubPar exemple, la fonction de rappel de*****************/
void odomCallback(const nav_msgs::Odometry &odom) {
tf::Quaternion quat;
tf::quaternionMsgToTF(odom.pose.pose.orientation, quat);
double roll, pitch, yaw;//Définir le stockager\p\yConteneur pour
tf::Matrix3x3(quat).getRPY(roll, pitch, yaw); //Conversion
}
/****************RPY Angle Euler à Quaternion *****************/
tf::createQuaternionMsgFromRollPitchYaw(double r, double p, double y);// Renvoie un Quaternion
tf::createQuaternionMsgFromYaw(double y);//Seulement paryC'est le tour.z L'angle de rotation de , Pour les chariots plats . Renvoie un Quaternion
边栏推荐
- List adding timer (positive and countdown)
- NanoPC-T4(RK3399) game1 oled(I2C)显示时间天气温度
- Rigid error: could not extract PIDs from PS output PIDS: [], Procs: [“bad pid
- Are there any regular and safe foreign exchange dealers in China?
- Bayesian inference problem, MCMC and variational inference
- 论文3 VScode&texlive&SumatraPDF打造完美书写论文工具
- 直播app系统源码,动态遇到视频时开始自动播放
- Parallax JS special effect JS carousel map plug-in
- C # application interface development foundation - form control
- Paper notes: universal value function approvers
猜你喜欢

Bayesian inference problem, MCMC and variational inference

High performance and high availability computing architecture scheme commented by Weibo

Bayesian inference problem, MCMC and variational inference

视差js特效js轮播图插件

《数据安全法》出台一周年,看哪四大变化来袭?

数据基础设施升级窗口下,AI 新引擎的技术方法论

math_ Proving common equivalent infinitesimal & Case & substitution

Ali open source (easyexcel)

视频压缩处理之ffmpeg用法

数字经济专家高泽龙:映客更名映宇宙,元宇宙会成为映客下一个增长引擎吗?
随机推荐
Kaggle肠胃道图像分割比赛baseline
智能计算系统2 bangc算子开发的demo (CPU和MLU270的异构编程流程)
多测师肖sirapp中riginal error: Could not extract PIDs from ps output. PIDS: [], Procs: [“bad pid
Chunfeng power and Huawei work together to build a smart Park benchmark, and the future factory innovation will reach a new level
Markdown mermaid种草(1)_ mermaid简介
C语言-函数知识点
I just bought the ADB MySQL service. Every time I do an operation, such as creating a table, this problem will pop up. What is the problem?
C # application interface development foundation - form control
2022年4月10日--使用C#迈出第一步--使用C#从.NET类库调用方法(没看懂)
集合之ArrayList
Severity code description project file line suppress status error lnk2038 detected a mismatch of "runtimelibrary": the value "md\u dynamicrelease" does not match the value "mdd\u dynamicde"
Building tin with point cloud
Ffmpeg usage in video compression processing
【324. 摆动排序 II】
Paper notes: universal value function approvers
H5 sunflower operation
easypoi
5G NR MBS架构介绍
智能计算系统1 环境搭建
1002_20181019