def main():
    'Start the ROS driver and ROS node.'
    rospy.init_node('axis_driver')
    arg_defaults = {'hostname': '192.168.0.90', 'username': None, 'password': None, 'width': 704, 'height': 576, 'frame_id': 'axis_camera', 'camera_info_url': '', 'use_encrypted_password': False, 'camera_id': 1, 'auto_wakeup_camera': True, 'compression': 0, 'fps': 24, 'use_color': True, 'use_square_pixels': False}
    args = read_args_with_defaults(arg_defaults)
    axis = Axis(**args)
    rate = rospy.Rate(1)
    while (not rospy.is_shutdown()):
        axis.diagnostic_updater.update()
        try:
            rate.sleep()
        except rospy.ROSTimeMovedBackwardsException:
            rospy.logwarn('Detected jump back in time.')
Start the ROS driver and ROS node.
def main():
    
    rospy.init_node('axis_driver')
    arg_defaults = {'hostname': '192.168.0.90', 'username': None, 'password': None, 'width': 704, 'height': 576, 'frame_id': 'axis_camera', 'camera_info_url': , 'use_encrypted_password': False, 'camera_id': 1, 'auto_wakeup_camera': True, 'compression': 0, 'fps': 24, 'use_color': True, 'use_square_pixels': False}
    args = read_args_with_defaults(arg_defaults)
    axis = Axis(**args)
    rate = rospy.Rate(1)
    while (not rospy.is_shutdown()):
        axis.diagnostic_updater.update()
        try:
            rate.sleep()
        except rospy.ROSTimeMovedBackwardsException:
            rospy.logwarn('Detected jump back in time.')