file_path
stringlengths
21
207
content
stringlengths
5
1.02M
size
int64
5
1.02M
lang
stringclasses
9 values
avg_line_length
float64
2.5
98.5
max_line_length
int64
5
993
alphanum_fraction
float64
0.27
0.91
ashleygoldstein/LWM-Warehouse-Scene/README.md
# LWM-Warehouse-Scene This Sample was developed during the Learn With Me livestream Series. Learn With Me streams every Monday and Wednesday at 1pm EST on the NVIDIA Omniverse Twitch and YouTube channels https://www.youtube.com/@NVIDIAOmniverse/streams Playlist of the previously recorded streams: https://youtube.co...
1,435
Markdown
38.888888
242
0.77561
ashleygoldstein/LWM-Warehouse-Scene/Scripts/pallet_collision.py
from omni.kit.scripting import BehaviorScript import omni import omni.physx from pxr import Gf, Sdf, PhysxSchema, UsdGeom, Usd from omni.physx.scripts import utils from omni.physx import get_physx_scene_query_interface from omni.physx import get_physx_interface, get_physx_simulation_interface from omni.physx.scripts.ph...
3,729
Python
35.213592
130
0.616251
dantreble/a2f/README.md
# a2f Unreal plugin to import json blendshape animations generated by audio2face in Nvidia Omniverse It can convert a blend shape channel to a bone transform: ![Import settings example](/Resources/importsettings.png) It supports reimport and batch import.
261
Markdown
25.199997
94
0.804598
dantreble/a2f/Source/a2fEditor/Private/a2fOptionWindow.cpp
// Copyright Epic Games, Inc. All Rights Reserved. #include "a2fOptionWindow.h" #include "Modules/ModuleManager.h" #include "Widgets/Layout/SBorder.h" #include "Widgets/Text/STextBlock.h" #include "Widgets/Layout/SBox.h" #include "Widgets/Layout/SUniformGridPanel.h" #include "Widgets/Input/SButton.h" #include "EditorSt...
5,784
C++
24.372807
162
0.703147
dantreble/a2f/Source/a2fEditor/Private/a2fEditor.cpp
// Copyright Spitfire Interactive Pty Ltd. All Rights Reserved. #include "a2fEditor.h" #define LOCTEXT_NAMESPACE "Fa2fEditorModule" void Fa2fEditorModule::StartupModule() { // This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module } void Fa2fEd...
593
C++
28.699999
129
0.784148
dantreble/a2f/Source/a2fEditor/Private/a2fImportUI.cpp
// Copyright Spitfire Interactive Pty Ltd. All Rights Reserved. #include "a2fImportUI.h" #include "a2fAssetImportData.h" #include "AnimationUtils.h" Ua2fImportUI::Ua2fImportUI() { ResetToDefault(); } void Ua2fImportUI::ResetToDefault() { AnimSequenceImportData = CreateDefaultSubobject<Ua2fAssetImportData>(TEXT(...
541
C++
21.583332
108
0.815157
dantreble/a2f/Source/a2fEditor/Private/a2fAssetImportData.cpp
// Copyright Spitfire Interactive Pty Ltd. All Rights Reserved. #include "a2fAssetImportData.h" void Ua2fAssetImportData::GetCurvesToStrip(TSet<FString> &CurvesToStrip) const { for (const FCurveDrivenBoneTransform &CurveDrivenBoneTransform : CurveDrivenBoneTransforms) { for (const FCurveDrivenTransform &CurveDr...
502
C++
24.149999
106
0.794821
dantreble/a2f/Source/a2fEditor/Private/a2fFactory.cpp
// Copyright Spitfire Interactive Pty Ltd. All Rights Reserved. #include "a2fFactory.h" #include "a2fAssetImportData.h" #include "a2fImportUI.h" #include "a2fOptionWindow.h" #include "AnimationUtils.h" #include "EditorFramework/AssetImportData.h" #include "Interfaces/IMainFrameModule.h" #include "Misc/FileHelper.h" #...
11,808
C++
28.972081
182
0.766599
dantreble/a2f/Source/a2fEditor/Public/a2fEditor.h
// Copyright Spitfire Interactive Pty Ltd. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Modules/ModuleManager.h" class Fa2fEditorModule : public IModuleInterface { public: /** IModuleInterface implementation */ virtual void StartupModule() override; virtual void ShutdownModule() override;...
324
C
19.312499
63
0.777778
dantreble/a2f/Source/a2fEditor/Public/a2fAssetImportData.h
// Copyright Spitfire Interactive Pty Ltd. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "EditorFramework/AssetImportData.h" #include "a2fAssetImportData.generated.h" /** * */ USTRUCT(BlueprintType) struct FCurveDrivenTransform { GENERATED_BODY() UPROPERTY(EditAnywhere, BlueprintReadWrit...
1,405
C
22.04918
149
0.798577
dantreble/a2f/Source/a2fEditor/Public/a2fFactory.h
// Copyright Spitfire Interactive Pty Ltd. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Factories/Factory.h" #include "EditorReimportHandler.h" #include "a2fFactory.generated.h" /** * */ UCLASS() class A2FEDITOR_API Ua2fFactory : public UFactory, public FReimportHandler { GENERATED_UCLASS...
1,227
C
22.615384
108
0.772616
dantreble/a2f/Source/a2fEditor/Public/a2fImportUI.h
// Copyright Spitfire Interactive Pty Ltd. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "a2fImportUI.generated.h" /** * */ UCLASS(BlueprintType, HideCategories = Object, MinimalAPI) class Ua2fImportUI : public UObject { public: Ua2fImportUI(); private: GENERATED_BODY() public: void Re...
1,278
C
29.45238
189
0.788732
dantreble/a2f/Source/a2fEditor/Public/a2fOptionWindow.h
// Copyright Spitfire Interactive Pty Ltd. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "InputCoreTypes.h" #include "Widgets/DeclarativeSyntaxSupport.h" #include "Input/Reply.h" #include "Widgets/SCompoundWidget.h" #include "Widgets/SWindow.h" #include "a2fImportUI.h" class SButton; class A2F...
1,612
C
20.506666
95
0.747519
Vadim-Karpenko/omniverse-material-manager-extended/CHANGELOG.md
# Change Log All notable changes to this project will be documented in this file. ## [1.1.1] - 2022-12-26 ### Fixed Support of Create 2022.3.1 ## [1.1.1] - 2022-10-04 ### Fixed Convert icon and preview_image to png format ## [1.1.0] - 2022-09-26 ### Added #### Roaming mode (settings tab) Allowing you to au...
757
Markdown
18.947368
158
0.694848
Vadim-Karpenko/omniverse-material-manager-extended/README.md
# Material Manager Extended ![welcome](readme_media/welcome.jpg) ### About This extension will let you quickly toggle between different materials for the static objects in your scene. ## Quick links * [Installation](#installation) * [Restrictions](#restrictions) * [How to use](#how-to-use) * [Linking with an Omnivers...
3,671
Markdown
35.72
338
0.749387
Vadim-Karpenko/omniverse-material-manager-extended/tools/scripts/link_app.py
import os import argparse import sys import json import packmanapi import urllib3 def find_omniverse_apps(): http = urllib3.PoolManager() try: r = http.request("GET", "http://127.0.0.1:33480/components") except Exception as e: print(f"Failed retrieving apps from an Omniverse Launcher, mayb...
2,813
Python
32.5
133
0.562389
Vadim-Karpenko/omniverse-material-manager-extended/tools/packman/config.packman.xml
<config remotes="cloudfront"> <remote2 name="cloudfront"> <transport actions="download" protocol="https" packageLocation="d4i3qtqj3r0z5.cloudfront.net/${name}@${version}" /> </remote2> </config>
211
XML
34.333328
123
0.691943
Vadim-Karpenko/omniverse-material-manager-extended/tools/packman/bootstrap/install_package.py
# Copyright 2019 NVIDIA CORPORATION # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writi...
1,888
Python
31.568965
103
0.68697
Vadim-Karpenko/omniverse-material-manager-extended/exts/karpenko.materialsmanager.ext/karpenko/materialsmanager/ext/prim_serializer.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
3,123
Python
32.956521
101
0.675312
Vadim-Karpenko/omniverse-material-manager-extended/exts/karpenko.materialsmanager.ext/karpenko/materialsmanager/ext/style.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
2,175
Python
27.25974
89
0.605057
Vadim-Karpenko/omniverse-material-manager-extended/exts/karpenko.materialsmanager.ext/karpenko/materialsmanager/ext/extension.py
import asyncio import base64 import json import math import carb import omni.ext import omni.kit.commands import omni.ui as ui import omni.usd from omni.kit.viewport.utility import (get_active_viewport_camera_path, get_active_viewport_window, ...
61,602
Python
44.329654
168
0.542271
Vadim-Karpenko/omniverse-material-manager-extended/exts/karpenko.materialsmanager.ext/karpenko/materialsmanager/ext/__init__.py
from .extension import *
25
Python
11.999994
24
0.76
Vadim-Karpenko/omniverse-material-manager-extended/exts/karpenko.materialsmanager.ext/karpenko/materialsmanager/ext/viewport_ui/widget_info_manipulator.py
# Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software an...
8,631
Python
39.336448
117
0.588228
Vadim-Karpenko/omniverse-material-manager-extended/exts/karpenko.materialsmanager.ext/karpenko/materialsmanager/ext/viewport_ui/widget_info_scene.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
2,570
Python
38.553846
97
0.624125
Vadim-Karpenko/omniverse-material-manager-extended/exts/karpenko.materialsmanager.ext/karpenko/materialsmanager/ext/viewport_ui/widget_info_model.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
6,966
Python
34.728205
127
0.604795
Vadim-Karpenko/omniverse-material-manager-extended/exts/karpenko.materialsmanager.ext/config/extension.toml
[package] # Semantic Versionning is used: https://semver.org/ version = "1.1.4" # The title and description fields are primarily for displaying extension info in UI title = "Material Manager" description="Allows you to quickly toggle between different materials" # Path (relative to the root) or content of readme mark...
1,207
TOML
25.260869
118
0.716653
Vadim-Karpenko/omniverse-material-manager-extended/exts/karpenko.materialsmanager.ext/docs/README.md
## Material Manager Extended This extension will let you quickly toggle between different materials for the static objects in your scene.
137
Markdown
67.999966
108
0.832117
zslrmhb/Omniverse-Virtual-Assisstant/nlp.py
# natural language processing module utilizing the Riva SDK import wikipedia as wiki import wikipediaapi as wiki_api import riva.client from config import URI class NLPService: def __init__(self, max_wiki_articles): """ :param max_wiki_articles: max wiki articles to search """ se...
1,428
Python
32.232557
87
0.60084
zslrmhb/Omniverse-Virtual-Assisstant/tts.py
# text-to-speech module utilizting the Riva SDK import riva.client import riva.client.audio_io from config import URI class TTSService: def __init__(self, language='en-US', sample_rate_hz=44100): """ :param language: language code :param sample_rate_hz: sample rate herz """ ...
1,310
Python
28.795454
107
0.603817
zslrmhb/Omniverse-Virtual-Assisstant/audio2face_streaming_utils.py
""" This demo script shows how to send audio data to Audio2Face Streaming Audio Player via gRPC requests. There are two options: * Send the whole track at once using PushAudioRequest() * Send the audio chunks seuqntially in a stream using PushAudioStreamRequest() For the second option this script emulates the stream ...
6,202
Python
42.377622
158
0.697356
zslrmhb/Omniverse-Virtual-Assisstant/asr.py
# Audio to Speech Module utilizing the Riva SDK import riva.client import riva.client.audio_io from typing import Iterable import riva.client.proto.riva_asr_pb2 as rasr from config import URI config = riva.client.StreamingRecognitionConfig( config=riva.client.RecognitionConfig( encoding=riva.client.AudioE...
2,796
Python
34.858974
115
0.545422
zslrmhb/Omniverse-Virtual-Assisstant/main.py
# Running the Demo from asr import ASRService from nlp import NLPService from tts import TTSService from audio2face import Audio2FaceService asr_service = ASRService() nlp_service = NLPService(max_wiki_articles=5) tts_service = TTSService() audio2face_service = Audio2FaceService() while True: # speech recognitio...
721
Python
24.785713
64
0.736477
zslrmhb/Omniverse-Virtual-Assisstant/config.py
# configuration for accessing the remote local host on the Google Cloud Server URI = "" # This will be in the syntax of external ip of your Riva Server:Port of your Riva Server # Example: 12.34.56.789:50050
218
Python
53.749987
98
0.724771
zslrmhb/Omniverse-Virtual-Assisstant/audio2face_pb2_grpc.py
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc import audio2face_pb2 as audio2face__pb2 class Audio2FaceStub(object): """Missing associated documentation comment in .proto file.""" def __init__(sel...
4,208
Python
33.219512
111
0.642586
zslrmhb/Omniverse-Virtual-Assisstant/audio2face.py
# speech to Audio2Face module utilizing the gRPC protocal from audio2face_streaming_utils import riva.client import io from pydub import AudioSegment from scipy.io.wavfile import read import numpy as np from audio2face_streaming_utils import push_audio_track class Audio2FaceService: def __init__(self, sample_rat...
1,769
Python
32.396226
127
0.62182
zslrmhb/Omniverse-Virtual-Assisstant/README.md
# Omniverse-Virtual-Assisstant using Riva Server (with Riva SDK, deployed in Google Cloud) and Audio2Face ## Demo [![Demo](http://img.youtube.com/vi/kv9QM-SODIM/maxresdefault.jpg)](https://youtu.be/kv9QM-SODIM "Video Title") ## Prerequisites - Riva Server - Audio2Face - In a conda environment(Prefer) - Riva Pytho...
1,474
Markdown
34.119047
157
0.717096
zslrmhb/Omniverse-Virtual-Assisstant/LICENSE.md
MIT License Copyright (c) 2023 Hongbin Miao Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist...
1,069
Markdown
47.636361
78
0.805426
PegasusSimulator/PegasusSimulator/README.md
# Pegasus Simulator ![IsaacSim 2023.1.1](https://img.shields.io/badge/IsaacSim-2023.1.1-brightgreen.svg) ![PX4-Autopilot 1.14.1](https://img.shields.io/badge/PX4--Autopilot-1.14.1-brightgreen.svg) ![Ubuntu 22.04](https://img.shields.io/badge/Ubuntu-22.04LTS-brightgreen.svg) **Pegasus Simulator** is a framework built ...
4,976
Markdown
58.963855
417
0.76246
PegasusSimulator/PegasusSimulator/examples/1_px4_single_vehicle.py
#!/usr/bin/env python """ | File: 1_px4_single_vehicle.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: This files serves as an example on how to build an app that makes use of the Pegasus API to run a sim...
4,153
Python
35.438596
192
0.667229
PegasusSimulator/PegasusSimulator/examples/6_paper_results.py
#!/usr/bin/env python """ | File: python_control_backend.py | Author: Marcelo Jacinto and Joao Pinto (marcelo.jacinto@tecnico.ulisboa.pt, joao.s.pinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: This files serves as an example on how to use the c...
6,750
Python
37.79885
128
0.652741
PegasusSimulator/PegasusSimulator/examples/3_ros2_single_vehicle.py
#!/usr/bin/env python """ | File: 3_ros2_single_vehicle.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: This files serves as an example on how to build an app that makes use of the Pegasus API to run a s...
4,374
Python
37.043478
216
0.679927
PegasusSimulator/PegasusSimulator/examples/5_python_multi_vehicle.py
#!/usr/bin/env python """ | File: python_control_backend.py | Author: Marcelo Jacinto and Joao Pinto (marcelo.jacinto@tecnico.ulisboa.pt, joao.s.pinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: This files serves as an example on how to use the c...
6,518
Python
37.803571
128
0.642989
PegasusSimulator/PegasusSimulator/examples/4_python_single_vehicle.py
#!/usr/bin/env python """ | File: 4_python_single_vehicle.py | Author: Marcelo Jacinto and Joao Pinto (marcelo.jacinto@tecnico.ulisboa.pt, joao.s.pinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: This files serves as an example on how to use the ...
4,221
Python
34.478991
121
0.666667
PegasusSimulator/PegasusSimulator/examples/0_template_app.py
#!/usr/bin/env python """ | File: 0_template_app.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: This files serves as a template on how to build a clean and simple Isaac Sim based standalone App. """ # I...
4,001
Python
34.105263
121
0.652587
PegasusSimulator/PegasusSimulator/examples/8_camera_vehicle.py
#!/usr/bin/env python """ | File: 8_camera_vehicle.py | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto and Filip Stec. All rights reserved. | Description: This files serves as an example on how to build an app that makes use of the Pegasus API to run a simulation with a single vehicle equipped with a camera...
4,878
Python
38.032
126
0.677532
PegasusSimulator/PegasusSimulator/examples/2_px4_multi_vehicle.py
#!/usr/bin/env python """ | File: 2_px4_multi_vehicle.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: This files serves as an example on how to build an app that makes use of the Pegasus API to run a simu...
4,598
Python
35.5
193
0.662462
PegasusSimulator/PegasusSimulator/examples/utils/nonlinear_controller.py
#!/usr/bin/env python """ | File: nonlinear_controller.py | Author: Marcelo Jacinto and Joao Pinto (marcelo.jacinto@tecnico.ulisboa.pt, joao.s.pinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: This files serves as an example on how to use the con...
18,171
Python
41.064815
149
0.587144
PegasusSimulator/PegasusSimulator/tools/scripts/link_app.py
import argparse import json import os import sys import packmanapi import urllib3 def find_omniverse_apps(): http = urllib3.PoolManager() try: r = http.request("GET", "http://127.0.0.1:33480/components") except Exception as e: print(f"Failed retrieving apps from an Omniverse Launcher, may...
2,814
Python
32.117647
133
0.562189
PegasusSimulator/PegasusSimulator/tools/packman/config.packman.xml
<config remotes="cloudfront"> <remote2 name="cloudfront"> <transport actions="download" protocol="https" packageLocation="d4i3qtqj3r0z5.cloudfront.net/${name}@${version}" /> </remote2> </config>
211
XML
34.333328
123
0.691943
PegasusSimulator/PegasusSimulator/tools/packman/bootstrap/install_package.py
# Copyright 2019 NVIDIA CORPORATION # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writi...
1,844
Python
33.166666
108
0.703362
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/setup.py
""" | File: setup.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: File that defines the installation requirements for this python package. """ import os import toml from setuptools import setup # Obtain...
1,389
Python
31.325581
89
0.712743
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/extension.py
""" | File: extension.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: Implements the Pegasus_SimulatorExtension which omni.ext.IExt that is created when this class is enabled. In turn, this class initiali...
6,081
Python
37.493671
193
0.666996
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/__init__.py
""" | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ __author__ = "Marcelo Jacinto" __email__ = "marcelo.jacinto@tecnico.ulisboa.pt" from .extension import Pegasus_SimulatorExtension
285
Python
30.777774
82
0.740351
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/params.py
""" | File: params.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: File that defines the base configurations for the Pegasus Simulator. """ import os from pathlib import Path import omni.isaac.core.utils...
3,070
Python
38.883116
111
0.739414
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/parser/dynamics_parser.py
# Copyright (c) 2023, Marcelo Jacinto # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # Sensors that can be used with the vehicles from pegasus.simulator.parser import Parser from pegasus.simulator.logic.dynamics import LinearDrag class DynamicsParser(Parser): def __init__(self): # Dict...
635
Python
25.499999
56
0.699213
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/parser/parser.py
# Copyright (c) 2023, Marcelo Jacinto # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause class Parser: def __init__(self): pass def parse(self, data_type: str, data_dict): pass
218
Python
15.846153
47
0.62844
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/parser/thrusters_parser.py
# Copyright (c) 2023, Marcelo Jacinto # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # Sensors that can be used with the vehicles from pegasus.simulator.parser import Parser from pegasus.simulator.logic.thrusters import QuadraticThrustCurve class ThrustersParser(Parser): def __init__(self): ...
692
Python
27.874999
77
0.715318
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/parser/vehicle_parser.py
# Copyright (c) 2023, Marcelo Jacinto # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause import carb # Sensors that can be used with the vehicles from pegasus.simulator.parser import Parser, SensorParser, ThrustersParser, DynamicsParser, BackendsParser from pegasus.simulator.logic.vehicles import Multiro...
3,406
Python
37.715909
106
0.57751
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/parser/__init__.py
# Copyright (c) 2023, Marcelo Jacinto # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause from .parser import Parser from .sensor_parser import SensorParser from .thrusters_parser import ThrustersParser from .dynamics_parser import DynamicsParser from .backends_parser import BackendsParser from .graphs_par...
343
Python
30.272725
45
0.819242
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/parser/sensor_parser.py
# Copyright (c) 2023, Marcelo Jacinto # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # Sensors that can be used with the vehicles from pegasus.simulator.parser import Parser from pegasus.simulator.logic.sensors import Barometer, GPS, IMU, Magnetometer class SensorParser(Parser): def __init__(se...
700
Python
28.208332
101
0.694286
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/parser/backends_parser.py
# Copyright (c) 2023, Marcelo Jacinto # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # Sensors that can be used with the vehicles from pegasus.simulator.parser import Parser from pegasus.simulator.logic.backends import MavlinkBackendConfig, MavlinkBackend, ROS2Backend class BackendsParser(Parser): ...
892
Python
29.793102
94
0.709641
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/parser/graphs_parser.py
# Copyright (c) 2023, Marcelo Jacinto # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # Graphs that can be used with the vehicles from pegasus.simulator.parser import Parser from pegasus.simulator.logic.graphs import ROS2Camera class GraphParser(Parser): def __init__(self): # Dictionary...
637
Python
24.519999
55
0.66719
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/ui/ui_window.py
""" | File: ui_window.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: Definition of WidgetWindow which contains all the UI code that defines the extension GUI """ __all__ = ["WidgetWindow"] # External p...
22,406
Python
48.030634
169
0.512407
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/ui/ui_delegate.py
""" | File: ui_delegate.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: Definition of the UiDelegate which is an abstraction layer betweeen the extension UI and code logic features """ # External package...
11,596
Python
41.324817
134
0.643412
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/ui/__init__.py
# Copyright (c) 2023, Marcelo Jacinto # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause from .ui_delegate import UIDelegate from .ui_window import WidgetWindow
175
Python
24.142854
39
0.777143
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/vehicle_manager.py
""" | File: vehicle_manager.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: Definition of the VehicleManager class - a singleton used to manage the vehiles that are spawned in the simulation world """ __...
4,124
Python
31.738095
135
0.640883
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/state.py
""" | File: state.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: Describes the state of a vehicle (or rigidbody). """ __all__ = ["State"] import numpy as np from scipy.spatial.transform import Rotation ...
6,384
Python
52.208333
205
0.684211
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/__init__.py
""" | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ from .interface.pegasus_interface import PegasusInterface
212
Python
34.499994
82
0.768868
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/rotations.py
""" | File: rotations.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: Implements utilitary rotations between ENU and NED inertial frame conventions and FLU and FRD body frame conventions. """ import numpy...
1,447
Python
48.931033
132
0.735314
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/thrusters/__init__.py
""" | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ from .thrust_curve import ThrustCurve from .quadratic_thrust_curve import QuadraticThrustCurve
249
Python
34.714281
82
0.779116
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/thrusters/quadratic_thrust_curve.py
""" | File: quadratic_thrust_curve.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | Descriptio: File that implements a quadratic thrust curve for rotors | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ import numpy as np from pegasus.simulator.logic.state import ...
6,097
Python
41.643356
201
0.632606
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/thrusters/thrust_curve.py
""" | File: thrust_curve.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | Descriptio: File that implements the base interface for defining thrust curves for vehicles | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ from pegasus.simulator.logic.state import State ...
2,307
Python
32.941176
128
0.642826
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/graphs/ros2_camera.py
""" | File: ros2_camera.py | License: BSD-3-Clause. Copyright (c) 2023, Micah Nye. All rights reserved. """ __all__ = ["ROS2Camera"] import carb from omni.isaac.core.utils import stage import omni.graph.core as og from omni.isaac.core.utils.prims import is_prim_path_valid from omni.isaac.core.utils.prims import set_t...
9,941
Python
45.896226
181
0.5933
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/graphs/__init__.py
""" | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto and Filip Stec. All rights reserved. """ from .graph import Graph from .ros2_camera import ROS2Camera
168
Python
23.142854
97
0.738095
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/graphs/graph.py
""" | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto and Filip Stec. All rights reserved. """ __all__ = ["Graph"] class Graph: """The base class for implementing OmniGraphs Attributes: graph_prim_path """ def __init__(self, graph_type: str): """Initialize Graph class ...
1,011
Python
24.299999
97
0.568744
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/sensors/magnetometer.py
""" | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: Simulates a magnetometer. Based on the original implementation provided in PX4 stil_gazebo (https://github.com/PX4/PX4-SITL_gazebo) by Elia Tarasov """ __a...
6,384
Python
48.115384
185
0.649593
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/sensors/geo_mag_utils.py
""" | File: geo_mag_utils.py | Description: Provides utilities for computing latitude, longitude, and magnetic strength given the position of the vehicle in the simulated world. These computations and table constants are in agreement with the PX4 stil_gazebo implementation (https://github.com/PX4/PX4-SITL_gazebo). Ther...
8,992
Python
58.953333
156
0.590747
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/sensors/__init__.py
""" | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ from .sensor import Sensor from .barometer import Barometer from .gps import GPS from .imu import IMU from .magnetometer import Magnetometer
296
Python
25.999998
82
0.77027
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/sensors/sensor.py
""" | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: Definition of the Sensor class which is used as the base for all the sensors. """ __all__ = ["Sensor"] from pegasus.simulator.logic.state import State cl...
6,081
Python
39.818792
133
0.627693
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/sensors/barometer.py
""" | File: barometer.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: Simulates a barometer. Based on the implementation provided in PX4 stil_gazebo (https://github.com/PX4/PX4-SITL_gazebo) by Elia Taraso...
7,189
Python
46.615894
245
0.626095
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/sensors/gps.py
""" | File: gps.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: Simulates a gps. Based on the implementation provided in PX4 stil_gazebo (https://github.com/PX4/PX4-SITL_gazebo) by Amy Wagoner and Nuno Ma...
8,406
Python
43.481481
167
0.571259
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/sensors/imu.py
""" | File: imu.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: Simulates an imu. Based on the implementation provided in PX4 stil_gazebo (https://github.com/PX4/PX4-SITL_gazebo) """ __all__ = ["IMU"] im...
8,652
Python
48.445714
167
0.624942
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/interface/__init__.py
""" | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ from .pegasus_interface import PegasusInterface
203
Python
28.142853
82
0.758621
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/interface/pegasus_interface.py
""" | File: pegasus_interface.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: Definition of the PegasusInterface class (a singleton) that is used to manage the Pegasus framework. """ __all__ = ["PegasusI...
20,371
Python
38.557281
147
0.63502
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/backends/backend.py
""" | File: backend.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | Description: | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ class Backend: """ This class defines the templates for the communication and control backend. Every vehicle can have at le...
3,830
Python
40.193548
143
0.674935
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/backends/__init__.py
""" | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ from .backend import Backend from .mavlink_backend import MavlinkBackend, MavlinkBackendConfig from .ros2_backend import ROS2Backend
288
Python
31.111108
82
0.784722
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/backends/ros2_backend.py
""" | File: ros2_backend.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | Description: File that implements the ROS2 Backend for communication/control with/of the vehicle simulation through ROS2 topics | License: BSD-3-Clause. Copyright (c) 2024, Marcelo Jacinto. All rights reserved. """ import carb ...
15,962
Python
45.40407
213
0.626237
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/backends/mavlink_backend.py
""" | File: mavlink_backend.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | Description: File that implements the Mavlink Backend for communication/control with/of the vehicle simulation | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ __all__ = ["MavlinkBackend...
34,342
Python
39.884524
186
0.61697
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/backends/tools/px4_launch_tool.py
""" | File: px4_launch_tool.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | Description: Defines an auxiliary tool to launch the PX4 process in the background | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ # System tools used to launch the px4 process in the ...
3,332
Python
32
122
0.612545
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/vehicles/vehicle.py
""" | File: vehicle.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: Definition of the Vehicle class which is used as the base for all the vehicles. """ # Numerical computations import numpy as np from sc...
11,970
Python
41.601423
150
0.653133
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/vehicles/multirotor.py
""" | File: multirotor.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. | Description: Definition of the Multirotor class which is used as the base for all the multirotor vehicles. """ import numpy as np # The vehicle ...
13,252
Python
45.501754
160
0.644582
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/vehicles/__init__.py
""" | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ from .vehicle import Vehicle from .multirotor import Multirotor, MultirotorConfig
237
Python
28.749996
82
0.767932
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/vehicles/multirotors/iris.py
# Copyright (c) 2023, Marcelo Jacinto # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause from pegasus.simulator.logic.vehicles.multirotor import Multirotor, MultirotorConfig # Sensors and dynamics setup from pegasus.simulator.logic.dynamics import LinearDrag from pegasus.simulator.logic.thrusters import ...
1,850
Python
42.046511
129
0.721081
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/dynamics/__init__.py
""" | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ from .drag import Drag from .linear_drag import LinearDrag
214
Python
25.874997
82
0.747664
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/dynamics/drag.py
""" | File: drag.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | Description: Base interface used to implement forces that should actuate on a rigidbody such as linear drag | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ from pegasus.simulator.logic.state impor...
1,481
Python
36.049999
128
0.649561
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/logic/dynamics/linear_drag.py
""" | File: linear_drag.py | Author: Marcelo Jacinto (marcelo.jacinto@tecnico.ulisboa.pt) | Description: Computes the forces that should actuate on a rigidbody affected by linear drag | License: BSD-3-Clause. Copyright (c) 2023, Marcelo Jacinto. All rights reserved. """ import numpy as np from pegasus.simulator.logic.d...
2,762
Python
42.171874
128
0.663287
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/tests/__init__.py
# Copyright (c) 2023, Marcelo Jacinto # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause from .test_hello_world import *
135
Python
21.666663
39
0.740741
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/pegasus/simulator/tests/test_hello_world.py
# NOTE: # omni.kit.test - std python's unittest module with additional wrapping to add suport for async/await tests # For most things refer to unittest docs: https://docs.python.org/3/library/unittest.html import omni.kit.test # Extnsion for writing UI tests (simulate UI interaction) import omni.kit.ui_test as ui_...
1,669
Python
35.304347
142
0.683044
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/config/extension.toml
[package] # Semantic Versioning is used: https://semver.org/ version = "1.0.0" # Lists people or organizations that are considered the "authors" of the package. authors = ["Marcelo Jacinto"] # The title and description fields are primarily for displaying extension info in UI title = "Pegasus Simulator" description="E...
1,885
TOML
32.087719
134
0.731565
PegasusSimulator/PegasusSimulator/extensions/pegasus.simulator/config/configs.yaml
global_coordinates: altitude: 90.0 latitude: 38.736832 longitude: -9.137977 px4_dir: ~/PX4-Autopilot px4_default_airframe: gazebo-classic_iris # Change to 'iris' if using PX4 version lower than v1.14
205
YAML
33.333328
98
0.756098