def get_camera_details(self):
"""
Return the details of the cameras.
@rtype: list [str]
@return: ordered list of camera details
"""
camera_dict = dict()
camera_config_param = "/robot_config/camera_config"
try:
camera_dict = rospy.get_param(camera_config_param)
except KeyError:
rospy.logerr("RobotParam:get_camera_details cannot detect any "
"cameras under the parameter {0}".format(camera_config_param))
except (socket.error, socket.gaierror):
self._log_networking_error()
return camera_dict
评论列表
文章目录