plugin_interface.py 文件源码

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

项目:atf 作者: ipa-fmw 项目源码 文件源码
def get_service_types(self, services):
        service_types = []
        for service in services:
            if service:
                try:
                    service_name_str = str(service[0])
                    service_type_str = rosservice.get_service_type(service_name_str)
                    if service_type_str is not None:
                        service_types.append([service_name_str, service_type_str])
                except rospy.ServiceException as e:
                    rospy.logerr("Information is invalid for the service : %s . %s" % (service_name_str, e))
                    continue
                except rospy.ServiceIOException as e:
                    rospy.logerr("Unable to communicate with service : %s . %s" % (service_name_str, e))
                    continue
        return service_types
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号