text stringlengths 7 35.3M | id stringlengths 11 185 | metadata dict | __index_level_0__ int64 0 2.14k |
|---|---|---|---|
# Windows ����ڸ� ���� ML-Agents Toolkit ��ġ ���
ML-Agents toolkit�� Windows 10�� �����մϴ�. �ٸ� ������ Windows ���ε� ML-Agents toolkit��
����� �� ������ �������� �ʾҽ��ϴ�. ����, ML-Agents toolkit�� Windows VM(Bootcamp �Ǵ� ���� ó��
ȯ�� ����)�� ��� ���� �������� �ʾҽ��ϴ� .
ML-Agents toolkit�� ����ϱ� ����, �Ʒ��� ����Ȱ� ó��... | ml-agents/localized_docs/KR/docs/Installation-Anaconda-Windows.md/0 | {
"file_path": "ml-agents/localized_docs/KR/docs/Installation-Anaconda-Windows.md",
"repo_id": "ml-agents",
"token_count": 6174
} | 1,899 |
<jupyter_start><jupyter_text>ML-Agents PettingZoo Wrapper Setup<jupyter_code>#@title Install Rendering Dependencies { display-mode: "form" }
#@markdown (You only need to run this code when using Colab's hosted runtime)
import os
from IPython.display import HTML, display
def progress(value, max=100):
return HTML(... | ml-agents/ml-agents-envs/colabs/Colab_PettingZoo.ipynb/0 | {
"file_path": "ml-agents/ml-agents-envs/colabs/Colab_PettingZoo.ipynb",
"repo_id": "ml-agents",
"token_count": 1931
} | 1,900 |
# @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
EnumDescriptor as google___protobuf___descriptor___EnumDescriptor,
)
from google.protobuf.message import (
Message as google___protobuf___message___Message,
)
from typing import (
List as typing... | ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/command_pb2.pyi/0 | {
"file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/command_pb2.pyi",
"repo_id": "ml-agents",
"token_count": 438
} | 1,901 |
# @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.message import (
Message as google___protobuf___message___Message,
)
from mlagents_envs.communicator_objects.unity_r... | ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/unity_input_pb2.pyi/0 | {
"file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/unity_input_pb2.pyi",
"repo_id": "ml-agents",
"token_count": 909
} | 1,902 |
import glob
import os
import subprocess
from sys import platform
from typing import Optional, List
from mlagents_envs.logging_util import get_logger, DEBUG
from mlagents_envs.exception import UnityEnvironmentException
logger = get_logger(__name__)
def get_platform():
"""
returns the platform of the operatin... | ml-agents/ml-agents-envs/mlagents_envs/env_utils.py/0 | {
"file_path": "ml-agents/ml-agents-envs/mlagents_envs/env_utils.py",
"repo_id": "ml-agents",
"token_count": 2267
} | 1,903 |
from typing import Dict, Iterator, Any, List
from collections.abc import Mapping
from mlagents_envs.registry.base_registry_entry import BaseRegistryEntry
from mlagents_envs.registry.binary_utils import (
load_local_manifest,
load_remote_manifest,
)
from mlagents_envs.registry.remote_registry_entry import Remote... | ml-agents/ml-agents-envs/mlagents_envs/registry/unity_env_registry.py/0 | {
"file_path": "ml-agents/ml-agents-envs/mlagents_envs/registry/unity_env_registry.py",
"repo_id": "ml-agents",
"token_count": 1982
} | 1,904 |
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.install import install
import mlagents_envs
VERSION = mlagents_envs.__version__
EXPECTED_TAG = mlagents_envs.__release_tag__
here = os.path.abspath(os.path.dirname(__file__))
class VerifyVersionCommand(install):
"""
Cus... | ml-agents/ml-agents-envs/setup.py/0 | {
"file_path": "ml-agents/ml-agents-envs/setup.py",
"repo_id": "ml-agents",
"token_count": 931
} | 1,905 |
from typing import Dict, List
from mlagents.trainers.settings import RunOptions
from mlagents.trainers.stats import StatsWriter, StatsSummary
class ExampleStatsWriter(StatsWriter):
"""
Example implementation of the StatsWriter abstract class.
This doesn't do anything interesting, just prints the stats tha... | ml-agents/ml-agents-plugin-examples/mlagents_plugin_examples/example_stats_writer.py/0 | {
"file_path": "ml-agents/ml-agents-plugin-examples/mlagents_plugin_examples/example_stats_writer.py",
"repo_id": "ml-agents",
"token_count": 279
} | 1,906 |
from typing import Dict, Any
ML_AGENTS_STATS_WRITER = "mlagents.stats_writer"
ML_AGENTS_TRAINER_TYPE = "mlagents.trainer_type"
# TODO: the real type is Dict[str, HyperparamSettings]
all_trainer_types: Dict[str, Any] = {}
all_trainer_settings: Dict[str, Any] = {}
| ml-agents/ml-agents/mlagents/plugins/__init__.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/plugins/__init__.py",
"repo_id": "ml-agents",
"token_count": 105
} | 1,907 |
from typing import Dict, List, Tuple, Optional
from mlagents.trainers.settings import (
EnvironmentParameterSettings,
ParameterRandomizationSettings,
)
from collections import defaultdict
from mlagents.trainers.training_status import GlobalTrainingStatus, StatusType
from mlagents_envs.logging_util import get_l... | ml-agents/ml-agents/mlagents/trainers/environment_parameter_manager.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/environment_parameter_manager.py",
"repo_id": "ml-agents",
"token_count": 3690
} | 1,908 |
# # Unity ML-Agents Toolkit
from typing import Dict, Any, Optional, List
import os
import attr
from mlagents.trainers.training_status import GlobalTrainingStatus, StatusType
from mlagents_envs.logging_util import get_logger
logger = get_logger(__name__)
@attr.s(auto_attribs=True)
class ModelCheckpoint:
steps: in... | ml-agents/ml-agents/mlagents/trainers/policy/checkpoint_manager.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/policy/checkpoint_manager.py",
"repo_id": "ml-agents",
"token_count": 1537
} | 1,909 |
from typing import List, Tuple
from mlagents_envs.base_env import ObservationSpec, DimensionProperty, ObservationType
import pytest
import copy
import os
from mlagents.trainers.settings import (
TrainerSettings,
GAILSettings,
CuriositySettings,
RewardSignalSettings,
NetworkSettings,
RewardSignal... | ml-agents/ml-agents/mlagents/trainers/tests/dummy_config.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/tests/dummy_config.py",
"repo_id": "ml-agents",
"token_count": 1282
} | 1,910 |
import attr
import cattr
import pickle
import pytest
import yaml
from typing import Dict, List, Optional
from mlagents.trainers.settings import (
RunOptions,
TrainerSettings,
NetworkSettings,
RewardSignalType,
RewardSignalSettings,
CuriositySettings,
EnvironmentSettings,
EnvironmentPar... | ml-agents/ml-agents/mlagents/trainers/tests/test_settings.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/tests/test_settings.py",
"repo_id": "ml-agents",
"token_count": 9681
} | 1,911 |
import numpy as np
from mlagents.torch_utils import torch
from mlagents.trainers.buffer import AgentBuffer, BufferKey
from mlagents.trainers.torch_entities.agent_action import AgentAction
def test_agent_action_group_from_buffer():
buff = AgentBuffer()
# Create some actions
for _ in range(3):
buff... | ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_agent_action.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_agent_action.py",
"repo_id": "ml-agents",
"token_count": 1181
} | 1,912 |
from typing import Any
import numpy as np
import pytest
from unittest.mock import patch
from mlagents.torch_utils import torch
import os
from mlagents.trainers.torch_entities.components.reward_providers import (
GAILRewardProvider,
create_reward_provider,
)
from mlagents_envs.base_env import BehaviorSpec, Actio... | ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_reward_providers/test_gail.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_reward_providers/test_gail.py",
"repo_id": "ml-agents",
"token_count": 2408
} | 1,913 |
from mlagents.trainers.torch_entities.components.reward_providers.base_reward_provider import ( # noqa F401
BaseRewardProvider,
)
from mlagents.trainers.torch_entities.components.reward_providers.extrinsic_reward_provider import ( # noqa F401
ExtrinsicRewardProvider,
)
from mlagents.trainers.torch_entities.co... | ml-agents/ml-agents/mlagents/trainers/torch_entities/components/reward_providers/__init__.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/torch_entities/components/reward_providers/__init__.py",
"repo_id": "ml-agents",
"token_count": 305
} | 1,914 |
# ## ML-Agent Learning (SAC)
# Contains an implementation of SAC as described in https://arxiv.org/abs/1801.01290
# and implemented in https://github.com/hill-a/stable-baselines
from collections import defaultdict
from typing import Dict, cast
import os
import numpy as np
from mlagents.trainers.policy.checkpoint_mana... | ml-agents/ml-agents/mlagents/trainers/trainer/off_policy_trainer.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/trainer/off_policy_trainer.py",
"repo_id": "ml-agents",
"token_count": 4514
} | 1,915 |
syntax = "proto3";
import "mlagents_envs/communicator_objects/agent_info.proto";
import "mlagents_envs/communicator_objects/agent_action.proto";
option csharp_namespace = "Unity.MLAgents.CommunicatorObjects";
package communicator_objects;
message AgentInfoActionPairProto {
AgentInfoProto agent_info = 1;
Agen... | ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/agent_info_action_pair.proto/0 | {
"file_path": "ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/agent_info_action_pair.proto",
"repo_id": "ml-agents",
"token_count": 121
} | 1,916 |
syntax = "proto3";
import "mlagents_envs/communicator_objects/agent_action.proto";
import "mlagents_envs/communicator_objects/command.proto";
option csharp_namespace = "Unity.MLAgents.CommunicatorObjects";
package communicator_objects;
message UnityRLInputProto {
message ListAgentActionProto {
repeat... | ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/unity_rl_input.proto/0 | {
"file_path": "ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/unity_rl_input.proto",
"repo_id": "ml-agents",
"token_count": 198
} | 1,917 |
fileFormatVersion: 2
guid: 6d2d240998b7a9a44b7402136c946623
folderAsset: yes
DefaultImporter:
userData:
| xLua/Assets/XLua.meta/0 | {
"file_path": "xLua/Assets/XLua.meta",
"repo_id": "xLua",
"token_count": 46
} | 1,918 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using XLua;
/// <summary>
/// xLua 默认配置
/// </summary>
static class XLuaUnityDefaultConfig
{
#if UNITY_2022_1_OR_NEWER
static bool IsSpanType(Type type)
{
if (!t... | xLua/Assets/XLua/Editor/XLuaUnityDefaultConfig.cs/0 | {
"file_path": "xLua/Assets/XLua/Editor/XLuaUnityDefaultConfig.cs",
"repo_id": "xLua",
"token_count": 573
} | 1,919 |
fileFormatVersion: 2
guid: 9b998ff8754d165438f1f34adb4f3d7e
TextScriptImporter:
userData:
| xLua/Assets/XLua/Examples/03_UIEvent/ButtonInteraction.lua.txt.meta/0 | {
"file_path": "xLua/Assets/XLua/Examples/03_UIEvent/ButtonInteraction.lua.txt.meta",
"repo_id": "xLua",
"token_count": 44
} | 1,920 |
fileFormatVersion: 2
guid: 213d1592ca01d9a4fba0477875fcd2ef
timeCreated: 1489371350
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| xLua/Assets/XLua/Examples/10_SignatureLoader/otherfiles/signatured1.lua.meta/0 | {
"file_path": "xLua/Assets/XLua/Examples/10_SignatureLoader/otherfiles/signatured1.lua.meta",
"repo_id": "xLua",
"token_count": 71
} | 1,921 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XLua.Mini", "XLua.Mini.csproj", "{9A2C7D34-0697-31AB-4FD5-E250BB7E0F00}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XLuaGenerate", "XLuaGenerate.csproj", "{6A24C3A... | xLua/General/vs2013/XLua.sln/0 | {
"file_path": "xLua/General/vs2013/XLua.sln",
"repo_id": "xLua",
"token_count": 1854
} | 1,922 |
fileFormatVersion: 2
guid: 0668986d04994e448939e21fb74c5d5a
timeCreated: 1475977076
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| xLua/Test/PrefTest/xLuaPerfTest/PeformentTestConfig.cs.meta/0 | {
"file_path": "xLua/Test/PrefTest/xLuaPerfTest/PeformentTestConfig.cs.meta",
"repo_id": "xLua",
"token_count": 101
} | 1,923 |
fileFormatVersion: 2
guid: c81508a9cd6507b43aa52a394d110123
timeCreated: 1483528414
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| xLua/Test/UnitTest/StreamingAssets/ltest/loutput.lua.meta/0 | {
"file_path": "xLua/Test/UnitTest/StreamingAssets/ltest/loutput.lua.meta",
"repo_id": "xLua",
"token_count": 69
} | 1,924 |
@rem Script to build Lua under "Visual Studio .NET Command Prompt".
@rem Do not run from this directory; run it from the toplevel: etc\luavs.bat .
@rem It creates lua51.dll, lua51.lib, lua.exe, and luac.exe in src.
@rem (contributed by David Manura and Mike Pall)
@setlocal
@set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_C... | xLua/build/lua-5.1.5/etc/luavs.bat/0 | {
"file_path": "xLua/build/lua-5.1.5/etc/luavs.bat",
"repo_id": "xLua",
"token_count": 453
} | 1,925 |
/*
** $Id: ldo.h,v 2.7.1.1 2007/12/27 13:02:25 roberto Exp $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
#ifndef ldo_h
#define ldo_h
#include "lobject.h"
#include "lstate.h"
#include "lzio.h"
#define luaD_checkstack(L,n) \
if ((char *)L->stack_last - (char *)L->top <= (n)*(int)sizeof(T... | xLua/build/lua-5.1.5/src/ldo.h/0 | {
"file_path": "xLua/build/lua-5.1.5/src/ldo.h",
"repo_id": "xLua",
"token_count": 825
} | 1,926 |
/*
** $Id: lobject.h,v 2.20.1.2 2008/08/06 13:29:48 roberto Exp $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
#ifndef lobject_h
#define lobject_h
#include <stdarg.h>
#include "llimits.h"
#include "lua.h"
/* tags for values visible from Lua */
#define LAST_TAG LUA_TTHREAD
#define NUM... | xLua/build/lua-5.1.5/src/lobject.h/0 | {
"file_path": "xLua/build/lua-5.1.5/src/lobject.h",
"repo_id": "xLua",
"token_count": 3696
} | 1,927 |
/*
** $Id: lua.c,v 1.160.1.2 2007/12/28 15:32:23 roberto Exp $
** Lua stand-alone interpreter
** See Copyright Notice in lua.h
*/
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define lua_c
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
static lua_State *globalL = NUL... | xLua/build/lua-5.1.5/src/lua.c/0 | {
"file_path": "xLua/build/lua-5.1.5/src/lua.c",
"repo_id": "xLua",
"token_count": 4581
} | 1,928 |
# - Try to find Readline
# Once done this will define
# READLINE_FOUND - System has readline
# READLINE_INCLUDE_DIRS - The readline include directories
# READLINE_LIBRARIES - The libraries needed to use readline
# READLINE_DEFINITIONS - Compiler switches required for using readline
find_package ( PkgConfig )
pkg_c... | xLua/build/lua-5.3.3/cmake/FindReadline.cmake/0 | {
"file_path": "xLua/build/lua-5.3.3/cmake/FindReadline.cmake",
"repo_id": "xLua",
"token_count": 372
} | 1,929 |
/*
** $Id: ldebug.h $
** Auxiliary functions from Debug Interface module
** See Copyright Notice in lua.h
*/
#ifndef ldebug_h
#define ldebug_h
#include "lstate.h"
#define pcRel(pc, p) (cast_int((pc) - (p)->code) - 1)
/* Active Lua function (given call info) */
#define ci_func(ci) (clLvalue(s2v((ci)->func)))
#... | xLua/build/lua-5.4.1/src/ldebug.h/0 | {
"file_path": "xLua/build/lua-5.4.1/src/ldebug.h",
"repo_id": "xLua",
"token_count": 1051
} | 1,930 |
/*
** $Id: lmem.h $
** Interface to Memory Manager
** See Copyright Notice in lua.h
*/
#ifndef lmem_h
#define lmem_h
#include <stddef.h>
#include "llimits.h"
#include "lua.h"
#define luaM_error(L) luaD_throw(L, LUA_ERRMEM)
/*
** This macro tests whether it is safe to multiply 'n' by the size of
** type 't' with... | xLua/build/lua-5.4.1/src/lmem.h/0 | {
"file_path": "xLua/build/lua-5.4.1/src/lmem.h",
"repo_id": "xLua",
"token_count": 1584
} | 1,931 |
/*
** $Id: ltable.c $
** Lua tables (hash)
** See Copyright Notice in lua.h
*/
#define ltable_c
#define LUA_CORE
#include "lprefix.h"
/*
** Implementation of tables (aka arrays, objects, or hash tables).
** Tables keep its elements in two parts: an array part and a hash part.
** Non-negative integer keys are all ca... | xLua/build/lua-5.4.1/src/ltable.c/0 | {
"file_path": "xLua/build/lua-5.4.1/src/ltable.c",
"repo_id": "xLua",
"token_count": 11525
} | 1,932 |
------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | xLua/build/luajit-2.1.0b2/dynasm/dasm_mips.lua/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/dynasm/dasm_mips.lua",
"repo_id": "xLua",
"token_count": 12693
} | 1,933 |
----------------------------------------------------------------------------
-- LuaJIT profiler.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-- This modul... | xLua/build/luajit-2.1.0b2/src/jit/p.lua/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/src/jit/p.lua",
"repo_id": "xLua",
"token_count": 3552
} | 1,934 |
/*
** Error handling.
** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h
*/
#define lj_err_c
#define LUA_CORE
#include "lj_obj.h"
#include "lj_err.h"
#include "lj_debug.h"
#include "lj_str.h"
#include "lj_func.h"
#include "lj_state.h"
#include "lj_frame.h"
#include "lj_ff.h"
#include "lj_trace.h"
... | xLua/build/luajit-2.1.0b2/src/lj_err.c/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/src/lj_err.c",
"repo_id": "xLua",
"token_count": 10827
} | 1,935 |
/*
** Userdata handling.
** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h
*/
#define lj_udata_c
#define LUA_CORE
#include "lj_obj.h"
#include "lj_gc.h"
#include "lj_udata.h"
GCudata *lj_udata_new(lua_State *L, MSize sz, GCtab *env)
{
GCudata *ud = lj_mem_newt(L, sizeof(GCudata) + sz, GCudata)... | xLua/build/luajit-2.1.0b2/src/lj_udata.c/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/src/lj_udata.c",
"repo_id": "xLua",
"token_count": 386
} | 1,936 |
<!DOCTYPE html>
<html>
<head>
<title>Status</title>
<meta charset="utf-8">
<meta name="Copyright" content="Copyright (C) 2005-2021">
<meta name="Language" content="en">
<link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
<link rel="stylesheet" type="text/css" href="bluequad-print.css" media="prin... | xLua/build/luajit-2.1.0b3/doc/status.html/0 | {
"file_path": "xLua/build/luajit-2.1.0b3/doc/status.html",
"repo_id": "xLua",
"token_count": 1134
} | 1,937 |
/*
** LuaJIT VM builder: PE object emitter.
** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h
**
** Only used for building on Windows, since we cannot assume the presence
** of a suitable assembler. The host and target byte order must match.
*/
#include "buildvm.h"
#include "lj_bc.h"
#if LJ_TARGE... | xLua/build/luajit-2.1.0b3/src/host/buildvm_peobj.c/0 | {
"file_path": "xLua/build/luajit-2.1.0b3/src/host/buildvm_peobj.c",
"repo_id": "xLua",
"token_count": 5609
} | 1,938 |
/*
** PPC IR assembler (SSA IR -> machine code).
** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h
*/
/* -- Register allocator extensions --------------------------------------- */
/* Allocate a register with a hint. */
static Reg ra_hintalloc(ASMState *as, IRRef ref, Reg hint, RegSet allow)
{
... | xLua/build/luajit-2.1.0b3/src/lj_asm_ppc.h/0 | {
"file_path": "xLua/build/luajit-2.1.0b3/src/lj_asm_ppc.h",
"repo_id": "xLua",
"token_count": 37473
} | 1,939 |
/*
** String scanning.
** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h
*/
#ifndef _LJ_STRSCAN_H
#define _LJ_STRSCAN_H
#include "lj_obj.h"
/* Options for accepted/returned formats. */
#define STRSCAN_OPT_TOINT 0x01 /* Convert to int32_t, if possible. */
#define STRSCAN_OPT_TONUM 0x02 /* Alway... | xLua/build/luajit-2.1.0b3/src/lj_strscan.h/0 | {
"file_path": "xLua/build/luajit-2.1.0b3/src/lj_strscan.h",
"repo_id": "xLua",
"token_count": 501
} | 1,940 |
/*
** VM event handling.
** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h
*/
#include <stdio.h>
#define lj_vmevent_c
#define LUA_CORE
#include "lj_obj.h"
#include "lj_str.h"
#include "lj_tab.h"
#include "lj_state.h"
#include "lj_dispatch.h"
#include "lj_vm.h"
#include "lj_vmevent.h"
ptrdiff_t ... | xLua/build/luajit-2.1.0b3/src/lj_vmevent.c/0 | {
"file_path": "xLua/build/luajit-2.1.0b3/src/lj_vmevent.c",
"repo_id": "xLua",
"token_count": 740
} | 1,941 |
|// Low-level VM code for MIPS CPUs.
|// Bytecode interpreter, fast functions and helper functions.
|// Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h
|//
|// MIPS soft-float support contributed by Djordje Kovacevic and
|// Stefan Pejic from RT-RK.com, sponsored by Cisco Systems, Inc.
|
|.arch mips... | xLua/build/luajit-2.1.0b3/src/vm_mips.dasc/0 | {
"file_path": "xLua/build/luajit-2.1.0b3/src/vm_mips.dasc",
"repo_id": "xLua",
"token_count": 78765
} | 1,942 |
local ffi = require "ffi"
ffi.cdef[[
#pragma pack(push, 1)
typedef struct {
char x;
double y;
} foo;
#pragma pack(pop)
]]
assert(ffi.sizeof("foo") == 9)
| xLua/build/luajit-2.1.0b3/src/x64/test/unit/ffi/test_pragma_pack_pushpop.lua/0 | {
"file_path": "xLua/build/luajit-2.1.0b3/src/x64/test/unit/ffi/test_pragma_pack_pushpop.lua",
"repo_id": "xLua",
"token_count": 79
} | 1,943 |
#ifndef LUASOCKET_H
#define LUASOCKET_H
/*=========================================================================*\
* LuaSocket toolkit
* Networking support for the Lua language
* Diego Nehab
* 9/11/1999
\*=========================================================================*/
#include "lua.h"
/*----------------... | xLua/build/luasocket/luasocket.h/0 | {
"file_path": "xLua/build/luasocket/luasocket.h",
"repo_id": "xLua",
"token_count": 187
} | 1,944 |
#ifndef UDP_H
#define UDP_H
/*=========================================================================*\
* UDP object
* LuaSocket toolkit
*
* The udp.h module provides LuaSocket with support for UDP protocol
* (AF_INET, SOCK_DGRAM).
*
* Two classes are defined: connected and unconnected. UDP objects are
* originally u... | xLua/build/luasocket/udp.h/0 | {
"file_path": "xLua/build/luasocket/udp.h",
"repo_id": "xLua",
"token_count": 267
} | 1,945 |
cd luajit-2.1.0b3
make clean
make CC="gcc -m32"
cd ..
mkdir -p build_linux32_lj && cd build_linux32_lj
cmake -DUSING_LUAJIT=ON -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_SHARED_LINKER_FLAGS=-m32 ../
cd ..
cmake --build build_linux32_lj --config Release
| xLua/build/make_linux32_luajit.sh/0 | {
"file_path": "xLua/build/make_linux32_luajit.sh",
"repo_id": "xLua",
"token_count": 128
} | 1,946 |
@echo off
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
echo Swtich to x64 build env
cd %~dp0\luajit-2.1.0b3\src
call msvcbuild_mt.bat static
cd ..\..
mkdir build_lj64 & pushd build_lj64
cmake -DUSING_LUAJIT=ON -G "Visual Studio 16 2019" -A x64 ..
IF %ERRORLEVEL... | xLua/build/make_win64_luajit.bat/0 | {
"file_path": "xLua/build/make_win64_luajit.bat",
"repo_id": "xLua",
"token_count": 228
} | 1,947 |
body,
footer,
header,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
blockquote,
dl,
dt,
dd,
ul,
ol,
li,
form,
fieldset,
legend,
button,
input,
textarea,
th,
td {
margin: 0;
padding: 0;
}
text-align center {
-webkit-text-size-adjust: none;
color: #3d9cff;
}
body,
button,
input,
select,
textarea,
ol,
p,
blockquote,
dl,
dt,
dd,
... | xLua/docs/public/css/page.css/0 | {
"file_path": "xLua/docs/public/css/page.css",
"repo_id": "xLua",
"token_count": 4390
} | 1,948 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>FAQ — XLua</title>
<meta charset="utf-8">
<meta name="description" content="XLua">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="/xLua/public/css/page.css">
... | xLua/docs/public/v1/guide/faq.html/0 | {
"file_path": "xLua/docs/public/v1/guide/faq.html",
"repo_id": "xLua",
"token_count": 15152
} | 1,949 |
module.exports = function(hljs) {
var KEYWORDS = {
keyword:
// Normal keywords.
'abstract as base bool break byte case catch char checked const continue decimal ' +
'default delegate do double enum event explicit extern finally fixed float ' +
'for foreach goto if implicit in int interface... | xLua/docs/source/patch/highlight.js/lib/languages/cs.js/0 | {
"file_path": "xLua/docs/source/patch/highlight.js/lib/languages/cs.js",
"repo_id": "xLua",
"token_count": 2672
} | 1,950 |
site_description: "XLua"
github: https://github.com/Tencent/xLua
modify_github: https://github.com/Tencent/xLua/tree/master/docs/source/src/
copyright: © Copyright 2017 Tencent All Rights Reserved
copyright_desc: Tencent 2017 | xLua/docs/source/themes/catlib/_config.yml/0 | {
"file_path": "xLua/docs/source/themes/catlib/_config.yml",
"repo_id": "xLua",
"token_count": 71
} | 1,951 |
/*
(C) 2019 David Lettier
lettier.com
*/
#version 150
uniform sampler2D colorTexture;
uniform vec2 enabled;
out vec4 fragColor;
void main() {
int size = 3;
float separation = 4.0;
float threshold = 0.6;
float amount = 0.6;
if (enabled.x != 1 || size <= 0) { fragColor = vec4(0); return; ... | 3d-game-shaders-for-beginners/demonstration/shaders/fragment/bloom.frag/0 | {
"file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/bloom.frag",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 424
} | 0 |
/*
(C) 2019 David Lettier
lettier.com
*/
#version 150
uniform struct
{ vec4 diffuse
;
} p3d_Material;
out vec4 fragColor;
void main() {
fragColor = p3d_Material.diffuse;
}
| 3d-game-shaders-for-beginners/demonstration/shaders/fragment/material-diffuse.frag/0 | {
"file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/material-diffuse.frag",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 78
} | 1 |
/*
(C) 2019 David Lettier
lettier.com
*/
#version 150
#define NUM_SAMPLES 8
#define NUM_NOISE 4
uniform mat4 lensProjection;
uniform vec3 samples[NUM_SAMPLES];
uniform vec3 noise[NUM_NOISE];
uniform sampler2D positionTexture;
uniform sampler2D normalTexture;
uniform vec2 enabled;
out vec4 fragColor;
void ... | 3d-game-shaders-for-beginners/demonstration/shaders/fragment/ssao.frag/0 | {
"file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/ssao.frag",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 902
} | 2 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta name="description" content="Interested in adding textures, lighting, shadows, normal maps, glowi... | 3d-game-shaders-for-beginners/docs/outlining.html/0 | {
"file_path": "3d-game-shaders-for-beginners/docs/outlining.html",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 9561
} | 3 |
[:arrow_backward:](fog.md)
[:arrow_double_up:](../README.md)
[:arrow_up_small:](#)
[:arrow_down_small:](#copyright)
[:arrow_forward:](bloom.md)
# 3D Game Shaders For Beginners
## Blur
<p align="center">
<img src="https://i.imgur.com/b5vw2AJ.gif" alt="Kuwahara Filter" title="Kuwahara Filter">
</p>
The need to blur t... | 3d-game-shaders-for-beginners/sections/blur.md/0 | {
"file_path": "3d-game-shaders-for-beginners/sections/blur.md",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 4702
} | 4 |
[:arrow_backward:](ssao.md)
[:arrow_double_up:](../README.md)
[:arrow_up_small:](#)
[:arrow_down_small:](#copyright)
[:arrow_forward:](chromatic-aberration.md)
# 3D Game Shaders For Beginners
## Motion Blur
<p align="center">
<img src="https://i.imgur.com/eTnhpLr.gif" alt="Motion Blur" title="Motion Blur">
</p>
To ... | 3d-game-shaders-for-beginners/sections/motion-blur.md/0 | {
"file_path": "3d-game-shaders-for-beginners/sections/motion-blur.md",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 1759
} | 5 |
# Skip json.hpp since it is copied directly from external repo
AirLib/include/common/common_utils/json.hpp | AirSim/.clang-format-ignore/0 | {
"file_path": "AirSim/.clang-format-ignore",
"repo_id": "AirSim",
"token_count": 30
} | 6 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef air_VehicleApiBase_hpp
#define air_VehicleApiBase_hpp
#include "common/CommonStructs.hpp"
#include "common/UpdatableObject.hpp"
#include "common/Common.hpp"
#include "common/Waiter.hpp"
#include "safety/SafetyEval.... | AirSim/AirLib/include/api/VehicleApiBase.hpp/0 | {
"file_path": "AirSim/AirLib/include/api/VehicleApiBase.hpp",
"repo_id": "AirSim",
"token_count": 3467
} | 7 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef air_ImageCaptureBase_hpp
#define air_ImageCaptureBase_hpp
#include "common/Common.hpp"
#include "common/common_utils/EnumFlags.hpp"
namespace msr
{
namespace airlib
{
// This is an abstraction for cameras ass... | AirSim/AirLib/include/common/ImageCaptureBase.hpp/0 | {
"file_path": "AirSim/AirLib/include/common/ImageCaptureBase.hpp",
"repo_id": "AirSim",
"token_count": 1128
} | 8 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef air_ExceptionsUtils_hpp
#define air_ExceptionsUtils_hpp
//print exception stack trace
//from: http://stackoverflow.com/a/11674810/207661
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored ... | AirSim/AirLib/include/common/common_utils/ExceptionUtils.hpp/0 | {
"file_path": "AirSim/AirLib/include/common/common_utils/ExceptionUtils.hpp",
"repo_id": "AirSim",
"token_count": 505
} | 9 |
/*
*****************************************************************************
* *
* Platform Independent *
* Bitmap Image Reader Writer Library *
* ... | AirSim/AirLib/include/common/common_utils/bitmap_image.hpp/0 | {
"file_path": "AirSim/AirLib/include/common/common_utils/bitmap_image.hpp",
"repo_id": "AirSim",
"token_count": 126395
} | 10 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef airsim_core_World_hpp
#define airsim_core_World_hpp
#include <functional>
#include "common/Common.hpp"
#include "common/UpdatableContainer.hpp"
#include "PhysicsEngineBase.hpp"
#include "PhysicsBody.hpp"
#include "... | AirSim/AirLib/include/physics/World.hpp/0 | {
"file_path": "AirSim/AirLib/include/physics/World.hpp",
"repo_id": "AirSim",
"token_count": 2264
} | 11 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef msr_airlib_Gps_hpp
#define msr_airlib_Gps_hpp
#include <random>
#include "common/Common.hpp"
#include "GpsSimpleParams.hpp"
#include "GpsBase.hpp"
#include "common/FirstOrderFilter.hpp"
#include "common/FrequencyLi... | AirSim/AirLib/include/sensors/gps/GpsSimple.hpp/0 | {
"file_path": "AirSim/AirLib/include/sensors/gps/GpsSimple.hpp",
"repo_id": "AirSim",
"token_count": 1594
} | 12 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef msr_airlib_ArduRoverCarController_hpp
#define msr_airlib_ArduRoverCarController_hpp
#include "vehicles/car/api/CarApiBase.hpp"
#include "sensors/SensorCollection.hpp"
#include "common/Common.hpp"
#include "common/... | AirSim/AirLib/include/vehicles/car/firmwares/ardurover/ArduRoverApi.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/car/firmwares/ardurover/ArduRoverApi.hpp",
"repo_id": "AirSim",
"token_count": 5715
} | 13 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef msr_airlib_MavLinkDroneController_hpp
#define msr_airlib_MavLinkDroneController_hpp
#include "MavLinkConnection.hpp"
#include "MavLinkMessages.hpp"
#include "MavLinkNode.hpp"
#include "MavLinkVehicle.hpp"
#include ... | AirSim/AirLib/include/vehicles/multirotor/firmwares/mavlink/MavLinkMultirotorApi.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/mavlink/MavLinkMultirotorApi.hpp",
"repo_id": "AirSim",
"token_count": 44249
} | 14 |
#pragma once
#include "interfaces/CommonStructs.hpp"
namespace simple_flight
{
struct Params
{
public:
static float min_armed_throttle()
{
static float val = 0.1f;
return val;
}
//this should match up with target board
//simulation board should respect possible values
struct ... | AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/Params.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/Params.hpp",
"repo_id": "AirSim",
"token_count": 2059
} | 15 |
#pragma once
#include <cstdint>
#include "IUpdatable.hpp"
#include "IGoal.hpp"
#include "IStateEstimator.hpp"
#include "IBoardClock.hpp"
namespace simple_flight
{
class IController : public IUpdatable
{
public:
virtual void initialize(const IGoal* goal, const IStateEstimator* state_estimator) = 0;
virtual co... | AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/interfaces/IController.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/interfaces/IController.hpp",
"repo_id": "AirSim",
"token_count": 159
} | 16 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//in header only mode, control library is not available
#ifndef AIRLIB_HEADER_ONLY
//RPC code requires C++14. If build system like Unreal doesn't support it then use compiled binaries
#ifndef AIRLIB_NO_RPC
//if using Unreal... | AirSim/AirLib/src/vehicles/multirotor/api/MultirotorRpcLibServer.cpp/0 | {
"file_path": "AirSim/AirLib/src/vehicles/multirotor/api/MultirotorRpcLibServer.cpp",
"repo_id": "AirSim",
"token_count": 4484
} | 17 |
# Changelog
This page has moved [here](https://github.com/microsoft/AirSim/blob/main/docs/CHANGELOG.md). | AirSim/CHANGELOG.md/0 | {
"file_path": "AirSim/CHANGELOG.md",
"repo_id": "AirSim",
"token_count": 38
} | 18 |
ECHO OFF
SET NUM=1000
SET AIRSIMPATH=E:\AirSimBinaries
SET DATAPATH=D:\Data\AirSim
SET EXE=DataCollectorSGM.exe
mkdir %DATAPATH%
START /I %AIRSIMPATH%\Africa\Africa_001.exe -windowed
TIMEOUT 30 & REM Waits 30 seconds
START /B /wait %EXE% %NUM% %DATAPATH%\AA
TIMEOUT 10 & REM Waits 10 seconds
TASKKILL /F /IM Africa_001... | AirSim/Examples/DataCollection/exe/getData.bat/0 | {
"file_path": "AirSim/Examples/DataCollection/exe/getData.bat",
"repo_id": "AirSim",
"token_count": 778
} | 19 |
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="16.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), AirSim.props))\AirSim.props" />
<PropertyGroup>
<ShowAllFiles>true</Show... | AirSim/HelloCar/HelloCar.vcxproj/0 | {
"file_path": "AirSim/HelloCar/HelloCar.vcxproj",
"repo_id": "AirSim",
"token_count": 5887
} | 20 |
using LogViewer.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using Sy... | AirSim/LogViewer/LogViewer/Controls/AppSettings.xaml.cs/0 | {
"file_path": "AirSim/LogViewer/LogViewer/Controls/AppSettings.xaml.cs",
"repo_id": "AirSim",
"token_count": 578
} | 21 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using LogViewer.Utilities;
using System.Windows;
using System.Windows.Input;
namespace LogViewer.Controls
{
class ScrollViewerLite : ScrollViewer
{
Border ... | AirSim/LogViewer/LogViewer/Controls/ScrollViewerLite.cs/0 | {
"file_path": "AirSim/LogViewer/LogViewer/Controls/ScrollViewerLite.cs",
"repo_id": "AirSim",
"token_count": 890
} | 22 |
using System.Collections.Generic;
using System.Linq;
namespace LogViewer.Model
{
/// <summary>
/// This class is used to provide schema information about the IDataLog, notice it is hierarchical, so it can
/// be bound to a Tree control so user can drill into log item data at any level, the selected items... | AirSim/LogViewer/LogViewer/Model/LogItemSchema.cs/0 | {
"file_path": "AirSim/LogViewer/LogViewer/Model/LogItemSchema.cs",
"repo_id": "AirSim",
"token_count": 2678
} | 23 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows;
namespace LogViewer.Utilities
{
public static class MathHelpers
{
/// <summary>
/// Return the Mean of the given numbers.
/// </summary>
public ... | AirSim/LogViewer/LogViewer/Utilities/MathHelpers.cs/0 | {
"file_path": "AirSim/LogViewer/LogViewer/Utilities/MathHelpers.cs",
"repo_id": "AirSim",
"token_count": 1859
} | 24 |
using Microsoft.Networking.Mavlink;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.Networking
{
... | AirSim/LogViewer/Networking/UdpPort.cs/0 | {
"file_path": "AirSim/LogViewer/Networking/UdpPort.cs",
"repo_id": "AirSim",
"token_count": 3905
} | 25 |
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx... | AirSim/MavLinkCom/MavLinkMoCap/MavLinkMoCap.vcxproj.filters/0 | {
"file_path": "AirSim/MavLinkCom/MavLinkMoCap/MavLinkMoCap.vcxproj.filters",
"repo_id": "AirSim",
"token_count": 590
} | 26 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// PX4.cpp : Defines the entry point for the console application.
#include "Utils.hpp"
#include "FileSystem.hpp"
#include "MavLinkTcpServer.hpp"
#include "MavLinkConnection.hpp"
#include "MavLinkVehicle.hpp"
#include "MavL... | AirSim/MavLinkCom/MavLinkTest/main.cpp/0 | {
"file_path": "AirSim/MavLinkCom/MavLinkTest/main.cpp",
"repo_id": "AirSim",
"token_count": 27971
} | 27 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef commn_utils_type_utils_hpp
#define commn_utils_type_utils_hpp
#include <type_traits>
#include <valarray>
namespace mavlink_utils
{
namespace type_utils
{
//from: https://raw.githubusercontent.com/louisdx/cxx-p... | AirSim/MavLinkCom/common_utils/type_utils.hpp/0 | {
"file_path": "AirSim/MavLinkCom/common_utils/type_utils.hpp",
"repo_id": "AirSim",
"token_count": 1507
} | 28 |
#pragma once
// clang-format off
#if defined(MAVLINK_USE_CXX_NAMESPACE)
namespace mavlink {
#elif defined(__cplusplus)
extern "C" {
#endif
// Visual Studio versions before 2010 don't have stdint.h, so we just error out.
#if (defined _MSC_VER) && (_MSC_VER < 1600)
#error "The C-MAVLink implementation requires Visual S... | AirSim/MavLinkCom/mavlink/checksum.h/0 | {
"file_path": "AirSim/MavLinkCom/mavlink/checksum.h",
"repo_id": "AirSim",
"token_count": 939
} | 29 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "StrictMode.hpp"
STRICT_MODE_OFF
#define MAVLINK_PACKED
#include "../mavlink/common/mavlink.h"
#include "../mavlink/mavlink_types.h"
#include "../mavlink/mavlink_helpers.h"
STRICT_MODE_ON
#include "MavLinkConnect... | AirSim/MavLinkCom/src/MavLinkMessageBase.cpp/0 | {
"file_path": "AirSim/MavLinkCom/src/MavLinkMessageBase.cpp",
"repo_id": "AirSim",
"token_count": 6533
} | 30 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "MavLinkTcpServerImpl.hpp"
#include "../serial_com/TcpClientPort.hpp"
using namespace mavlinkcom_impl;
MavLinkTcpServerImpl::MavLinkTcpServerImpl(const std::string& local_addr, int local_port)
{
local_address... | AirSim/MavLinkCom/src/impl/MavLinkTcpServerImpl.cpp/0 | {
"file_path": "AirSim/MavLinkCom/src/impl/MavLinkTcpServerImpl.cpp",
"repo_id": "AirSim",
"token_count": 289
} | 31 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "Utils.hpp"
#include "TcpClientPort.hpp"
#include <stdio.h>
#include <string.h>
#include "SocketInit.hpp"
#include "wifi.h"
using namespace mavlink_utils;
#ifdef _WIN32
// windows
#ifndef WIN32_LEAN_AND_MEAN
#def... | AirSim/MavLinkCom/src/serial_com/TcpClientPort.cpp/0 | {
"file_path": "AirSim/MavLinkCom/src/serial_com/TcpClientPort.cpp",
"repo_id": "AirSim",
"token_count": 5048
} | 32 |
import numpy as np #pip install numpy
import math
import time
import sys
import os
import inspect
import types
import re
import logging
from .types import *
def string_to_uint8_array(bstr):
return np.fromstring(bstr, np.uint8)
def string_to_float_array(bstr):
return np.fromstring(bstr, np.float32)
... | AirSim/PythonClient/airsim/utils.py/0 | {
"file_path": "AirSim/PythonClient/airsim/utils.py",
"repo_id": "AirSim",
"token_count": 2497
} | 33 |
import numpy
import cv2
import time
import sys
import os
import random
import glob
from airsim import *
def rotation_matrix_from_angles(pry):
pitch = pry[0]
roll = pry[1]
yaw = pry[2]
sy = numpy.sin(yaw)
cy = numpy.cos(yaw)
sp = numpy.sin(pitch)
cp = numpy.cos(pitch)
sr = numpy.sin(roll... | AirSim/PythonClient/computer_vision/capture_ir_segmentation.py/0 | {
"file_path": "AirSim/PythonClient/computer_vision/capture_ir_segmentation.py",
"repo_id": "AirSim",
"token_count": 4177
} | 34 |
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = .
BUILDDIR = _build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPH... | AirSim/PythonClient/docs/Makefile/0 | {
"file_path": "AirSim/PythonClient/docs/Makefile",
"repo_id": "AirSim",
"token_count": 237
} | 35 |
# Imitation Learning
This section is about training a model to steer our Formula car using imitation learning.
The code in this section is based on the [Autonomous Driving Cookbook](https://github.com/Microsoft/AutonomousDrivingCookbook/tree/master/AirSimE2EDeepLearning) from Airsim and it's highly recommended to ... | AirSim/PythonClient/imitation_learning/README.md/0 | {
"file_path": "AirSim/PythonClient/imitation_learning/README.md",
"repo_id": "AirSim",
"token_count": 779
} | 36 |
import airsim
from datetime import datetime
'''
Simple script with settings to create a high-resolution camera, and fetching it
Settings used-
{
"SettingsVersion": 1.2,
"SimMode": "Multirotor",
"Vehicles" : {
"Drone1" : {
"VehicleType" : "SimpleFlight",
"AutoCreate" : true,... | AirSim/PythonClient/multirotor/high_res_camera.py/0 | {
"file_path": "AirSim/PythonClient/multirotor/high_res_camera.py",
"repo_id": "AirSim",
"token_count": 1039
} | 37 |
# Please add "EnableTrace": true to your setting.json as shown below
# {
# "SettingsVersion": 1.2,
# "SimMode": "Multirotor",
# "Vehicles": {
# "Drone": {
# "VehicleType": "SimpleFlight",
# "EnableTrace": true
# }
# }
# }
import setup_path
import airsim
import time
# conne... | AirSim/PythonClient/multirotor/set_trace_line.py/0 | {
"file_path": "AirSim/PythonClient/multirotor/set_trace_line.py",
"repo_id": "AirSim",
"token_count": 470
} | 38 |
import setup_path
import gym
import airgym
import time
from stable_baselines3 import DQN
from stable_baselines3.common.monitor import Monitor
from stable_baselines3.common.vec_env import DummyVecEnv, VecTransposeImage
from stable_baselines3.common.evaluation import evaluate_policy
from stable_baselines3.common.callbac... | AirSim/PythonClient/reinforcement_learning/dqn_car.py/0 | {
"file_path": "AirSim/PythonClient/reinforcement_learning/dqn_car.py",
"repo_id": "AirSim",
"token_count": 682
} | 39 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// by Sudipta Sinha
// adapted for AirSim by Matthias Mueller
#pragma once
#include "../sgmstereo/sgmstereo.h"
#include "SGMOptions.h"
#include <vector>
class CStateStereo
{
private:
float downSampleFactor;
std::s... | AirSim/SGM/src/stereoPipeline/StateStereo.h/0 | {
"file_path": "AirSim/SGM/src/stereoPipeline/StateStereo.h",
"repo_id": "AirSim",
"token_count": 328
} | 40 |
#include "SimHUD.h"
#include "../PInvokeWrapper.h"
#include "../Vehicles/Car/SimModeCar.h"
#include "../Vehicles/Multirotor/SimModeWorldMultiRotor.h"
SimHUD::SimHUD(std::string sim_mode_name, int port_number)
: sim_mode_name_(sim_mode_name), port_number_(port_number)
{
server_started_Successfully_ = false;
}
... | AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/SimHUD/SimHUD.cpp/0 | {
"file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/SimHUD/SimHUD.cpp",
"repo_id": "AirSim",
"token_count": 1329
} | 41 |
#include "CarPawn.h"
#define LOCTEXT_NAMESPACE "VehiclePawn"
CarPawn::CarPawn(std::string car_name)
: car_name_(car_name)
{
is_low_friction_ = false;
}
#undef LOCTEXT_NAMESPACE
| AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/Vehicles/Car/CarPawn.cpp/0 | {
"file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/Vehicles/Car/CarPawn.cpp",
"repo_id": "AirSim",
"token_count": 89
} | 42 |
#include "WorldSimApi.h"
#include "PInvokeWrapper.h"
#include "UnityUtilities.hpp"
WorldSimApi::WorldSimApi(SimModeBase* simmode)
: simmode_(simmode)
{
}
WorldSimApi::~WorldSimApi()
{
}
bool WorldSimApi::isPaused() const
{
return simmode_->isPaused();
}
void WorldSimApi::reset()
{
simmode_->reset();
}
... | AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/WorldSimApi.cpp/0 | {
"file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/WorldSimApi.cpp",
"repo_id": "AirSim",
"token_count": 8839
} | 43 |
fileFormatVersion: 2
guid: 62e76ff4f9e9bb44ea9c9ad2d67bdf98
timeCreated: 1443785993
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/AirSimAssets/Materials/Propeller.mat.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Materials/Propeller.mat.meta",
"repo_id": "AirSim",
"token_count": 74
} | 44 |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1069380937563562
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4015438019020906}
- component: {fileID: 114413233... | AirSim/Unity/UnityDemo/Assets/AirSimAssets/Prefabs/AirSimHUD.prefab/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Prefabs/AirSimHUD.prefab",
"repo_id": "AirSim",
"token_count": 16427
} | 45 |
fileFormatVersion: 2
guid: 23c9850d88ee1d446994346dd4737fc7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts.meta",
"repo_id": "AirSim",
"token_count": 67
} | 46 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.