安装:

sudo apt-get install ros-indigo-kdl-parser-py

使用:

import PyKDL
import math def quat_to_angle(quat): rot
= PyKDL.Rotation.Quaternion(quat.x, quat.y, quat.z, quat.w) return rot.GetRPY()[2] def normalize_angle(angle): res = angle while res > math.pi: res -= 2.0*math.pi while res < -math.pi: res += 2.0*math.pi return res https://github.com/gt-ros-pkg/hrl-kdl
https://www.programcreek.com/python/example/99836/sensor_msgs.msg.Imu

 

 

相关文章:

  • 2022-12-23
  • 2021-08-18
  • 2021-07-25
  • 2022-12-23
  • 2021-07-26
  • 2021-09-10
  • 2022-12-23
  • 2021-05-12
猜你喜欢
  • 2021-11-22
  • 2021-05-20
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2021-06-27
  • 2021-09-07
相关资源
相似解决方案