odom_ekf.py 文件源码

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

项目:mrobot-indigo 作者: ROSClub1 项目源码 文件源码
def __init__(self):
        # Give the node a name
        rospy.init_node('odom_ekf', anonymous=False)

        # Publisher of type nav_msgs/Odometry
        self.ekf_pub = rospy.Publisher('output', Odometry, queue_size=5)

        # Wait for the /odom_combined topic to become available
        rospy.wait_for_message('input', PoseWithCovarianceStamped)

        # Subscribe to the /odom_combined topic
        rospy.Subscriber('input', PoseWithCovarianceStamped, self.pub_ekf_odom)

        rospy.loginfo("Publishing combined odometry on /odom_ekf")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号