leaderboard/leaderboard/autoagents/ros_agent.py
def build_camera_info(self, attributes):  # pylint: disable=no-self-use
        """
        Private function to compute camera info

        camera info doesn't change over time
        """
        camera_info = CameraInfo()
        # store info without header
        camera_info.header = None
        camera_info.width = int(attributes['width'])
        camera_info.height = int(attributes['height'])
        camera_info.distortion_model = 'plumb_bob'
        cx = camera_info.width / 2.0
        cy = camera_info.height / 2.0
        fx = camera_info.width / (
            2.0 * math.tan(float(attributes['fov']) * math.pi / 360.0))
        fy = fx
        camera_info.K = [fx, 0, cx, 0, fy, cy, 0, 0, 1]
        camera_info.D = [0, 0, 0, 0, 0]
        camera_info.R = [1.0, 0, 0, 0, 1.0, 0, 0, 0, 1.0]
        camera_info.P = [fx, 0, cx, 0, 0, fy, cy, 0, 0, 0, 1.0, 0]
        return camera_info

        Private function to compute camera info

        camera info doesn't change over time
        
Private function to compute camera info
camera info doesn't change over time
Private function to compute camera info camera info doesn ' t change over time
def build_camera_info(self, attributes):  
        camera_info = CameraInfo()
        camera_info.header = None
        camera_info.width = int(attributes['width'])
        camera_info.height = int(attributes['height'])
        camera_info.distortion_model = 'plumb_bob'
        cx = camera_info.width / 2.0
        cy = camera_info.height / 2.0
        fx = camera_info.width / (
            2.0 * math.tan(float(attributes['fov']) * math.pi / 360.0))
        fy = fx
        camera_info.K = [fx, 0, cx, 0, fy, cy, 0, 0, 1]
        camera_info.D = [0, 0, 0, 0, 0]
        camera_info.R = [1.0, 0, 0, 0, 1.0, 0, 0, 0, 1.0]
        camera_info.P = [fx, 0, cx, 0, 0, fy, cy, 0, 0, 0, 1.0, 0]
        return camera_info
def build_camera_info ( self , attributes ) : camera_info = CameraInfo ( ) camera_info . header = None camera_info . width = int ( attributes [ 'width' ] ) camera_info . height = int ( attributes [ 'height' ] ) camera_info . distortion_model = 'plumb_bob' cx = camera_info . width / 2.0 cy = camera_info . height / 2.0 fx = camera_info . width / ( 2.0 * math . tan ( float ( attributes [ 'fov' ] ) * math . pi / 360.0 ) ) fy = fx camera_info . K = [ fx , 0 , cx , 0 , fy , cy , 0 , 0 , 1 ] camera_info . D = [ 0 , 0 , 0 , 0 , 0 ] camera_info . R = [ 1.0 , 0 , 0 , 0 , 1.0 , 0 , 0 , 0 , 1.0 ] camera_info . P = [ fx , 0 , cx , 0 , 0 , fy , cy , 0 , 0 , 0 , 1.0 , 0 ] return camera_info
Private function to compute camera info
camera info doesn't change over time
Private function to compute camera info camera info doesn ' t change over time
# pylint: disable=no-self-use """
        Private function to compute camera info

        camera info doesn't change over time
        """ # store info without header
self
attributes