work_manager.py 文件源码

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

项目:APEX 作者: ymollard 项目源码 文件源码
def __init__(self, outside_ros=False):
        self.rospack = RosPack()
        self.num_workers = 0
        self.outside_ros = rospy.get_param('/use_sim_time', outside_ros)  # True if work manager <-> controller comm must use ZMQ
        self.file_experiment = join(self.rospack.get_path('apex_playground'), 'config', 'experiment.json')

        with open(self.file_experiment) as f:
            experiment = self.check(json.load(f))
        rospy.set_param('/work', experiment)
        self.lock_experiment = RLock()
        self.failing_workers = {}  # association {num_worker: remaining attempts before blacklist}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号