file_path stringlengths 22 162 | content stringlengths 19 501k | size int64 19 501k | lang stringclasses 1
value | avg_line_length float64 6.33 100 | max_line_length int64 18 935 | alphanum_fraction float64 0.34 0.93 |
|---|---|---|---|---|---|---|
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 |
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/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 |
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 |
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/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/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/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/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 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 5