text
stringlengths
7
35.3M
id
stringlengths
11
185
metadata
dict
__index_level_0__
int64
0
2.14k
/* ** $Id: lfunc.h $ ** Auxiliary functions to manipulate prototypes and closures ** See Copyright Notice in lua.h */ #ifndef lfunc_h #define lfunc_h #include "lobject.h" #define sizeCclosure(n) (cast_int(offsetof(CClosure, upvalue)) + \ cast_int(sizeof(TValue)) * (n)) #define sizeLclosur...
xLua/build/lua-5.4.1/src/lfunc.h/0
{ "file_path": "xLua/build/lua-5.4.1/src/lfunc.h", "repo_id": "xLua", "token_count": 732 }
2,100
/* ** $Id: lopcodes.h $ ** Opcodes for Lua virtual machine ** See Copyright Notice in lua.h */ #ifndef lopcodes_h #define lopcodes_h #include "llimits.h" /*=========================================================================== We assume that instructions are unsigned 32-bit integers. All instructions have ...
xLua/build/lua-5.4.1/src/lopcodes.h/0
{ "file_path": "xLua/build/lua-5.4.1/src/lopcodes.h", "repo_id": "xLua", "token_count": 6410 }
2,101
/* ** $Id: lua.c $ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ #define lua_c #include "lprefix.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include "lua.h" #include "lauxlib.h" #include "lualib.h" #if !defined(LUA_PROGNAME) #define LUA_PROGNAME "lua...
xLua/build/lua-5.4.1/src/lua.c/0
{ "file_path": "xLua/build/lua-5.4.1/src/lua.c", "repo_id": "xLua", "token_count": 7504 }
2,102
mkdir build64 & pushd build64 cmake -DLUAC_COMPATIBLE_FORMAT=ON -G "Visual Studio 14 2015 Win64" .. IF %ERRORLEVEL% NEQ 0 cmake -DLUAC_COMPATIBLE_FORMAT=ON -G "Visual Studio 15 2017 Win64" .. popd cmake --build build64 --config Release pause
xLua/build/luac/make_win64.bat/0
{ "file_path": "xLua/build/luac/make_win64.bat", "repo_id": "xLua", "token_count": 89 }
2,103
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Frequently Asked Questions (FAQ)</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-20...
xLua/build/luajit-2.1.0b2/doc/faq.html/0
{ "file_path": "xLua/build/luajit-2.1.0b2/doc/faq.html", "repo_id": "xLua", "token_count": 2661 }
2,104
/* ** DynASM x86 encoding engine. ** Copyright (C) 2005-2016 Mike Pall. All rights reserved. ** Released under the MIT license. See dynasm.lua for full copyright notice. */ #include <stddef.h> #include <stdarg.h> #include <string.h> #include <stdlib.h> #define DASM_ARCH "x86" #ifndef DASM_EXTERN #define DASM_EXTERN...
xLua/build/luajit-2.1.0b2/dynasm/dasm_x86.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/dynasm/dasm_x86.h", "repo_id": "xLua", "token_count": 7572 }
2,105
---------------------------------------------------------------------------- -- Lua script to generate a customized, minified version of Lua. -- The resulting 'minilua' is used for the build process of LuaJIT. ---------------------------------------------------------------------------- -- Copyright (C) 2005-2016 Mike P...
xLua/build/luajit-2.1.0b2/src/host/genminilua.lua/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/host/genminilua.lua", "repo_id": "xLua", "token_count": 5521 }
2,106
/* ** Base and coroutine library. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h ** ** Major portions taken verbatim or adapted from the Lua interpreter. ** Copyright (C) 1994-2011 Lua.org, PUC-Rio. See Copyright Notice in lua.h */ #include <stdio.h> #define lib_base_c #define LUA_LIB #includ...
xLua/build/luajit-2.1.0b2/src/lib_base.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lib_base.c", "repo_id": "xLua", "token_count": 8230 }
2,107
/* ** Target architecture selection. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_ARCH_H #define _LJ_ARCH_H #include "lua.h" /* Target endianess. */ #define LUAJIT_LE 0 #define LUAJIT_BE 1 /* Target architectures. */ #define LUAJIT_ARCH_X86 1 #define LUAJIT_ARCH_x86 1 #def...
xLua/build/luajit-2.1.0b2/src/lj_arch.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_arch.h", "repo_id": "xLua", "token_count": 6527 }
2,108
/* ** FFI C call handling. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #include "lj_obj.h" #if LJ_HASFFI #include "lj_gc.h" #include "lj_err.h" #include "lj_tab.h" #include "lj_ctype.h" #include "lj_cconv.h" #include "lj_cdata.h" #include "lj_ccall.h" #include "lj_trace.h" /* Target-sp...
xLua/build/luajit-2.1.0b2/src/lj_ccall.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_ccall.c", "repo_id": "xLua", "token_count": 14418 }
2,109
/* ** C type management. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #include "lj_obj.h" #if LJ_HASFFI #include "lj_gc.h" #include "lj_err.h" #include "lj_str.h" #include "lj_tab.h" #include "lj_strfmt.h" #include "lj_ctype.h" #include "lj_ccallback.h" #include "lj_buf.h" /* -- C type ...
xLua/build/luajit-2.1.0b2/src/lj_ctype.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_ctype.c", "repo_id": "xLua", "token_count": 8918 }
2,110
/* ** Fast function call recorder. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_FFRECORD_H #define _LJ_FFRECORD_H #include "lj_obj.h" #include "lj_jit.h" #if LJ_HASJIT /* Data used by handlers to record a fast function. */ typedef struct RecordFFData { TValue *argv; /* Run...
xLua/build/luajit-2.1.0b2/src/lj_ffrecord.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_ffrecord.h", "repo_id": "xLua", "token_count": 250 }
2,111
/* ** Library function support. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_LIB_H #define _LJ_LIB_H #include "lj_obj.h" /* ** A fallback handler is called by the assembler VM if the fast path fails: ** ** - too few arguments: unrecoverable. ** - wrong argument type: reco...
xLua/build/luajit-2.1.0b2/src/lj_lib.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_lib.h", "repo_id": "xLua", "token_count": 1673 }
2,112
/* ** Lua parser (source code -> bytecode). ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_PARSE_H #define _LJ_PARSE_H #include "lj_obj.h" #include "lj_lex.h" LJ_FUNC GCproto *lj_parse(LexState *ls); LJ_FUNC GCstr *lj_parse_keepstr(LexState *ls, const char *str, size_t l); #if ...
xLua/build/luajit-2.1.0b2/src/lj_parse.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_parse.h", "repo_id": "xLua", "token_count": 188 }
2,113
/* ** Table handling. ** Copyright (C) 2005-2016 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_tab_c #define LUA_CORE #include "lj_obj.h" #include "lj_gc.h" #...
xLua/build/luajit-2.1.0b2/src/lj_tab.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_tab.c", "repo_id": "xLua", "token_count": 8749 }
2,114
/* ** Math helper functions for assembler VM. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #define lj_vmmath_c #define LUA_CORE #include <errno.h> #include <math.h> #include "lj_obj.h" #include "lj_ir.h" #include "lj_vm.h" /* -- Wrapper functions ----------------------------------------...
xLua/build/luajit-2.1.0b2/src/lj_vmmath.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_vmmath.c", "repo_id": "xLua", "token_count": 1887 }
2,115
|// Low-level VM code for PowerPC 32 bit or 32on64 bit mode. |// Bytecode interpreter, fast functions and helper functions. |// Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h | |.arch ppc |.section code_op, code_sub | |.actionlist build_actionlist |.globals GLOB_ |.globalnames globnames |.externnam...
xLua/build/luajit-2.1.0b2/src/vm_ppc.dasc/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/vm_ppc.dasc", "repo_id": "xLua", "token_count": 74382 }
2,116
<!DOCTYPE html> <html> <head> <title>ffi.* API Functions</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...
xLua/build/luajit-2.1.0b3/doc/ext_ffi_api.html/0
{ "file_path": "xLua/build/luajit-2.1.0b3/doc/ext_ffi_api.html", "repo_id": "xLua", "token_count": 7582 }
2,117
---------------------------------------------------------------------------- -- LuaJIT bytecode listing 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/bc.lua/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/jit/bc.lua", "repo_id": "xLua", "token_count": 2122 }
2,118
---------------------------------------------------------------------------- -- Verbose mode of the LuaJIT compiler. -- -- 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/v.lua/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/jit/v.lua", "repo_id": "xLua", "token_count": 1872 }
2,119
/* ** Table library. ** 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 lib_table_c #define LUA_LIB #include "lua.h" #include "lauxlib.h" #...
xLua/build/luajit-2.1.0b3/src/lib_table.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lib_table.c", "repo_id": "xLua", "token_count": 4112 }
2,120
/* ** Bytecode dump definitions. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_BCDUMP_H #define _LJ_BCDUMP_H #include "lj_obj.h" #include "lj_lex.h" /* -- Bytecode dump format ------------------------------------------------ */ /* ** dump = header proto+ 0U ** header = ESC ...
xLua/build/luajit-2.1.0b3/src/lj_bcdump.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_bcdump.h", "repo_id": "xLua", "token_count": 880 }
2,121
/* ** Character types. ** Donated to the public domain. */ #ifndef _LJ_CHAR_H #define _LJ_CHAR_H #include "lj_def.h" #define LJ_CHAR_CNTRL 0x01 #define LJ_CHAR_SPACE 0x02 #define LJ_CHAR_PUNCT 0x04 #define LJ_CHAR_DIGIT 0x08 #define LJ_CHAR_XDIGIT 0x10 #define LJ_CHAR_UPPER 0x20 #define LJ_CHAR_LOWER 0x40 #define LJ...
xLua/build/luajit-2.1.0b3/src/lj_char.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_char.h", "repo_id": "xLua", "token_count": 747 }
2,122
/* ** MIPS instruction emitter. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #if LJ_64 static intptr_t get_k64val(ASMState *as, IRRef ref) { IRIns *ir = IR(ref); if (ir->o == IR_KINT64) { return (intptr_t)ir_kint64(ir)->u64; } else if (ir->o == IR_KGC) { return (intptr_t)ir_k...
xLua/build/luajit-2.1.0b3/src/lj_emit_mips.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_emit_mips.h", "repo_id": "xLua", "token_count": 4445 }
2,123
/* ** SSA IR (Intermediate Representation) emitter. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #define lj_ir_c #define LUA_CORE /* For pointers to libc/libm functions. */ #include <stdio.h> #include <math.h> #include "lj_obj.h" #if LJ_HASJIT #include "lj_gc.h" #include "lj_buf.h" #in...
xLua/build/luajit-2.1.0b3/src/lj_ir.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_ir.c", "repo_id": "xLua", "token_count": 6075 }
2,124
/* ** DCE: Dead Code Elimination. Pre-LOOP only -- ASM already performs DCE. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #define lj_opt_dce_c #define LUA_CORE #include "lj_obj.h" #if LJ_HASJIT #include "lj_ir.h" #include "lj_jit.h" #include "lj_iropt.h" /* Some local macros to save ty...
xLua/build/luajit-2.1.0b3/src/lj_opt_dce.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_opt_dce.c", "repo_id": "xLua", "token_count": 858 }
2,125
/* ** Object de/serialization. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_SERIALIZE_H #define _LJ_SERIALIZE_H #include "lj_obj.h" #include "lj_buf.h" #if LJ_HASBUFFER #define LJ_SERIALIZE_DEPTH 100 /* Default depth. */ LJ_FUNC void LJ_FASTCALL lj_serialize_dict_prep_str(l...
xLua/build/luajit-2.1.0b3/src/lj_serialize.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_serialize.h", "repo_id": "xLua", "token_count": 391 }
2,126
/* ** Definitions for ARM64 CPUs. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_TARGET_ARM64_H #define _LJ_TARGET_ARM64_H /* -- Registers IDs ------------------------------------------------------- */ #define GPRDEF(_) \ _(X0) _(X1) _(X2) _(X3) _(X4) _(X5) _(X6) _(X7) \ _(...
xLua/build/luajit-2.1.0b3/src/lj_target_arm64.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_target_arm64.h", "repo_id": "xLua", "token_count": 5250 }
2,127
// C++ wrapper for LuaJIT header files. extern "C" { #include "lua.h" #include "lauxlib.h" #include "lualib.h" #include "luajit.h" }
xLua/build/luajit-2.1.0b3/src/lua.hpp/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lua.hpp", "repo_id": "xLua", "token_count": 59 }
2,128
|// Low-level VM code for x86 CPUs. |// Bytecode interpreter, fast functions and helper functions. |// Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h | |.if P64 |.arch x64 |.else |.arch x86 |.endif |.section code_op, code_sub | |.actionlist build_actionlist |.globals GLOB_ |.globalnames globnames |...
xLua/build/luajit-2.1.0b3/src/vm_x86.dasc/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/vm_x86.dasc", "repo_id": "xLua", "token_count": 79899 }
2,129
/*=========================================================================*\ * Auxiliar routines for class hierarchy manipulation * LuaSocket toolkit \*=========================================================================*/ #include <string.h> #include <stdio.h> #include "auxiliar.h" /*==========================...
xLua/build/luasocket/auxiliar.c/0
{ "file_path": "xLua/build/luasocket/auxiliar.c", "repo_id": "xLua", "token_count": 1990 }
2,130
/*=========================================================================*\ * Common option interface * LuaSocket toolkit \*=========================================================================*/ #include <string.h> #include "lauxlib.h" #include "auxiliar.h" #include "options.h" #include "inet.h" /*========...
xLua/build/luasocket/options.c/0
{ "file_path": "xLua/build/luasocket/options.c", "repo_id": "xLua", "token_count": 5040 }
2,131
#include <string.h> #include "socket.h" static const char *wstrerror(int err); /*-------------------------------------------------------------------------*\ * Initializes module \*-------------------------------------------------------------------------*/ int socket_open(void) { WSADATA wsaData; WORD wVersio...
xLua/build/luasocket/wsocket.c/0
{ "file_path": "xLua/build/luasocket/wsocket.c", "repo_id": "xLua", "token_count": 6131 }
2,132
set CUR_DIR=%~dp0 cd %CUR_DIR% del /s/q buildnx64 mkdir buildnx64 & pushd buildnx64 rem fix for io_tmpfile & os_tmpname echo #if !__ASSEMBLER__ > switch_fix.h echo static inline struct _IO_FILE* tmpfile(){ return 0; } >> switch_fix.h echo static inline char* tmpnam(char* n){ return 0; } >> switch_fix.h echo #endif >> ...
xLua/build/make_nx64_luajit_gc64.bat/0
{ "file_path": "xLua/build/make_nx64_luajit_gc64.bat", "repo_id": "xLua", "token_count": 840 }
2,133
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>BuildMachineOSBuild</key> <string>15G31</string> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <s...
xLua/build/plugin_luajit/Plugins/xlua.bundle/Contents/Info.plist/0
{ "file_path": "xLua/build/plugin_luajit/Plugins/xlua.bundle/Contents/Info.plist", "repo_id": "xLua", "token_count": 567 }
2,134
--- title: 添加删除第三方库 type: guide order: 101 --- ## 添加删除第三方库 > Todo:请在此处输入内容
xLua/docs/source/src/v1/guide/crtdel-3rd.md/0
{ "file_path": "xLua/docs/source/src/v1/guide/crtdel-3rd.md", "repo_id": "xLua", "token_count": 74 }
2,135
<section class="sidebar clearfix"> <ul> <% site.pages.find({type: 'guide' , lang: page.lang}).sort('order').each(function (p) { %> <% var fileName = p.path.replace(/^.+?\/([\w-]+)\.html/, '$1') %> <% if(fileName == 'index'){%> <li><h3>基础</h3></li> <%}%> ...
xLua/docs/source/themes/catlib/layout/partials/sidebar.ejs/0
{ "file_path": "xLua/docs/source/themes/catlib/layout/partials/sidebar.ejs", "repo_id": "xLua", "token_count": 466 }
2,136
/*! * Vue.js v2.3.0 * (c) 2014-2017 Evan You * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Vue = factory()); }(this, (function ()...
xLua/docs/source/themes/catlib/source/js/vue.js/0
{ "file_path": "xLua/docs/source/themes/catlib/source/js/vue.js", "repo_id": "xLua", "token_count": 101224 }
2,137
/* (C) 2020 David Lettier lettier.com */ #version 150 uniform sampler2D p3d_Texture0; uniform sampler2D positionTexture; uniform vec2 isSmoke; in vec4 vertexPosition; in vec4 vertexColor; in vec2 diffuseCoord; out vec4 positionOut; out vec4 smokeMaskOut; void main() { positionOut = vertexPosition; smok...
3d-game-shaders-for-beginners/demonstration/shaders/fragment/geometry-buffer-2.frag/0
{ "file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/geometry-buffer-2.frag", "repo_id": "3d-game-shaders-for-beginners", "token_count": 376 }
0
/* (C) 2019 David Lettier lettier.com */ #version 150 uniform mat4 lensProjection; uniform sampler2D positionTexture; uniform sampler2D normalTexture; uniform sampler2D maskTexture; uniform vec2 enabled; out vec4 fragColor; void main() { float maxDistance = 8; float resolution = 0.3; int steps ...
3d-game-shaders-for-beginners/demonstration/shaders/fragment/screen-space-reflection.frag/0
{ "file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/screen-space-reflection.frag", "repo_id": "3d-game-shaders-for-beginners", "token_count": 1758 }
1
<!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/building-the-demo.html/0
{ "file_path": "3d-game-shaders-for-beginners/docs/building-the-demo.html", "repo_id": "3d-game-shaders-for-beginners", "token_count": 5236 }
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/lookup-table.html/0
{ "file_path": "3d-game-shaders-for-beginners/docs/lookup-table.html", "repo_id": "3d-game-shaders-for-beginners", "token_count": 6356 }
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/texturing.html/0
{ "file_path": "3d-game-shaders-for-beginners/docs/texturing.html", "repo_id": "3d-game-shaders-for-beginners", "token_count": 4395 }
4
[:arrow_backward:](reference-frames.md) [:arrow_double_up:](../README.md) [:arrow_up_small:](#) [:arrow_down_small:](#copyright) [:arrow_forward:](render-to-texture.md) # 3D Game Shaders For Beginners ## GLSL <p align="center"> <img src="https://i.imgur.com/7b5MCBG.gif" alt="" title=""> </p> Instead of using the [f...
3d-game-shaders-for-beginners/sections/glsl.md/0
{ "file_path": "3d-game-shaders-for-beginners/sections/glsl.md", "repo_id": "3d-game-shaders-for-beginners", "token_count": 864 }
5
[:arrow_backward:](bloom.md) [:arrow_double_up:](../README.md) [:arrow_up_small:](#) [:arrow_down_small:](#copyright) [:arrow_forward:](motion-blur.md) # 3D Game Shaders For Beginners ## Screen Space Ambient Occlusion (SSAO) <p align="center"> <img src="https://i.imgur.com/o7lCukD.gif" alt="SSAO" title="SSAO"> </p> ...
3d-game-shaders-for-beginners/sections/ssao.md/0
{ "file_path": "3d-game-shaders-for-beginners/sections/ssao.md", "repo_id": "3d-game-shaders-for-beginners", "token_count": 5146 }
6
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef air_RpcLibAdaptorsBase_hpp #define air_RpcLibAdaptorsBase_hpp #include "common/Common.hpp" #include "common/CommonStructs.hpp" #include "physics/Kinematics.hpp" #include "physics/Environment.hpp" #include "common/I...
AirSim/AirLib/include/api/RpcLibAdaptorsBase.hpp/0
{ "file_path": "AirSim/AirLib/include/api/RpcLibAdaptorsBase.hpp", "repo_id": "AirSim", "token_count": 15862 }
7
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef msr_airlib_FrequencyLimiter_hpp #define msr_airlib_FrequencyLimiter_hpp #include "common/Common.hpp" #include "UpdatableObject.hpp" #include "common/Common.hpp" namespace msr { namespace airlib { class Freque...
AirSim/AirLib/include/common/FrequencyLimiter.hpp/0
{ "file_path": "AirSim/AirLib/include/common/FrequencyLimiter.hpp", "repo_id": "AirSim", "token_count": 1913 }
8
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef commn_utils_AsyncTasker_hpp #define commn_utils_AsyncTasker_hpp #include "ctpl_stl.h" #include <functional> class AsyncTasker { public: AsyncTasker(unsigned int thread_count = 4) : threads_(thread_coun...
AirSim/AirLib/include/common/common_utils/AsyncTasker.hpp/0
{ "file_path": "AirSim/AirLib/include/common/common_utils/AsyncTasker.hpp", "repo_id": "AirSim", "token_count": 802 }
9
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef airsim_core_PhysicsBodyVertex_hpp #define airsim_core_PhysicsBodyVertex_hpp #include "common/UpdatableObject.hpp" #include "common/Common.hpp" #include "common/CommonStructs.hpp" namespace msr { namespace airlib {...
AirSim/AirLib/include/physics/PhysicsBodyVertex.hpp/0
{ "file_path": "AirSim/AirLib/include/physics/PhysicsBodyVertex.hpp", "repo_id": "AirSim", "token_count": 1151 }
10
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef msr_airlib_Distance_hpp #define msr_airlib_Distance_hpp #include <random> #include "common/Common.hpp" #include "DistanceSimpleParams.hpp" #include "DistanceBase.hpp" #include "common/GaussianMarkov.hpp" #include "...
AirSim/AirLib/include/sensors/distance/DistanceSimple.hpp/0
{ "file_path": "AirSim/AirLib/include/sensors/distance/DistanceSimple.hpp", "repo_id": "AirSim", "token_count": 1380 }
11
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef air_CarRpcLibAdaptors_hpp #define air_CarRpcLibAdaptors_hpp #include "common/Common.hpp" #include "common/CommonStructs.hpp" #include "api/RpcLibAdaptorsBase.hpp" #include "common/ImageCaptureBase.hpp" #include "ve...
AirSim/AirLib/include/vehicles/car/api/CarRpcLibAdaptors.hpp/0
{ "file_path": "AirSim/AirLib/include/vehicles/car/api/CarRpcLibAdaptors.hpp", "repo_id": "AirSim", "token_count": 1440 }
12
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef msr_airlib_vehicles_ArduCopter_hpp #define msr_airlib_vehicles_ArduCopter_hpp #include "vehicles/multirotor/firmwares/arducopter/ArduCopterApi.hpp" #include "vehicles/multirotor/MultiRotorParams.hpp" #include "comm...
AirSim/AirLib/include/vehicles/multirotor/firmwares/arducopter/ArduCopterParams.hpp/0
{ "file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/arducopter/ArduCopterParams.hpp", "repo_id": "AirSim", "token_count": 741 }
13
#pragma once #include <vector> #include "interfaces/CommonStructs.hpp" #include "interfaces/IBoard.hpp" #include "interfaces/ICommLink.hpp" #include "interfaces/IStateEstimator.hpp" #include "interfaces/IFirmware.hpp" #include "Params.hpp" #include "RemoteControl.hpp" #include "OffboardApi.hpp" #include "Mixer.hpp" #i...
AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/Firmware.hpp/0
{ "file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/Firmware.hpp", "repo_id": "AirSim", "token_count": 1268 }
14
#pragma once #include <cstdint> namespace simple_flight { class IBoardOutputPins { public: virtual void writeOutput(uint16_t index, float val) = 0; //val = -1 to 1 for reversible motors otherwise 0 to 1 virtual void setLed(uint8_t index, int32_t color) = 0; virtual ~IBoardOutputPins() = default; }; }
AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/interfaces/IBoardOutputPins.hpp/0
{ "file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/interfaces/IBoardOutputPins.hpp", "repo_id": "AirSim", "token_count": 115 }
15
// 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/CarRpcLibServer.cpp/0
{ "file_path": "AirSim/AirLib/src/vehicles/car/api/CarRpcLibServer.cpp", "repo_id": "AirSim", "token_count": 820 }
16
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <AirSimTargetPlatformVersion>$([System.String]::Copy('$(WindowsSDKVersion)').Replace('\',''))</AirSimTargetPlatformVersion> <WindowsTargetPlatformVersion>$(AirSimTargetPlatformVersi...
AirSim/AirSim.props/0
{ "file_path": "AirSim/AirSim.props", "repo_id": "AirSim", "token_count": 118 }
17
#pragma once #include "common/Common.hpp" class RandomPointPoseGeneratorNoRoll { public: private: typedef common_utils::RandomGeneratorGaussianF RandomGeneratorGaussianF; typedef msr::airlib::Vector3r Vector3r; typedef msr::airlib::Quaternionr Quaternionr; typedef common_utils::Utils Utils; typede...
AirSim/Examples/DataCollection/RandomPointPoseGeneratorNoRoll.h/0
{ "file_path": "AirSim/Examples/DataCollection/RandomPointPoseGeneratorNoRoll.h", "repo_id": "AirSim", "token_count": 627 }
18
<UserControl x:Class="LogViewer.Controls.MeshViewer" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schem...
AirSim/LogViewer/LogViewer/Controls/MeshViewer.xaml/0
{ "file_path": "AirSim/LogViewer/LogViewer/Controls/MeshViewer.xaml", "repo_id": "AirSim", "token_count": 2132 }
19
using LogViewer.Controls; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Xml.Linq; namespace LogViewer.Model { public interface IDataLog { /// <summary> /// Returns the start time of the d...
AirSim/LogViewer/LogViewer/Model/IDataLog.cs/0
{ "file_path": "AirSim/LogViewer/LogViewer/Model/IDataLog.cs", "repo_id": "AirSim", "token_count": 920 }
20
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using LogViewer.Model; namespace LogViewer.Controls { public class HierarchicalLogItemSchemaStyleSelector : StyleSelector { Style con...
AirSim/LogViewer/LogViewer/Utilities/HierarchicalCategoryTemplateSelector.cs/0
{ "file_path": "AirSim/LogViewer/LogViewer/Utilities/HierarchicalCategoryTemplateSelector.cs", "repo_id": "AirSim", "token_count": 1255 }
21
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft...
AirSim/LogViewer/Networking/Networking.csproj/0
{ "file_path": "AirSim/LogViewer/Networking/Networking.csproj", "repo_id": "AirSim", "token_count": 1728 }
22
@echo off set SCRIPT_PATH=%~dp0 cd %~dp0 msbuild MavLinkComGenerator.csproj bin\Debug\MavLinkComGenerator.exe -xml:%SCRIPT_PATH%\..\mavlink\message_definitions\common.xml -out:%SCRIPT_PATH%\..\include copy ..\include\MavLinkMessages.cpp ..\src del ..\include\MavLinkMessages.cpp goto :eof
AirSim/MavLinkCom/MavLinkComGenerator/regen.cmd/0
{ "file_path": "AirSim/MavLinkCom/MavLinkComGenerator/regen.cmd", "repo_id": "AirSim", "token_count": 121 }
23
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef common_utils_Semaphore_hpp #define common_utils_Semaphore_hpp #include <memory> namespace mavlink_utils { /* A semaphore is used to signal an event across threads. One thread blocks on Wait() until the other thr...
AirSim/MavLinkCom/include/Semaphore.hpp/0
{ "file_path": "AirSim/MavLinkCom/include/Semaphore.hpp", "repo_id": "AirSim", "token_count": 391 }
24
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "MavLinkConnection.hpp" #include "impl/MavLinkConnectionImpl.hpp" using namespace mavlinkcom; using namespace mavlinkcom_impl; MavLinkConnection::MavLinkConnection() { pImpl.reset(new MavLinkConnectionImpl())...
AirSim/MavLinkCom/src/MavLinkConnection.cpp/0
{ "file_path": "AirSim/MavLinkCom/src/MavLinkConnection.cpp", "repo_id": "AirSim", "token_count": 1364 }
25
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef MavLinkCom_MavLinkComImpl_hpp #define MavLinkCom_MavLinkComImpl_hpp #include <memory> #include <string> #include <vector> #include <mutex> #include <chrono> #include "MavLinkNode.hpp" #include "MavLinkNodeImpl.hpp"...
AirSim/MavLinkCom/src/impl/MavLinkFtpClientImpl.hpp/0
{ "file_path": "AirSim/MavLinkCom/src/impl/MavLinkFtpClientImpl.hpp", "repo_id": "AirSim", "token_count": 1133 }
26
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef SERIAL_COM_SERIALPORT_HPP #define SERIAL_COM_SERIALPORT_HPP #include <string> #include <memory> #include "Port.h" #include "Utils.hpp" enum Parity { Parity_None = (0x0100), Parity_Odd = (0x0200), Parit...
AirSim/MavLinkCom/src/serial_com/SerialPort.hpp/0
{ "file_path": "AirSim/MavLinkCom/src/serial_com/SerialPort.hpp", "repo_id": "AirSim", "token_count": 574 }
27
from __future__ import print_function from .utils import * from .types import * import msgpackrpc #install as admin: pip install msgpack-rpc-python import numpy as np #pip install numpy import msgpack import time import math import logging class VehicleClient: def __init__(self, ip = "", port = 41451, timeout_va...
AirSim/PythonClient/airsim/client.py/0
{ "file_path": "AirSim/PythonClient/airsim/client.py", "repo_id": "AirSim", "token_count": 28696 }
28
import setup_path import airsim import time # connect to the AirSim simulator client = airsim.CarClient() client.confirmConnection() client.enableApiControl(True) client.armDisarm(True) car_controls = airsim.CarControls() # go forward car_controls.throttle = 1 car_controls.steering = 1 client.setCarControls(car_co...
AirSim/PythonClient/car/reset_test_car.py/0
{ "file_path": "AirSim/PythonClient/car/reset_test_car.py", "repo_id": "AirSim", "token_count": 193 }
29
import numpy as np import airsim import time import cv2 import matplotlib.pyplot as plt import argparse import sys, signal import pandas as pd import pickle from event_simulator import * parser = argparse.ArgumentParser(description="Simulate event data from AirSim") parser.add_argument("--debug", action="store_true") ...
AirSim/PythonClient/eventcamera_sim/test_event_sim.py/0
{ "file_path": "AirSim/PythonClient/eventcamera_sim/test_event_sim.py", "repo_id": "AirSim", "token_count": 1603 }
30
import setup_path import airsim import time # This example shows how to use the External Physics Engine # It allows you to control the drone through setVehiclePose and obtain collision information. # It is especially useful for injecting your own flight dynamics model to the AirSim drone. # Use Blocks environment to...
AirSim/PythonClient/multirotor/external_physics_engine.py/0
{ "file_path": "AirSim/PythonClient/multirotor/external_physics_engine.py", "repo_id": "AirSim", "token_count": 358 }
31
import setup_path import airsim import time # connect to the AirSim simulator client = airsim.MultirotorClient() client.confirmConnection() client.enableApiControl(True) client.armDisarm(True) print("fly") client.moveToPositionAsync(0, 0, -10, 5).join() print("reset") client.reset() client.enableApiControl(True) c...
AirSim/PythonClient/multirotor/reset_test_drone.py/0
{ "file_path": "AirSim/PythonClient/multirotor/reset_test_drone.py", "repo_id": "AirSim", "token_count": 152 }
32
import numpy as np import airsim import gym from gym import spaces class AirSimEnv(gym.Env): metadata = {"render.modes": ["rgb_array"]} def __init__(self, image_shape): self.observation_space = spaces.Box(0, 255, shape=image_shape, dtype=np.uint8) self.viewer = None def __del__(self): ...
AirSim/PythonClient/reinforcement_learning/airgym/envs/airsim_env.py/0
{ "file_path": "AirSim/PythonClient/reinforcement_learning/airgym/envs/airsim_env.py", "repo_id": "AirSim", "token_count": 275 }
33
<?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" /> <ItemGroup Label="ProjectConfigurations"> ...
AirSim/SGM/src/sgmstereo/sgmstereo.vcxproj/0
{ "file_path": "AirSim/SGM/src/sgmstereo/sgmstereo.vcxproj", "repo_id": "AirSim", "token_count": 4314 }
34
#pragma once #include "AirSimStructs.hpp" #include "UnityImageCapture.h" #include "vehicles/car/api/CarApiBase.hpp" #ifdef _WIN32 #define EXPORT __declspec(dllexport) #elif defined(__linux__) || defined(__APPLE__) #define EXPORT __attribute__((visibility("default"))) #endif /* * Defines all the functions that can be ...
AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/PInvokeWrapper.h/0
{ "file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/PInvokeWrapper.h", "repo_id": "AirSim", "token_count": 1205 }
35
#include "UnityToAirSimCalls.h" void StartServerThread(std::string sim_mode_name, int port_number) { key = new SimHUD(sim_mode_name, port_number); key->BeginPlay(); }
AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/UnityToAirSimCalls.cpp/0
{ "file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/UnityToAirSimCalls.cpp", "repo_id": "AirSim", "token_count": 66 }
36
#pragma once #include <future> #include "vehicles/multirotor/MultiRotorPhysicsBody.hpp" #include "vehicles/multirotor/MultiRotorParams.hpp" #include "physics//Kinematics.hpp" #include "MultirotorPawnEvents.h" #include "../../PawnSimApi.h" class MultirotorPawnSimApi : public PawnSimApi { public: typedef msr::airli...
AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/Vehicles/Multirotor/MultirotorPawnSimApi.h/0
{ "file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/Vehicles/Multirotor/MultirotorPawnSimApi.h", "repo_id": "AirSim", "token_count": 871 }
37
fileFormatVersion: 2 guid: 2b02679e19967e4458223b3799ffe90e folderAsset: yes DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
AirSim/Unity/UnityDemo/Assets/AirSimAssets/Prefabs.meta/0
{ "file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Prefabs.meta", "repo_id": "AirSim", "token_count": 67 }
38
fileFormatVersion: 2 guid: 3db70f24b93815f43a8926a9f089c7be PrefabImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
AirSim/Unity/UnityDemo/Assets/AirSimAssets/Prefabs/WeatherHUDSlider.prefab.meta/0
{ "file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Prefabs/WeatherHUDSlider.prefab.meta", "repo_id": "AirSim", "token_count": 67 }
39
using UnityEngine; using System; using AirSimUnity.CarStructs; namespace AirSimUnity { /* * Adaptor to transform data between AirLib and Unity. */ public class DataManager { public static Vector3 ToUnityVector(AirSimVector src) { Vector3 vector = new Vector3(); SetTo...
AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Utilities/DataManager.cs/0
{ "file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Utilities/DataManager.cs", "repo_id": "AirSim", "token_count": 989 }
40
fileFormatVersion: 2 guid: e03150fb5e358274881026fc928ae40f ShaderImporter: externalObjects: {} defaultTextures: [] nonModifiableTextures: [] userData: assetBundleName: assetBundleVariant:
AirSim/Unity/UnityDemo/Assets/AirSimAssets/Shaders/CameraEffects.shader.meta/0
{ "file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Shaders/CameraEffects.shader.meta", "repo_id": "AirSim", "token_count": 77 }
41
fileFormatVersion: 2 guid: c0b2c818a08ca074698c68805ecc817d folderAsset: yes DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
AirSim/Unity/UnityDemo/Assets/Standard Assets/Vehicles/Car.meta/0
{ "file_path": "AirSim/Unity/UnityDemo/Assets/Standard Assets/Vehicles/Car.meta", "repo_id": "AirSim", "token_count": 71 }
42
fileFormatVersion: 2 guid: 7781f6e311e2a474bbd5f81d14b48957 folderAsset: yes DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
AirSim/Unity/UnityDemo/Assets/Standard Assets/Vehicles/Car/Models.meta/0
{ "file_path": "AirSim/Unity/UnityDemo/Assets/Standard Assets/Vehicles/Car/Models.meta", "repo_id": "AirSim", "token_count": 70 }
43
#! /bin/bash # get path of current script: https://stackoverflow.com/a/39340259/207661 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" pushd "$SCRIPT_DIR" >/dev/null set -e set -x ./clean.sh rsync -a --exclude 'temp' --delete ../../Plugins/AirSim Plugins/ rsync -a --exclude 'temp' --delete ../../.....
AirSim/Unreal/Environments/Blocks/update_from_git.sh/0
{ "file_path": "AirSim/Unreal/Environments/Blocks/update_from_git.sh", "repo_id": "AirSim", "token_count": 153 }
44
// Fill out your copyright notice in the Description page of Project Settings. #include "DetectionComponent.h" #include <Components/SceneCaptureComponent2D.h> #include <Components/StaticMeshComponent.h> #include <DrawDebugHelpers.h> #include <Engine/Engine.h> #include <Engine/StaticMesh.h> #include <Engine/TextureRen...
AirSim/Unreal/Plugins/AirSim/Source/DetectionComponent.cpp/0
{ "file_path": "AirSim/Unreal/Plugins/AirSim/Source/DetectionComponent.cpp", "repo_id": "AirSim", "token_count": 3708 }
45
#include "RecordingThread.h" #include "Async/TaskGraphInterfaces.h" #include "HAL/RunnableThread.h" #include <thread> #include <mutex> #include "RenderRequest.h" #include "PIPCamera.h" std::unique_ptr<FRecordingThread> FRecordingThread::running_instance_; std::unique_ptr<FRecordingThread> FRecordingThread::finishing_...
AirSim/Unreal/Plugins/AirSim/Source/Recording/RecordingThread.cpp/0
{ "file_path": "AirSim/Unreal/Plugins/AirSim/Source/Recording/RecordingThread.cpp", "repo_id": "AirSim", "token_count": 1843 }
46
#pragma once #include "CoreMinimal.h" #include <memory> #include <vector> #include "Kismet/KismetSystemLibrary.h" #include "api/VehicleSimApiBase.hpp" #include "physics/PhysicsEngineBase.hpp" #include "physics/World.hpp" #include "physics/PhysicsWorld.hpp" #include "common/StateReporterWrapper.hpp" #include "api/ApiSe...
AirSim/Unreal/Plugins/AirSim/Source/SimMode/SimModeWorldBase.h/0
{ "file_path": "AirSim/Unreal/Plugins/AirSim/Source/SimMode/SimModeWorldBase.h", "repo_id": "AirSim", "token_count": 814 }
47
#pragma once #include "CoreMinimal.h" #include "WheeledVehicleMovementComponent4W.h" #include "CarPawn.h" #include "CarPawnApi.h" #include "PawnEvents.h" #include "PawnSimApi.h" #include "vehicles/car/api/CarApiBase.hpp" #include "physics/Kinematics.hpp" #include "common/Common.hpp" #include "common/CommonStructs.hpp...
AirSim/Unreal/Plugins/AirSim/Source/Vehicles/Car/CarPawnSimApi.h/0
{ "file_path": "AirSim/Unreal/Plugins/AirSim/Source/Vehicles/Car/CarPawnSimApi.h", "repo_id": "AirSim", "token_count": 726 }
48
#pragma once #include "CoreMinimal.h" #include "PawnSimApi.h" #include "vehicles/multirotor/MultiRotorPhysicsBody.hpp" #include "vehicles/multirotor/MultiRotorParams.hpp" #include "physics//Kinematics.hpp" #include "common/Common.hpp" #include "common/CommonStructs.hpp" #include "common/common_utils/UniqueValueMap.hp...
AirSim/Unreal/Plugins/AirSim/Source/Vehicles/Multirotor/MultirotorPawnSimApi.h/0
{ "file_path": "AirSim/Unreal/Plugins/AirSim/Source/Vehicles/Multirotor/MultirotorPawnSimApi.h", "repo_id": "AirSim", "token_count": 1039 }
49
$airSimInstallPath = "C:\AirSim\" $airSimBinaryZipUrl = "https://github.com/microsoft/AirSim/releases/download/v1.3.1-windows/Blocks.zip" $airSimBinaryZipFilename = "Blocks.zip" $airSimBinaryPath = $airSimInstallPath + "blocks\blocks\binaries\win64\blocks.exe" $airSimBinaryName = "Blocks" $webClient = new-object Syst...
AirSim/azure/azure-env-creation/configure-vm.ps1/0
{ "file_path": "AirSim/azure/azure-env-creation/configure-vm.ps1", "repo_id": "AirSim", "token_count": 474 }
50
# Build AirSim on Windows ## Install Unreal Engine 1. [Download](https://www.unrealengine.com/download) the Epic Games Launcher. While the Unreal Engine is open source and free to download, registration is still required. 2. Run the Epic Games Launcher, open the `Unreal Engine` tab on the left pane. Click on the `Ins...
AirSim/docs/build_windows.md/0
{ "file_path": "AirSim/docs/build_windows.md", "repo_id": "AirSim", "token_count": 1021 }
51
# Welcome to GazeboDrone GazeboDrone allows connecting a gazebo drone to the AirSim drone, using the gazebo drone as a flight dynamic model (FDM) and AirSim to generate environmental sensor data. It can be used for **Multicopters**, **Fixed-wings** or any other vehicle. ## Dependencies ### Gazebo Make sure you hav...
AirSim/docs/gazebo_drone.md/0
{ "file_path": "AirSim/docs/gazebo_drone.md", "repo_id": "AirSim", "token_count": 498 }
52
# Remote Control To fly manually, you need remote control or RC. If you don't have one then you can use [APIs](apis.md) to fly programmatically or use so-called [Computer Vision mode](image_apis.md) to move around using keyboard. ## RC Setup for Default Config By default AirSim uses [simple_flight](simple_flight.md)...
AirSim/docs/remote_control.md/0
{ "file_path": "AirSim/docs/remote_control.md", "repo_id": "AirSim", "token_count": 1649 }
53
AirSim provides a feature that constructs ground truth voxel grids of the world directly from Unreal Engine. A voxel grid is a representation of the occupancy of a given world/map, by discretizing into cells of a certain size; and recording a voxel if that particular location is occupied. The logic for constructing t...
AirSim/docs/voxel_grid.md/0
{ "file_path": "AirSim/docs/voxel_grid.md", "repo_id": "AirSim", "token_count": 1087 }
54
<launch> <arg name="host" default="localhost" /> <node name="airsim_node" pkg="airsim_ros_pkgs" type="airsim_node" output="screen"> <!-- <node pkg="nodelet" type="nodelet" name="airsim_nodelet_manager" args="manager" output="screen" /> --> <!-- <node pkg="nodelet" type="nodelet" name="airsim_nodelet" args="standa...
AirSim/ros/src/airsim_ros_pkgs/launch/airsim_car_with_joy_control.launch/0
{ "file_path": "AirSim/ros/src/airsim_ros_pkgs/launch/airsim_car_with_joy_control.launch", "repo_id": "AirSim", "token_count": 444 }
55
geometry_msgs/Twist twist string[] vehicle_names
AirSim/ros/src/airsim_ros_pkgs/msg/VelCmdGroup.msg/0
{ "file_path": "AirSim/ros/src/airsim_ros_pkgs/msg/VelCmdGroup.msg", "repo_id": "AirSim", "token_count": 15 }
56
#include <rclcpp/rclcpp.hpp> #include "airsim_ros_wrapper.h" int main(int argc, char** argv) { rclcpp::init(argc, argv); rclcpp::NodeOptions node_options; node_options.automatically_declare_parameters_from_overrides(true); std::shared_ptr<rclcpp::Node> nh = rclcpp::Node::make_shared("airsim_node", node...
AirSim/ros2/src/airsim_ros_pkgs/src/airsim_node.cpp/0
{ "file_path": "AirSim/ros2/src/airsim_ros_pkgs/src/airsim_node.cpp", "repo_id": "AirSim", "token_count": 536 }
57
// Common/CRC.cs namespace SevenZip { public class CRC { public static readonly uint[] Table; static CRC() { Table = new uint[256]; const uint kPoly = 0xEDB88320; for (uint i = 0; i < 256; i++) { uint r = i; for (int j = 0; j < 8; j++) if ((r & 1) != 0) r = (r >> 1) ^ kPoly; ...
AssetStudio/AssetStudio/7zip/Common/CRC.cs/0
{ "file_path": "AssetStudio/AssetStudio/7zip/Common/CRC.cs", "repo_id": "AssetStudio", "token_count": 494 }
58
using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Text; using static AssetStudio.ImportHelper; namespace AssetStudio { public class AssetsManager { public string SpecifyUnityVersion; public List<SerializedFile> assetsFi...
AssetStudio/AssetStudio/AssetsManager.cs/0
{ "file_path": "AssetStudio/AssetStudio/AssetsManager.cs", "repo_id": "AssetStudio", "token_count": 15082 }
59
/* Copyright 2015 Google Inc. All Rights Reserved. Distributed under MIT license. See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ namespace Org.Brotli.Dec { /// <summary>Enumeration of all possible word transformations.</summary> /// <remarks> /// Enumeration of all possible word trans...
AssetStudio/AssetStudio/Brotli/WordTransformType.cs/0
{ "file_path": "AssetStudio/AssetStudio/Brotli/WordTransformType.cs", "repo_id": "AssetStudio", "token_count": 512 }
60
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AssetStudio { public abstract class EditorExtension : Object { protected EditorExtension(ObjectReader reader) : base(reader) { if (platform == BuildTarget.NoTarget) { ...
AssetStudio/AssetStudio/Classes/EditorExtension.cs/0
{ "file_path": "AssetStudio/AssetStudio/Classes/EditorExtension.cs", "repo_id": "AssetStudio", "token_count": 221 }
61