/// <summary>
        /// Initializes the system (sensors, algorithms, etc). Returns false on failure, true on success.
        /// </summary>
        /// <param name="json_config_file">Configuration file with which to initialize coco</param>
        /// <param name="json_config_file">boolean to specify if we are running in development environment or production
        // environment</param>
        /// <param name="initialize_web_server">Specify weather to initialize stats web server.</param>
        public static bool Start()
        {
            InitStatus result = MetaCoreInterop.meta_start();

            if (result != InitStatus.SUCCESS)
            {
                Debug.LogError("Meta initialization failed with result: " + result);
                return(false);
            }
            return(true);
        }
예제 #2
0
        /// <summary>
        /// Initializes the system (sensors, algorithms, etc). Returns false on failure, true on success.
        /// </summary>
        /// <param name="json_config_file">Configuration file with which to initialize coco</param>
        /// <param name="json_config_file">boolean to specify if we are running in development environment or production
        // environment</param>
        /// <param name="initialize_web_server">Specify weather to initialize stats web server.</param>
        public static bool Start(string json_config_file = "", bool is_development_environment = true, bool initialize_web_server = false)
        {
            // -- Initialize library
            InitStatus result = MetaCoreInterop.meta_init(json_config_file, is_development_environment);

            if (result != InitStatus.NO_ERROR)
            {
                // Debug.LogError("Meta initialization result: " + result);
                return(false);
            }

            // -- Start MetaCore
            MetaCoreInterop.meta_start(initialize_web_server);

            // Note: Disabled; see MET-1833.
            // MetaCoreInterop.meta_wait_start_complete();

            return(true);
        }