text
stringlengths
7
35.3M
id
stringlengths
11
185
metadata
dict
__index_level_0__
int64
0
2.14k
# API Reference Our developer-facing C# classes have been documented to be compatible with Doxygen for auto-generating HTML documentation. To generate the API reference, download Doxygen and run the following command within the `docs/` directory: ```sh doxygen dox-ml-agents.conf ``` `dox-ml-agents.conf` is a Doxyge...
ml-agents/docs/API-Reference.md/0
{ "file_path": "ml-agents/docs/API-Reference.md", "repo_id": "ml-agents", "token_count": 194 }
1,909
{!../LICENSE.md!}
ml-agents/docs/LICENSE.md/0
{ "file_path": "ml-agents/docs/LICENSE.md", "repo_id": "ml-agents", "token_count": 11 }
1,910
# Unity ML-Agents Gym Wrapper A common way in which machine learning researchers interact with simulation environments is via a wrapper provided by OpenAI called `gym`. For more information on the gym interface, see [here](https://github.com/openai/gym). We provide a gym wrapper and instructions for using it with exi...
ml-agents/docs/Python-Gym-API.md/0
{ "file_path": "ml-agents/docs/Python-Gym-API.md", "repo_id": "ml-agents", "token_count": 3916 }
1,911
# Using Docker For ML-Agents (Deprecated) :warning: **Note:** We no longer use this guide ourselves and so it may not work correctly. We've decided to keep it up just in case it is helpful to you. We currently offer a solution for Windows and Mac users who would like to do training or inference using Docker. This opt...
ml-agents/docs/Using-Docker.md/0
{ "file_path": "ml-agents/docs/Using-Docker.md", "repo_id": "ml-agents", "token_count": 2090 }
1,912
<img src="images/image-banner.png" align="middle" width="3000"/> {!README.md!}
ml-agents/docs/index.md/0
{ "file_path": "ml-agents/docs/index.md", "repo_id": "ml-agents", "token_count": 31 }
1,913
# Başlangıç Rehberi Bu rehber, Unity'de [örnek ortamlarımızdan](https://github.com/Unity-Technologies/ml-agents/blob/release_8_docs/docs/Learning-Environment-Examples.md) birini açma, içinde bir Agent 'i eğitme ve eğitilmiş modeli Unity ortamına yerleştirme sürecini baştan sona anlatır. Bu rehberi bitirdikten sonra ör...
ml-agents/localized_docs/TR/docs/Getting-Started.md/0
{ "file_path": "ml-agents/localized_docs/TR/docs/Getting-Started.md", "repo_id": "ml-agents", "token_count": 6226 }
1,914
# 学习环境示例 Unity ML-Agents 工具包中内置了一些搭建好的学习环境的示例,并且我们还在不断增加新的示例,这些示例演示了该平台的各种功能。示例环境位于 `unity-environment/Assets/ML-Agents/Examples` 中,并且我们在下文中进行了简单的介绍。 此外,我们的 [首届 ML-Agents 挑战赛](https://connect.unity.com/challenges/ml-agents-1) 中包含了由社区成员创建的一些环境示例。 此页仅概述了我们提供的示例环境。如果想要更多地学习如何设计和构建您自己的环境,请参阅 [创建新的学习环境](Learning-Environme...
ml-agents/localized_docs/zh-CN/docs/Learning-Environment-Examples.md/0
{ "file_path": "ml-agents/localized_docs/zh-CN/docs/Learning-Environment-Examples.md", "repo_id": "ml-agents", "token_count": 7751 }
1,915
{ "ignorePatterns": [ { "pattern": "^http://localhost", "comment": "Ignore local tensorboard links" }, { "pattern": "^https://developer.nvidia.com/compute/machine-learning/cudnn/secure", "comment": "Requires login" }, { ...
ml-agents/markdown-link-check.fast.json/0
{ "file_path": "ml-agents/markdown-link-check.fast.json", "repo_id": "ml-agents", "token_count": 280 }
1,916
# @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.internal.containers import ( RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScal...
ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/brain_parameters_pb2.pyi/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/brain_parameters_pb2.pyi", "repo_id": "ml-agents", "token_count": 1762 }
1,917
# @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/space_type_pb2.pyi/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/space_type_pb2.pyi", "repo_id": "ml-agents", "token_count": 415 }
1,918
# @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.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC...
ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_output_pb2.pyi/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_output_pb2.pyi", "repo_id": "ml-agents", "token_count": 1698 }
1,919
from mlagents_envs.registry.unity_env_registry import ( # noqa F401 default_registry, UnityEnvRegistry, )
ml-agents/ml-agents-envs/mlagents_envs/registry/__init__.py/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/registry/__init__.py", "repo_id": "ml-agents", "token_count": 46 }
1,920
import uuid import struct from typing import Dict, Optional, List from mlagents_envs.side_channel import SideChannel, IncomingMessage from mlagents_envs.exception import UnityEnvironmentException from mlagents_envs.logging_util import get_logger class SideChannelManager: def __init__(self, side_channels=Optional[...
ml-agents/ml-agents-envs/mlagents_envs/side_channel/side_channel_manager.py/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/side_channel/side_channel_manager.py", "repo_id": "ml-agents", "token_count": 1616 }
1,921
import pytest import numpy as np from mlagents_envs.base_env import ( DecisionSteps, TerminalSteps, ActionSpec, BehaviorSpec, ) from dummy_config import create_observation_specs_with_shapes def test_decision_steps(): ds = DecisionSteps( obs=[np.array(range(12), dtype=np.float32).reshape(3...
ml-agents/ml-agents-envs/tests/test_steps.py/0
{ "file_path": "ml-agents/ml-agents-envs/tests/test_steps.py", "repo_id": "ml-agents", "token_count": 1928 }
1,922
from typing import cast import numpy as np from mlagents_envs.logging_util import get_logger from mlagents.trainers.buffer import BufferKey from mlagents.trainers.policy.torch_policy import TorchPolicy from mlagents.trainers.trainer.off_policy_trainer import OffPolicyTrainer from mlagents.trainers.optimizer.torch_opti...
ml-agents/ml-agents-trainer-plugin/mlagents_trainer_plugin/dqn/dqn_trainer.py/0
{ "file_path": "ml-agents/ml-agents-trainer-plugin/mlagents_trainer_plugin/dqn/dqn_trainer.py", "repo_id": "ml-agents", "token_count": 2564 }
1,923
from typing import Set, Dict, Any, TextIO import os import yaml from mlagents.trainers.exception import TrainerConfigError from mlagents_envs.environment import UnityEnvironment import argparse from mlagents_envs import logging_util logger = logging_util.get_logger(__name__) class RaiseRemovedWarning(argparse.Action...
ml-agents/ml-agents/mlagents/trainers/cli_utils.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/cli_utils.py", "repo_id": "ml-agents", "token_count": 4735 }
1,924
from collections import defaultdict from enum import Enum from typing import List, Dict, NamedTuple, Any, Optional import numpy as np import abc import os import time from threading import RLock from mlagents_envs.side_channel.stats_side_channel import StatsAggregationMethod from mlagents_envs.logging_util import get...
ml-agents/ml-agents/mlagents/trainers/stats.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/stats.py", "repo_id": "ml-agents", "token_count": 6305 }
1,925
import pytest import yaml from mlagents.trainers.exception import TrainerConfigError, TrainerConfigWarning from mlagents.trainers.environment_parameter_manager import EnvironmentParameterManager from mlagents.trainers.settings import ( RunOptions, UniformSettings, GaussianSettings, ConstantSettings, ...
ml-agents/ml-agents/mlagents/trainers/tests/test_env_param_manager.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/tests/test_env_param_manager.py", "repo_id": "ml-agents", "token_count": 5062 }
1,926
from mlagents.trainers.optimizer.torch_optimizer import TorchOptimizer import pytest from unittest import mock import os import numpy as np from mlagents.torch_utils import torch, default_device from mlagents.trainers.policy.torch_policy import TorchPolicy from mlagents.trainers.ppo.optimizer_torch import TorchPPOOpti...
ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/saver/test_saver.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/saver/test_saver.py", "repo_id": "ml-agents", "token_count": 3562 }
1,927
import pytest from mlagents.trainers.policy.torch_policy import TorchPolicy from mlagents.trainers.tests import mock_brain as mb from mlagents.trainers.settings import NetworkSettings from mlagents.trainers.torch_entities.networks import SimpleActor VECTOR_ACTION_SPACE = 2 VECTOR_OBS_SPACE = 8 DISCRETE_ACTION_SPACE =...
ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_policy.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_policy.py", "repo_id": "ml-agents", "token_count": 904 }
1,928
from typing import Tuple, Optional, List from mlagents.torch_utils import torch from mlagents.trainers.exception import UnityTrainerException from mlagents.trainers.torch_entities.layers import ( LinearEncoder, Initialization, linear_layer, LayerNorm, ) from mlagents.trainers.torch_entities.model_seria...
ml-agents/ml-agents/mlagents/trainers/torch_entities/attention.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/torch_entities/attention.py", "repo_id": "ml-agents", "token_count": 4789 }
1,929
from typing import Tuple import threading from mlagents.torch_utils import torch from mlagents_envs.logging_util import get_logger from mlagents.trainers.settings import SerializationSettings logger = get_logger(__name__) class exporting_to_onnx: """ Set this context by calling ``` with exporting_t...
ml-agents/ml-agents/mlagents/trainers/torch_entities/model_serialization.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/torch_entities/model_serialization.py", "repo_id": "ml-agents", "token_count": 2661 }
1,930
import os import argparse from huggingface_hub import snapshot_download from mlagents_envs import logging_util from mlagents_envs.logging_util import get_logger logger = get_logger(__name__) logging_util.set_log_level(logging_util.INFO) def load_from_hf(repo_id: str, local_dir: str) -> None: """ Download a...
ml-agents/ml-agents/mlagents/utils/load_from_hf.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/utils/load_from_hf.py", "repo_id": "ml-agents", "token_count": 487 }
1,931
# variables # GRPC-TOOLS required. Install with `nuget install Grpc.Tools`. # Then un-comment and replace [DIRECTORY] with location of files. # For example, on macOS, you might have something like: # COMPILER=Grpc.Tools.1.14.1/tools/macosx_x64 # COMPILER=[DIRECTORY] SRC_DIR=proto/mlagents_envs/communicator_objects DS...
ml-agents/protobuf-definitions/make.sh/0
{ "file_path": "ml-agents/protobuf-definitions/make.sh", "repo_id": "ml-agents", "token_count": 824 }
1,932
syntax = "proto3"; import "mlagents_envs/communicator_objects/unity_output.proto"; import "mlagents_envs/communicator_objects/unity_input.proto"; import "mlagents_envs/communicator_objects/header.proto"; option csharp_namespace = "Unity.MLAgents.CommunicatorObjects"; package communicator_objects; message UnityMessag...
ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/unity_message.proto/0
{ "file_path": "ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/unity_message.proto", "repo_id": "ml-agents", "token_count": 148 }
1,933
#!/usr/bin/env python3 import os import glob from setuptools import find_packages, PEP420PackageFinder class NonTrivialPEP420PackageFinder(PEP420PackageFinder): """ The PEP420PackageFinder (used by find_namespace_packages) thinks everything looks like a package, even if there are no python files in it. T...
ml-agents/utils/validate_inits.py/0
{ "file_path": "ml-agents/utils/validate_inits.py", "repo_id": "ml-agents", "token_count": 616 }
1,934
fileFormatVersion: 2 guid: ef0ed550afe43d449b58d883fad0585c timeCreated: 1498103331 licenseType: Pro PluginImporter: serializedVersion: 1 iconMap: {} executionOrder: {} isPreloaded: 0 isOverridable: 0 platformData: Any: enabled: 0 settings: {} Editor: enabled: 0 settings: ...
xLua/Assets/Plugins/iOS/HotfixFlags.cpp.meta/0
{ "file_path": "xLua/Assets/Plugins/iOS/HotfixFlags.cpp.meta", "repo_id": "xLua", "token_count": 193 }
1,935
fileFormatVersion: 2 guid: ac30af4fb2add4d41a9f50fe4f8292a3 timeCreated: 1457422749 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/Plugins/xlua.bundle/Contents/Info.plist.meta/0
{ "file_path": "xLua/Assets/Plugins/xlua.bundle/Contents/Info.plist.meta", "repo_id": "xLua", "token_count": 72 }
1,936
fileFormatVersion: 2 guid: fa308fa7f40ec0348addeff1475bb164 DefaultImporter: userData:
xLua/Assets/XLua/Examples/05_NoGc/NoGc.unity.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/05_NoGc/NoGc.unity.meta", "repo_id": "xLua", "token_count": 36 }
1,937
fileFormatVersion: 2 guid: 059b7b0b901925a49a1aab1169c15dee timeCreated: 1489371190 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Examples/10_SignatureLoader/otherfiles/key_ras.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/10_SignatureLoader/otherfiles/key_ras.meta", "repo_id": "xLua", "token_count": 74 }
1,938
fileFormatVersion: 2 guid: 62b967797782a6d46a759bf0693f7351 timeCreated: 1459510243 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Examples/ExampleGenConfig.cs.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/ExampleGenConfig.cs.meta", "repo_id": "xLua", "token_count": 100 }
1,939
/* * Tencent is pleased to support the open source community by making xLua available. * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License...
xLua/Assets/XLua/Src/CopyByValue.cs/0
{ "file_path": "xLua/Assets/XLua/Src/CopyByValue.cs", "repo_id": "xLua", "token_count": 2523 }
1,940
fileFormatVersion: 2 guid: 9c7307955fb71fc4090eb2a906a78a0a folderAsset: yes DefaultImporter: userData:
xLua/Assets/XLua/Src/Editor/Template.meta/0
{ "file_path": "xLua/Assets/XLua/Src/Editor/Template.meta", "repo_id": "xLua", "token_count": 46 }
1,941
fileFormatVersion: 2 guid: e416b82ec9fe340458f97cf1e3468ef7 timeCreated: 1481620508 licenseType: Pro TextScriptImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Src/Editor/Template/LuaRegister.tpl.txt.meta/0
{ "file_path": "xLua/Assets/XLua/Src/Editor/Template/LuaRegister.tpl.txt.meta", "repo_id": "xLua", "token_count": 70 }
1,942
fileFormatVersion: 2 guid: bacb817c6d0b48644892c8dc3cb6cfc1 timeCreated: 1496994941 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Src/InternalGlobals.cs.meta/0
{ "file_path": "xLua/Assets/XLua/Src/InternalGlobals.cs.meta", "repo_id": "xLua", "token_count": 105 }
1,943
solution "XLua" configurations { "Debug", "Release" } location ("./" .. (_ACTION or "")) debugdir (".") debugargs { } platforms { "Any CPU" } configuration "Debug" symbols "On" defines { "_DEBUG", "DEBUG", "TRACE" } configuration "Release" flags { "Optimize" } configurat...
xLua/General/premake5.lua/0
{ "file_path": "xLua/General/premake5.lua", "repo_id": "xLua", "token_count": 1618 }
1,944
fileFormatVersion: 2 guid: 14cd7781d98aaeb419b3c2c121a8c609 timeCreated: 1476275211 licenseType: Pro TextScriptImporter: userData: assetBundleName: assetBundleVariant:
xLua/Test/PrefTest/Resources/luaTest.lua.txt.meta/0
{ "file_path": "xLua/Test/PrefTest/Resources/luaTest.lua.txt.meta", "repo_id": "xLua", "token_count": 72 }
1,945
fileFormatVersion: 2 guid: 371aa1acd86c2484596f2b8d4e5d6b67 timeCreated: 1483528414 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Test/UnitTest/StreamingAssets/ltest/init.lua.meta/0
{ "file_path": "xLua/Test/UnitTest/StreamingAssets/ltest/init.lua.meta", "repo_id": "xLua", "token_count": 73 }
1,946
strFile = "E.lua"
xLua/Test/UnitTest/xLuaTest/CSharpCallLua/Resources/E.lua/0
{ "file_path": "xLua/Test/UnitTest/xLuaTest/CSharpCallLua/Resources/E.lua", "repo_id": "xLua", "token_count": 8 }
1,947
fileFormatVersion: 2 guid: 5cfcc83451afbc44da0435dfaf0f3a8e timeCreated: 1483527547 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
xLua/Test/UnitTest/xLuaTest/LuaCallCS/CSObjectForLuaCallCS.cs.meta/0
{ "file_path": "xLua/Test/UnitTest/xLuaTest/LuaCallCS/CSObjectForLuaCallCS.cs.meta", "repo_id": "xLua", "token_count": 100 }
1,948
INSTALL for Lua 5.1 * Building Lua ------------ Lua is built in the src directory, but the build process can be controlled from the top-level Makefile. Building Lua on Unix systems should be very easy. First do "make" and see if your platform is listed. If so, just do "make xxx", where xxx is your platfor...
xLua/build/lua-5.1.5/INSTALL/0
{ "file_path": "xLua/build/lua-5.1.5/INSTALL", "repo_id": "xLua", "token_count": 1124 }
1,949
/* * all.c -- Lua core, libraries and interpreter in a single file */ #define luaall_c #include "lapi.c" #include "lcode.c" #include "ldebug.c" #include "ldo.c" #include "ldump.c" #include "lfunc.c" #include "lgc.c" #include "llex.c" #include "lmem.c" #include "lobject.c" #include "lopcodes.c" #include "lparser.c" #i...
xLua/build/lua-5.1.5/etc/all.c/0
{ "file_path": "xLua/build/lua-5.1.5/etc/all.c", "repo_id": "xLua", "token_count": 312 }
1,950
/* ** $Id: ldblib.c,v 1.104.1.4 2009/08/04 18:50:18 roberto Exp $ ** Interface from Lua to its debug API ** See Copyright Notice in lua.h */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define ldblib_c #define LUA_LIB #include "lua.h" #include "lauxlib.h" #include "lualib.h" static int db_getregi...
xLua/build/lua-5.1.5/src/ldblib.c/0
{ "file_path": "xLua/build/lua-5.1.5/src/ldblib.c", "repo_id": "xLua", "token_count": 4697 }
1,951
/* ** $Id: lmem.c,v 1.70.1.1 2007/12/27 13:02:25 roberto Exp $ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ #include <stddef.h> #define lmem_c #define LUA_CORE #include "lua.h" #include "ldebug.h" #include "ldo.h" #include "lmem.h" #include "lobject.h" #include "lstate.h" /* ** About the r...
xLua/build/lua-5.1.5/src/lmem.c/0
{ "file_path": "xLua/build/lua-5.1.5/src/lmem.c", "repo_id": "xLua", "token_count": 847 }
1,952
/* ** $Id: ltable.h,v 2.10.1.1 2007/12/27 13:02:25 roberto Exp $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ #ifndef ltable_h #define ltable_h #include "lobject.h" #define gnode(t,i) (&(t)->node[i]) #define gkey(n) (&(n)->i_key.nk) #define gval(n) (&(n)->i_val) #define gnext(n) ((n)->i_key.nk.next) ...
xLua/build/lua-5.1.5/src/ltable.h/0
{ "file_path": "xLua/build/lua-5.1.5/src/ltable.h", "repo_id": "xLua", "token_count": 547 }
1,953
.\" $Id: lua.man,v 1.14 2020/05/21 19:31:21 lhf Exp $ .TH LUA 1 "$Date: 2020/05/21 19:31:21 $" .SH NAME lua \- Lua interpreter .SH SYNOPSIS .B lua [ .I options ] [ .I script [ .I args ] ] .SH DESCRIPTION .B lua is the standalone Lua interpreter. It loads and executes Lua programs, either in textual source form or in pr...
xLua/build/lua-5.4.1/doc/lua.1/0
{ "file_path": "xLua/build/lua-5.4.1/doc/lua.1", "repo_id": "xLua", "token_count": 1009 }
1,954
/* ** $Id: lctype.c $ ** 'ctype' functions for Lua ** See Copyright Notice in lua.h */ #define lctype_c #define LUA_CORE #include "lprefix.h" #include "lctype.h" #if !LUA_USE_CTYPE /* { */ #include <limits.h> #if defined (LUA_UCID) /* accept UniCode IDentifiers? */ /* consider all non-ascii codepoints to be al...
xLua/build/lua-5.4.1/src/lctype.c/0
{ "file_path": "xLua/build/lua-5.4.1/src/lctype.c", "repo_id": "xLua", "token_count": 1500 }
1,955
/* ** $Id: llex.h $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ #ifndef llex_h #define llex_h #include <limits.h> #include "lobject.h" #include "lzio.h" /* ** Single-char tokens (terminal symbols) are represented by their own ** numeric code. Other tokens start at the following value. */ #define FIRST_...
xLua/build/lua-5.4.1/src/llex.h/0
{ "file_path": "xLua/build/lua-5.4.1/src/llex.h", "repo_id": "xLua", "token_count": 983 }
1,956
/* ** $Id: lstate.h $ ** Global State ** See Copyright Notice in lua.h */ #ifndef lstate_h #define lstate_h #include "lua.h" #include "lobject.h" #include "ltm.h" #include "lzio.h" /* ** Some notes about garbage-collected objects: All objects in Lua must ** be kept somehow accessible until being freed, so all obje...
xLua/build/lua-5.4.1/src/lstate.h/0
{ "file_path": "xLua/build/lua-5.4.1/src/lstate.h", "repo_id": "xLua", "token_count": 4980 }
1,957
/* ** $Id: lundump.h $ ** load precompiled Lua chunks ** See Copyright Notice in lua.h */ #ifndef lundump_h #define lundump_h #include "llimits.h" #include "lobject.h" #include "lzio.h" /* data to catch conversion errors */ #define LUAC_DATA "\x19\x93\r\n\x1a\n" #define LUAC_INT 0x5678 #define LUAC_NUM cast_num(37...
xLua/build/lua-5.4.1/src/lundump.h/0
{ "file_path": "xLua/build/lua-5.4.1/src/lundump.h", "repo_id": "xLua", "token_count": 373 }
1,958
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Contact</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="Author" content="Mike Pall"> <meta name="Copyright" content="Copyright (C) 2005-2016, Mike Pall"> <meta nam...
xLua/build/luajit-2.1.0b2/doc/contact.html/0
{ "file_path": "xLua/build/luajit-2.1.0b2/doc/contact.html", "repo_id": "xLua", "token_count": 1216 }
1,959
------------------------------------------------------------------------------ -- DynASM ARM module. -- -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _in...
xLua/build/luajit-2.1.0b2/dynasm/dasm_arm.lua/0
{ "file_path": "xLua/build/luajit-2.1.0b2/dynasm/dasm_arm.lua", "repo_id": "xLua", "token_count": 15519 }
1,960
---------------------------------------------------------------------------- -- LuaJIT PPC disassembler module. -- -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ----------------------------------------------------------------------------...
xLua/build/luajit-2.1.0b2/src/jit/dis_ppc.lua/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/jit/dis_ppc.lua", "repo_id": "xLua", "token_count": 10275 }
1,961
/* ** Math library. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #include <math.h> #define lib_math_c #define LUA_LIB #include "lua.h" #include "lauxlib.h" #include "lualib.h" #include "lj_obj.h" #include "lj_lib.h" #include "lj_vm.h" /* ------------------------------------------------...
xLua/build/luajit-2.1.0b2/src/lib_math.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lib_math.c", "repo_id": "xLua", "token_count": 2977 }
1,962
/* ** Bytecode instruction modes. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #define lj_bc_c #define LUA_CORE #include "lj_obj.h" #include "lj_bc.h" /* Bytecode offsets and bytecode instruction modes. */ #include "lj_bcdef.h"
xLua/build/luajit-2.1.0b2/src/lj_bc.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_bc.c", "repo_id": "xLua", "token_count": 99 }
1,963
/* ** C data management. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_CDATA_H #define _LJ_CDATA_H #include "lj_obj.h" #include "lj_gc.h" #include "lj_ctype.h" #if LJ_HASFFI /* Get C data pointer. */ static LJ_AINLINE void *cdata_getptr(void *p, CTSize sz) { if (LJ_64 && sz...
xLua/build/luajit-2.1.0b2/src/lj_cdata.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_cdata.h", "repo_id": "xLua", "token_count": 1052 }
1,964
/* ** ARM instruction emitter. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ /* -- Constant encoding --------------------------------------------------- */ static uint8_t emit_invai[16] = { /* AND */ (ARMI_AND^ARMI_BIC) >> 21, /* EOR */ 0, /* SUB */ (ARMI_SUB^ARMI_ADD) >> 21, /* RS...
xLua/build/luajit-2.1.0b2/src/lj_emit_arm.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_emit_arm.h", "repo_id": "xLua", "token_count": 5151 }
1,965
/* ** Client for the GDB JIT API. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_GDBJIT_H #define _LJ_GDBJIT_H #include "lj_obj.h" #include "lj_jit.h" #if LJ_HASJIT && defined(LUAJIT_USE_GDBJIT) LJ_FUNC void lj_gdbjit_addtrace(jit_State *J, GCtrace *T); LJ_FUNC void lj_gdbjit_...
xLua/build/luajit-2.1.0b2/src/lj_gdbjit.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_gdbjit.h", "repo_id": "xLua", "token_count": 233 }
1,966
/* ** LuaJIT VM tags, values and objects. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h ** ** Portions taken verbatim or adapted from the Lua interpreter. ** Copyright (C) 1994-2008 Lua.org, PUC-Rio. See Copyright Notice in lua.h */ #ifndef _LJ_OBJ_H #define _LJ_OBJ_H #include "lua.h" #includ...
xLua/build/luajit-2.1.0b2/src/lj_obj.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_obj.h", "repo_id": "xLua", "token_count": 14038 }
1,967
/* ** State and stack handling. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h ** ** Portions taken verbatim or adapted from the Lua interpreter. ** Copyright (C) 1994-2008 Lua.org, PUC-Rio. See Copyright Notice in lua.h */ #define lj_state_c #define LUA_CORE #include "lj_obj.h" #include "lj_g...
xLua/build/luajit-2.1.0b2/src/lj_state.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_state.c", "repo_id": "xLua", "token_count": 4177 }
1,968
/* ** DynASM encoding engine prototypes. ** Copyright (C) 2005-2021 Mike Pall. All rights reserved. ** Released under the MIT license. See dynasm.lua for full copyright notice. */ #ifndef _DASM_PROTO_H #define _DASM_PROTO_H #include <stddef.h> #include <stdarg.h> #define DASM_IDENT "DynASM 1.5.0" #define DASM_VERSIO...
xLua/build/luajit-2.1.0b3/dynasm/dasm_proto.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/dynasm/dasm_proto.h", "repo_id": "xLua", "token_count": 892 }
1,969
/* ** LuaJIT VM builder: Assembler source code emitter. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #include "buildvm.h" #include "lj_bc.h" /* ------------------------------------------------------------------------ */ #if LJ_TARGET_X86ORX64 /* Emit bytes piecewise as assembler text. */...
xLua/build/luajit-2.1.0b3/src/host/buildvm_asm.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/host/buildvm_asm.c", "repo_id": "xLua", "token_count": 4542 }
1,970
---------------------------------------------------------------------------- -- LuaJIT MIPS64EL disassembler wrapper module. -- -- Copyright (C) 2005-2021 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -----------------------------------------------------------------...
xLua/build/luajit-2.1.0b3/src/jit/dis_mips64el.lua/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/jit/dis_mips64el.lua", "repo_id": "xLua", "token_count": 166 }
1,971
/* ** Fast function call recorder. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #define lj_ffrecord_c #define LUA_CORE #include "lj_obj.h" #if LJ_HASJIT #include "lj_err.h" #include "lj_buf.h" #include "lj_str.h" #include "lj_tab.h" #include "lj_frame.h" #include "lj_bc.h" #include "lj_...
xLua/build/luajit-2.1.0b3/src/lj_ffrecord.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_ffrecord.c", "repo_id": "xLua", "token_count": 24940 }
1,972
/* ** Library function support. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #define lj_lib_c #define LUA_CORE #include "lauxlib.h" #include "lj_obj.h" #include "lj_gc.h" #include "lj_err.h" #include "lj_str.h" #include "lj_tab.h" #include "lj_func.h" #include "lj_bc.h" #include "lj_disp...
xLua/build/luajit-2.1.0b3/src/lj_lib.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_lib.c", "repo_id": "xLua", "token_count": 4573 }
1,973
/* ** Lua parser (source code -> bytecode). ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h ** ** Major portions taken verbatim or adapted from the Lua interpreter. ** Copyright (C) 1994-2008 Lua.org, PUC-Rio. See Copyright Notice in lua.h */ #define lj_parse_c #define LUA_CORE #include "lj_obj...
xLua/build/luajit-2.1.0b3/src/lj_parse.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_parse.c", "repo_id": "xLua", "token_count": 37112 }
1,974
/* ** String formatting. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #include <stdio.h> #define lj_strfmt_c #define LUA_CORE #include "lj_obj.h" #include "lj_err.h" #include "lj_buf.h" #include "lj_str.h" #include "lj_meta.h" #include "lj_state.h" #include "lj_char.h" #include "lj_strfm...
xLua/build/luajit-2.1.0b3/src/lj_strfmt.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_strfmt.c", "repo_id": "xLua", "token_count": 8309 }
1,975
/* ** Trace compiler error messages. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ /* This file may be included multiple times with different TREDEF macros. */ /* Recording. */ TREDEF(RECERR, "error thrown or hook called during recording") TREDEF(TRACEUV, "trace too short") TREDEF(TRACEOV,...
xLua/build/luajit-2.1.0b3/src/lj_traceerr.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_traceerr.h", "repo_id": "xLua", "token_count": 817 }
1,976
@rem Script to build LuaJIT with the PS4 SDK. @rem Donated to the public domain. @rem @rem Open a "Visual Studio .NET Command Prompt" (64 bit host compiler) @rem or "VS2015 x64 Native Tools Command Prompt". @rem @rem Then cd to this directory and run this script. @rem @rem Recommended invocation: @rem @rem ps4build ...
xLua/build/luajit-2.1.0b3/src/ps4build.bat/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/ps4build.bat", "repo_id": "xLua", "token_count": 1582 }
1,977
#include <stdarg.h> #include <stdio.h> #include "test_util.hpp" using namespace std; std::vector<TestErrMsg> TestErrMsgMgr::_errMsg; void test_printf(const char* format, ...) { va_list args; va_start (args, format); FILE* devNull = fopen("/dev/null", "w"); if (devNull != 0) { (void)vfprintf (devNull, fo...
xLua/build/luajit-2.1.0b3/src/x64/test/test_util.cxx/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/x64/test/test_util.cxx", "repo_id": "xLua", "token_count": 158 }
1,978
#ifndef INET_H #define INET_H /*=========================================================================*\ * Internet domain functions * LuaSocket toolkit * * This module implements the creation and connection of internet domain * sockets, on top of the socket.h interface, and the interface of with the * resolver. ...
xLua/build/luasocket/inet.h/0
{ "file_path": "xLua/build/luasocket/inet.h", "repo_id": "xLua", "token_count": 635 }
1,979
#ifndef TCP_H #define TCP_H /*=========================================================================*\ * TCP object * LuaSocket toolkit * * The tcp.h module is basicly a glue that puts together modules buffer.h, * timeout.h socket.h and inet.h to provide the LuaSocket TCP (AF_INET, * SOCK_STREAM) support. * * Three ...
xLua/build/luasocket/tcp.h/0
{ "file_path": "xLua/build/luasocket/tcp.h", "repo_id": "xLua", "token_count": 301 }
1,980
mkdir -p build_ios && cd build_ios cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake -DPLATFORM=OS64 -GXcode ../ cd .. cmake --build build_ios --config Release mkdir -p plugin_lua53/Plugins/iOS/ cp build_ios/Release-iphoneos/libxlua.a plugin_lua53/Plugins/iOS/libxlua.a
xLua/build/make_ios_lua53.sh/0
{ "file_path": "xLua/build/make_ios_lua53.sh", "repo_id": "xLua", "token_count": 115 }
1,981
mkdir build_uwp_54 & pushd build_uwp_54 cmake -DLUA_VERSION=5.4.1 -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 .. popd cmake --build build_uwp_54 --config Release md plugin_lua54\Plugins\WSA\x86 copy /Y build_uwp_54\Release\xlua.dll plugin_lua54\Plugins\WSA\x86\xlua.d...
xLua/build/make_uwp_lua54.bat/0
{ "file_path": "xLua/build/make_uwp_lua54.bat", "repo_id": "xLua", "token_count": 575 }
1,982
/* *Tencent is pleased to support the open source community by making xLua available. *Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. *Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
xLua/build/xlua.c/0
{ "file_path": "xLua/build/xlua.c", "repo_id": "xLua", "token_count": 14638 }
1,983
<!DOCTYPE html> <html lang="en"> <head> <title>可以使用的markdown — 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/pag...
xLua/docs/public/readme.html/0
{ "file_path": "xLua/docs/public/readme.html", "repo_id": "xLua", "token_count": 5002 }
1,984
# Hexo Configuration ## Docs: https://hexo.io/docs/configuration.html ## Source: https://github.com/hexojs/hexo/ # Site title: XLua subtitle: Tencent XLua description: Tencent XLua author: Tencent language: zh-CN timezone: Asia/Shanghai # URL ## If your site is put in a subdirectory, set url as 'http://yoursite.com/c...
xLua/docs/source/_config.yml/0
{ "file_path": "xLua/docs/source/_config.yml", "repo_id": "xLua", "token_count": 543 }
1,985
--- title: 数字签名 type: guide order: 104 --- ## 数字签名 > Todo:请在此处输入内容
xLua/docs/source/src/v1/guide/signature.md/0
{ "file_path": "xLua/docs/source/src/v1/guide/signature.md", "repo_id": "xLua", "token_count": 60 }
1,986
load-display pandagl audio-library-name p3openal_audio win-origin -2 -2 win-size 1200 900 fullscreen #f framebuffer-hardware #t framebuffer-software #f framebuffer-srgb #f depth-bits 1 color-bits ...
3d-game-shaders-for-beginners/demonstration/panda3d-prc-file.prc/0
{ "file_path": "3d-game-shaders-for-beginners/demonstration/panda3d-prc-file.prc", "repo_id": "3d-game-shaders-for-beginners", "token_count": 619 }
0
/* (C) 2020 David Lettier lettier.com */ #version 150 #define MAX_SHININESS 127.75 uniform float osg_FrameTime; uniform struct { vec3 specular ; float shininess ; } p3d_Material; uniform mat4 p3d_ProjectionMatrix; uniform sampler2D p3d_Texture1; uniform sampler2D p3d_Texture3; uniform sampler2D p3d_Te...
3d-game-shaders-for-beginners/demonstration/shaders/fragment/geometry-buffer-1.frag/0
{ "file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/geometry-buffer-1.frag", "repo_id": "3d-game-shaders-for-beginners", "token_count": 1156 }
1
/* (C) 2019 David Lettier lettier.com */ #version 150 uniform vec2 pi; uniform vec2 gamma; uniform sampler2D baseTexture; uniform sampler2D bloomTexture; uniform sampler2D fogTexture; uniform vec4 backgroundColor0; uniform vec4 backgroundColor1; uniform vec2 sunPosition; out vec4 fragColor; void main() { v...
3d-game-shaders-for-beginners/demonstration/shaders/fragment/scene-combine.frag/0
{ "file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/scene-combine.frag", "repo_id": "3d-game-shaders-for-beginners", "token_count": 769 }
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/blur.html/0
{ "file_path": "3d-game-shaders-for-beginners/docs/blur.html", "repo_id": "3d-game-shaders-for-beginners", "token_count": 16144 }
3
<!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/lighting.html/0
{ "file_path": "3d-game-shaders-for-beginners/docs/lighting.html", "repo_id": "3d-game-shaders-for-beginners", "token_count": 13701 }
4
html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } body { color: #444; font-family: Helvetica, Arial, sans-serif; font-size: 20px; line-height: 2; padding: 1em; margin: auto; max-width: 887px; background: #fefefe; } a { color: #059; te...
3d-game-shaders-for-beginners/docs/style.css/0
{ "file_path": "3d-game-shaders-for-beginners/docs/style.css", "repo_id": "3d-game-shaders-for-beginners", "token_count": 2009 }
5
[:arrow_backward:](lookup-table.md) [:arrow_double_up:](../README.md) [:arrow_up_small:](#) [:arrow_down_small:](#copyright) [:arrow_forward:](setup.md) # 3D Game Shaders For Beginners ## Gamma Correction <p align="center"> <img src="https://i.imgur.com/IG7A6cj.gif" alt="Gamma Correction" title="Gamma Correction"> <...
3d-game-shaders-for-beginners/sections/gamma-correction.md/0
{ "file_path": "3d-game-shaders-for-beginners/sections/gamma-correction.md", "repo_id": "3d-game-shaders-for-beginners", "token_count": 1860 }
6
[:arrow_backward:](pixelization.md) [:arrow_double_up:](../README.md) [:arrow_up_small:](#) [:arrow_down_small:](#copyright) [:arrow_forward:](dilation.md) # 3D Game Shaders For Beginners ## Sharpen <p align="center"> <img src="https://i.imgur.com/VFDKNvl.gif" alt="Sharpen" title="Sharpen"> </p> The sharpen effect ...
3d-game-shaders-for-beginners/sections/sharpen.md/0
{ "file_path": "3d-game-shaders-for-beginners/sections/sharpen.md", "repo_id": "3d-game-shaders-for-beginners", "token_count": 834 }
7
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef air_ApiServerBase_hpp #define air_ApiServerBase_hpp #include <functional> #include "common/Common.hpp" namespace msr { namespace airlib { class ApiServerBase { public: virtual void start(bool ...
AirSim/AirLib/include/api/ApiServerBase.hpp/0
{ "file_path": "AirSim/AirLib/include/api/ApiServerBase.hpp", "repo_id": "AirSim", "token_count": 176 }
8
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef airsimcore_firstorderfilter_hpp #define airsimcore_firstorderfilter_hpp #include <cmath> #include "UpdatableObject.hpp" #include "Common.hpp" namespace msr { namespace airlib { template <typename T> class...
AirSim/AirLib/include/common/FirstOrderFilter.hpp/0
{ "file_path": "AirSim/AirLib/include/common/FirstOrderFilter.hpp", "repo_id": "AirSim", "token_count": 1133 }
9
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef commn_utils_WorkerThread_hpp #define commn_utils_WorkerThread_hpp #include <functional> #include <thread> #include <atomic> #include <vector> #include <memory> #include <exception> #include <future> #include <mutex...
AirSim/AirLib/include/common/WorkerThread.hpp/0
{ "file_path": "AirSim/AirLib/include/common/WorkerThread.hpp", "repo_id": "AirSim", "token_count": 4789 }
10
#ifndef CommonUtils_UniqueValueMap_hpp #define CommonUtils_UniqueValueMap_hpp #include <chrono> #include "Utils.hpp" #include <map> #include <set> #include "Utils.hpp" namespace common_utils { //This class allows to maintain unique set of values while //still allowing key to value maps template <class TKey, class TV...
AirSim/AirLib/include/common/common_utils/UniqueValueMap.hpp/0
{ "file_path": "AirSim/AirLib/include/common/common_utils/UniqueValueMap.hpp", "repo_id": "AirSim", "token_count": 804 }
11
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef airsim_core_PhysicsBody_hpp #define airsim_core_PhysicsBody_hpp #include "common/Common.hpp" #include "common/UpdatableObject.hpp" #include "PhysicsBodyVertex.hpp" #include "common/CommonStructs.hpp" #include "Kine...
AirSim/AirLib/include/physics/PhysicsBody.hpp/0
{ "file_path": "AirSim/AirLib/include/physics/PhysicsBody.hpp", "repo_id": "AirSim", "token_count": 3578 }
12
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef msr_airlib_DistanceBase_hpp #define msr_airlib_DistanceBase_hpp #include "sensors/SensorBase.hpp" namespace msr { namespace airlib { class DistanceBase : public SensorBase { public: DistanceBa...
AirSim/AirLib/include/sensors/distance/DistanceBase.hpp/0
{ "file_path": "AirSim/AirLib/include/sensors/distance/DistanceBase.hpp", "repo_id": "AirSim", "token_count": 419 }
13
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef air_CarApiBase_hpp #define air_CarApiBase_hpp #include "common/VectorMath.hpp" #include "common/CommonStructs.hpp" #include "api/VehicleApiBase.hpp" #include "physics/Kinematics.hpp" #include "sensors/SensorBase.hp...
AirSim/AirLib/include/vehicles/car/api/CarApiBase.hpp/0
{ "file_path": "AirSim/AirLib/include/vehicles/car/api/CarApiBase.hpp", "repo_id": "AirSim", "token_count": 2504 }
14
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef msr_airlib_ArduCopterDroneController_hpp #define msr_airlib_ArduCopterDroneController_hpp #include "vehicles/multirotor/api/MultirotorApiBase.hpp" #include "sensors/SensorCollection.hpp" #include "physics/Environme...
AirSim/AirLib/include/vehicles/multirotor/firmwares/arducopter/ArduCopterApi.hpp/0
{ "file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/arducopter/ArduCopterApi.hpp", "repo_id": "AirSim", "token_count": 9374 }
15
#pragma once #include "interfaces/CommonStructs.hpp" #include "interfaces/IBoardClock.hpp" #include "interfaces/IAxisController.hpp" #include "common/common_utils//Utils.hpp" #include "Params.hpp" #include <memory> namespace simple_flight { class ConstantOutputController : public IAxisController { public: Const...
AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/ConstantOutputController.hpp/0
{ "file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/ConstantOutputController.hpp", "repo_id": "AirSim", "token_count": 437 }
16
#pragma once #include <cstdint> namespace simple_flight { class IBoardInputPins { public: virtual float readChannel(uint16_t index) const = 0; //output -1 to 1 virtual bool isRcConnected() const = 0; virtual float getAvgMotorOutput() const = 0; virtual ~IBoardInputPins() = default; }; }
AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/interfaces/IBoardInputPins.hpp/0
{ "file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/interfaces/IBoardInputPins.hpp", "repo_id": "AirSim", "token_count": 112 }
17
// 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/car/api/CarRpcLibClient.cpp/0
{ "file_path": "AirSim/AirLib/src/vehicles/car/api/CarRpcLibClient.cpp", "repo_id": "AirSim", "token_count": 899 }
18
#include "SettingsTest.hpp" #include "PixhawkTest.hpp" #include "SimpleFlightTest.hpp" #include "WorkerThreadTest.hpp" #include "QuaternionTest.hpp" #include "CelestialTests.hpp" int main() { using namespace msr::airlib; std::unique_ptr<TestBase> tests[] = { std::unique_ptr<TestBase>(new QuaternionTe...
AirSim/AirLibUnitTests/main.cpp/0
{ "file_path": "AirSim/AirLibUnitTests/main.cpp", "repo_id": "AirSim", "token_count": 292 }
19
#pragma once #include "common/Common.hpp" class RandomPointPoseGenerator { public: private: typedef common_utils::RandomGeneratorGaussianF RandomGeneratorGaussianF; typedef msr::airlib::Vector3r Vector3r; typedef msr::airlib::Quaternionr Quaternionr; typedef common_utils::Utils Utils; typedef msr:...
AirSim/Examples/DataCollection/RandomPointPoseGenerator.hpp/0
{ "file_path": "AirSim/Examples/DataCollection/RandomPointPoseGenerator.hpp", "repo_id": "AirSim", "token_count": 693 }
20
#include "StandAloneSensors.hpp" #include "StandAlonePhysics.hpp" #include "DataCollection/StereoImageGenerator.hpp" #include "DataCollection/DataCollectorSGM.h" #include "GaussianMarkovTest.hpp" #include "DepthNav/DepthNavCost.hpp" #include "DepthNav/DepthNavThreshold.hpp" #include <iostream> #include <string> #ifndef...
AirSim/Examples/main.cpp/0
{ "file_path": "AirSim/Examples/main.cpp", "repo_id": "AirSim", "token_count": 2199 }
21