当前位置:网站首页>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
边栏推荐
- 图神经网络入门 (GNN, GCN)
- 数论 --- 欧拉函数、筛法求欧拉函数、欧拉定理、费马小定理详细证明
- Win11如何给系统盘瘦身?Win11系统盘瘦身方法
- Facts / assertions / assertions / conclusions / assertions / judgments
- 类加载机制与对象的创建
- Concours de segmentation des images gastro - intestinales de kaggle Baseline
- Group programming TIANTI competition exercise - continuously updating
- JSP to get the value in the session
- C language - function knowledge points
- Ali open source (easyexcel)
猜你喜欢

Demo of integrated development of intelligent computing system 3 plugin

阿里开源(EasyExcel)

The amazing nanopc-t4 (rk3399) is used as the initial configuration and related applications of the workstation

Industry analysis - quick intercom, building intercom

H5 sunflower operation

How to obtain the coordinates of the aircraft passing through both ends of the radar

30讲 线性代数 第四讲 线性方程组

首部元宇宙概念小说《元宇宙2086》获得2022年上袭元宇宙奖

严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C1047 对象或库文件“.lib”是使用与其他对象(如“x64\Release\main.obj”)不同的

ArrayList of collection
随机推荐
return new int[]{i + 1, mid + 1};return {i + 1, mid + 1};
令人惊艳的NanoPC-T4(RK3399)作为工作站的初始配置和相关应用
JVM memory structure
How does the computer check whether the driver is normal
1002_20181019
C#应用程序界面开发基础——窗体控制
I. The HR system is put on the enterprise wechat ISV to enhance the in-depth application of enterprise wechat in service chain retail and other industries
NanoPC-T4(RK3399) game1 oled(I2C)显示时间天气温度
jsp中获取session中的值
Fontawesome icon for color gradient
2280.Cupboards
Bayesian inference problem, MCMC and variational inference
微信小程序_8,视图与逻辑
机器学习笔记 temperature+Softmax
Win11如何给系统盘瘦身?Win11系统盘瘦身方法
5g NR MBS architecture introduction
视频压缩处理之ffmpeg用法
Tencent tangdaosheng: facing the new world of digital and real integration, developers are the most important "architects"
使用点云构建不规则三角网TIN
Parallax JS special effect JS carousel map plug-in