【论坛】EC机器人RPY与旋转向量转换代码实现
EC机器人RPY与旋转向量转换代码实现-- author: chenliao@elibot.cn -- Aug.21,2023 function rpy_to_quaternion(roll, pitch, yaw) -- 输入RPY 弧度,返回四元数 local cy = math.cos(yaw * 0.5) local sy = math.sin(yaw * 0.5) local cp = math.cos(pitch * 0.5) local sp =…