c.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:dashgo 作者: EAIBOT 项目源码 文件源码
def __init__(self):
    self.lock = threading.Lock()
    self.sub_imu = rospy.Subscriber('imu', Imu, self.imu_cb)
    self.last_imu_angle = 0
    self.imu_angle = 0
    while not rospy.is_shutdown():
      self.last_imu_angle = self.imu_angle
      rospy.sleep(10)
      rospy.loginfo("imu_drift:"+str((self.imu_angle-self.last_imu_angle)*180/3.1415926))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号