log_record.py 文件源码

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

项目:maki_demo 作者: jgreczek 项目源码 文件源码
def print_time(threadName, delay):
    global f
    global last_time
    rate = rospy.Rate(10) # 10hz
    while not rospy.is_shutdown():
    try:
            if rospy.get_time() - last_time >= 60.0:
        last_time = rospy.get_time()
            f.close()
            f = open('log_file' + str(datetime.datetime.now()) + '.txt','w')
    except rospy.ROSInterruptException:
        pass
    rate.sleep()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号