#include <tf/tf.h>
double roll = 0;
double pitch = 0;
double yaw = 0;
mavros_msgs::AttitudeTarget att;
att.orientation = tf::createQuaternionMsgFromRollPitchYaw(roll,pitch,yaw);
欧拉角转四元数
最新推荐文章于 2024-07-04 17:54:47 发布
#include <tf/tf.h>
double roll = 0;
double pitch = 0;
double yaw = 0;
mavros_msgs::AttitudeTarget att;
att.orientation = tf::createQuaternionMsgFromRollPitchYaw(roll,pitch,yaw);