agx-openplx 0.15.22__cp39-cp39-win_amd64.whl → 0.16.1__cp39-cp39-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {agx_openplx-0.15.22.dist-info → agx_openplx-0.16.1.dist-info}/METADATA +2 -2
- agx_openplx-0.16.1.dist-info/RECORD +41 -0
- openplx/DriveTrain.py +3318 -1690
- openplx/Math.py +528 -528
- openplx/Physics.py +3368 -2098
- openplx/Physics1D.py +272 -272
- openplx/Physics3D.py +2308 -2308
- openplx/Robotics.py +882 -882
- openplx/Simulation.py +46 -46
- openplx/Terrain.py +182 -182
- openplx/Urdf.py +25 -24
- openplx/Vehicles.py +436 -436
- openplx/Visuals.py +188 -188
- openplx/_AgxOpenPlxPyApi.cp39-win_amd64.pyd +0 -0
- openplx/_CorePythonSwig.cp39-win_amd64.pyd +0 -0
- openplx/_DriveTrainSwig.cp39-win_amd64.pyd +0 -0
- openplx/_MathSwig.cp39-win_amd64.pyd +0 -0
- openplx/_Physics1DSwig.cp39-win_amd64.pyd +0 -0
- openplx/_Physics3DSwig.cp39-win_amd64.pyd +0 -0
- openplx/_PhysicsSwig.cp39-win_amd64.pyd +0 -0
- openplx/_RoboticsSwig.cp39-win_amd64.pyd +0 -0
- openplx/_SimulationSwig.cp39-win_amd64.pyd +0 -0
- openplx/_TerrainSwig.cp39-win_amd64.pyd +0 -0
- openplx/_UrdfSwig.cp39-win_amd64.pyd +0 -0
- openplx/_VehiclesSwig.cp39-win_amd64.pyd +0 -0
- openplx/_VisualsSwig.cp39-win_amd64.pyd +0 -0
- openplx/__init__.py +1 -1
- openplx/api.py +23 -1
- openplx/migrations.py +12 -0
- openplx/openplx_application.py +11 -1
- openplx/openplx_validate.py +8 -1
- agx_openplx-0.15.22.dist-info/RECORD +0 -41
- {agx_openplx-0.15.22.dist-info → agx_openplx-0.16.1.dist-info}/WHEEL +0 -0
- {agx_openplx-0.15.22.dist-info → agx_openplx-0.16.1.dist-info}/entry_points.txt +0 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
openplx/__init__.py
CHANGED
openplx/api.py
CHANGED
@@ -725,6 +725,17 @@ class ClickInputListener(object):
|
|
725
725
|
"""
|
726
726
|
return _AgxOpenPlxPyApi.ClickInputListener_updateScene(self, openplx_scene)
|
727
727
|
|
728
|
+
def updateInputQueue(self, input_queue):
|
729
|
+
r"""
|
730
|
+
updateInputQueue(ClickInputListener self, std::shared_ptr< agxopenplx::InputSignalQueue > const & input_queue)
|
731
|
+
|
732
|
+
Parameters
|
733
|
+
----------
|
734
|
+
input_queue: std::shared_ptr< agxopenplx::InputSignalQueue > const &
|
735
|
+
|
736
|
+
"""
|
737
|
+
return _AgxOpenPlxPyApi.ClickInputListener_updateInputQueue(self, input_queue)
|
738
|
+
|
728
739
|
def autostepOffCallback(self):
|
729
740
|
r"""autostepOffCallback(ClickInputListener self)"""
|
730
741
|
return _AgxOpenPlxPyApi.ClickInputListener_autostepOffCallback(self)
|
@@ -745,6 +756,17 @@ class ClickInputListener(object):
|
|
745
756
|
r"""getScene(ClickInputListener self) -> std::shared_ptr< openplx::Core::Object >"""
|
746
757
|
return _AgxOpenPlxPyApi.ClickInputListener_getScene(self)
|
747
758
|
|
759
|
+
def hasQueue(self, input_queue):
|
760
|
+
r"""
|
761
|
+
hasQueue(ClickInputListener self, std::shared_ptr< agxopenplx::InputSignalQueue > const & input_queue) -> bool
|
762
|
+
|
763
|
+
Parameters
|
764
|
+
----------
|
765
|
+
input_queue: std::shared_ptr< agxopenplx::InputSignalQueue > const &
|
766
|
+
|
767
|
+
"""
|
768
|
+
return _AgxOpenPlxPyApi.ClickInputListener_hasQueue(self, input_queue)
|
769
|
+
|
748
770
|
# Register ClickInputListener in _AgxOpenPlxPyApi:
|
749
771
|
_AgxOpenPlxPyApi.ClickInputListener_swigregister(ClickInputListener)
|
750
772
|
|
@@ -1035,7 +1057,7 @@ class OpenPlxMaterialManager(object):
|
|
1035
1057
|
|
1036
1058
|
def registerAndMergeScene(self, scene):
|
1037
1059
|
r"""
|
1038
|
-
registerAndMergeScene(OpenPlxMaterialManager self,
|
1060
|
+
registerAndMergeScene(OpenPlxMaterialManager self, Physics3D_System scene) -> bool
|
1039
1061
|
|
1040
1062
|
Parameters
|
1041
1063
|
----------
|
openplx/migrations.py
CHANGED
@@ -622,6 +622,18 @@ def migrations_for_0_15_1(documents):
|
|
622
622
|
return [ReplaceOp(op) for op in ops]
|
623
623
|
|
624
624
|
|
625
|
+
@migration("0.15.22", "0.16.0")
|
626
|
+
def migrations_for_0_15_22(documents):
|
627
|
+
ops = []
|
628
|
+
ops.extend(
|
629
|
+
RefactorToolkit.renameAttribute(
|
630
|
+
documents, "DriveTrain.AutomaticClutch.engagement_time", "engagement_duration"
|
631
|
+
)
|
632
|
+
)
|
633
|
+
|
634
|
+
return [ReplaceOp(op) for op in ops]
|
635
|
+
|
636
|
+
|
625
637
|
def split_version(v):
|
626
638
|
match = re.match(r"^(\d+)\.(\d+)\.(\d+)", v)
|
627
639
|
|
openplx/openplx_application.py
CHANGED
@@ -50,6 +50,12 @@ class OpenPlxApplication:
|
|
50
50
|
metavar="<bundle_path>",
|
51
51
|
default=bundle_path(),
|
52
52
|
)
|
53
|
+
parser.add_argument(
|
54
|
+
"--add-bundle-path",
|
55
|
+
help="list of path to bundle dependencies if any. Appends path to the environment variable OPENPLX_BUNDLE_PATH.",
|
56
|
+
metavar="<bundle_path>",
|
57
|
+
default="",
|
58
|
+
)
|
53
59
|
parser.add_argument("--click-addr", type=str, help="Address for Click to listen on, e.g. ipc:///tmp/click.ipc", default="tcp://*:5555")
|
54
60
|
parser.add_argument("--debug-render-frames", action="store_true", help="enable rendering of frames for mate connectors and rigid bodies.")
|
55
61
|
parser.add_argument("--enable-click", help="Enable sending and receiving signals as Click Messages", action="store_true", default=SUPPRESS)
|
@@ -70,11 +76,15 @@ class OpenPlxApplication:
|
|
70
76
|
if extra_args:
|
71
77
|
print(f"Passing these args to AGX: {(' ').join(extra_args)}")
|
72
78
|
|
79
|
+
# pylint: disable=R0801
|
73
80
|
opt_params = OptParams()
|
74
81
|
if args.modelname is not None:
|
75
82
|
opt_params = opt_params.with_model_name(args.modelname)
|
76
83
|
|
77
|
-
|
84
|
+
adjusted_bundle_path = args.bundle_path
|
85
|
+
if args.add_bundle_path != "":
|
86
|
+
adjusted_bundle_path += ";" if os.name == "nt" else ":" + args.add_bundle_path
|
87
|
+
result = load_from_file(simulation(), args.openplxfile if openplxfile is None else openplxfile, adjusted_bundle_path, opt_params)
|
78
88
|
|
79
89
|
assembly = result.assembly()
|
80
90
|
openplx_scene = result.scene()
|
openplx/openplx_validate.py
CHANGED
@@ -18,6 +18,9 @@ def parse_args():
|
|
18
18
|
parser.add_argument("openplxfile", help="the .openplx file to load")
|
19
19
|
parser.add_argument("--bundle-path", help="list of path to bundle dependencies if any. Overrides environment variable OPENPLX_BUNDLE_PATH.",
|
20
20
|
metavar="<bundle_path>", default=bundle_path())
|
21
|
+
parser.add_argument("--add-bundle-path",
|
22
|
+
help="list of path to bundle dependencies if any. Appends path to the environment variable OPENPLX_BUNDLE_PATH.",
|
23
|
+
metavar="<bundle_path>", default="")
|
21
24
|
parser.add_argument("--debug-render-frames", action='store_true', help="enable rendering of frames for mate connectors and rigid bodies.")
|
22
25
|
parser.add_argument("--loglevel", choices=["trace", "debug", "info", "warn", "error", "critical", "off"], help="Set log level", default="warn")
|
23
26
|
parser.add_argument("--modelname", help="The model to load (defaults to last model in file)", metavar="<name>", default=None)
|
@@ -35,11 +38,15 @@ def validate():
|
|
35
38
|
_ = agx.init()
|
36
39
|
simulation = agxSDK.Simulation()
|
37
40
|
|
41
|
+
# pylint: disable=R0801
|
38
42
|
opt_params = OptParams()
|
39
43
|
if args.modelname is not None:
|
40
44
|
opt_params = opt_params.with_model_name(args.modelname)
|
41
45
|
|
42
|
-
|
46
|
+
adjusted_bundle_path = args.bundle_path
|
47
|
+
if args.add_bundle_path != "":
|
48
|
+
adjusted_bundle_path += ";" if os.name == "nt" else ":" + args.add_bundle_path
|
49
|
+
result = load_from_file(simulation, args.openplxfile, adjusted_bundle_path, opt_params)
|
43
50
|
|
44
51
|
if len(result.errors()) == 0:
|
45
52
|
sys.exit(0)
|
@@ -1,41 +0,0 @@
|
|
1
|
-
openplx/__init__.py,sha256=P5ifPtEbwzGAa2i-PgFPRRUpb3V4QqiLJnuIONoIw6E,2457
|
2
|
-
openplx/_AgxOpenPlxPyApi.cp39-win_amd64.pyd,sha256=QwJntvl0nB2CMbANLMq4liW4dNhxRXgyTWnKDIl7sJ0,6243328
|
3
|
-
openplx/_CorePythonSwig.cp39-win_amd64.pyd,sha256=wjStM_W7jhkQfmCcoWd19bHZCWdiUoYxeFGmEJ2a7ms,2554880
|
4
|
-
openplx/_DriveTrainSwig.cp39-win_amd64.pyd,sha256=rdaqPpuODMsTkrRc_b-ACTTmuWXMawwSGh4xGRxuhSA,2972672
|
5
|
-
openplx/_MathSwig.cp39-win_amd64.pyd,sha256=W5byHRamhR29V5EniL845DSbUPIqTarOmIeTo3F1G-M,1315840
|
6
|
-
openplx/_Physics1DSwig.cp39-win_amd64.pyd,sha256=5wcGgpKKQD4enyaQf1Q_NUi5NGXqnu-IwDMXsHuwo9M,1865216
|
7
|
-
openplx/_Physics3DSwig.cp39-win_amd64.pyd,sha256=fOujUFQFJ0aKQ4oUY7Y26ic_tVWknu1gOGqHNKvoYfg,11953664
|
8
|
-
openplx/_PhysicsSwig.cp39-win_amd64.pyd,sha256=WxgXMhj7zf53Wpcz-VHn7ZH838JdDpzQIUVrHR8zr-A,10651136
|
9
|
-
openplx/_RoboticsSwig.cp39-win_amd64.pyd,sha256=nmYLOnn4K5P_xbO0F8fDuUvXx0U_RSvs_7I9nYeuEK0,4954624
|
10
|
-
openplx/_SimulationSwig.cp39-win_amd64.pyd,sha256=CogbLawIqPh3E4Mom4eTDvJWhTs2SfleC2MhgdBHfv8,644096
|
11
|
-
openplx/_TerrainSwig.cp39-win_amd64.pyd,sha256=q6KC9nUwWzE1jFtGiXONF6DSlgN4iZJmb3Fgu5lX1TE,1543680
|
12
|
-
openplx/_UrdfSwig.cp39-win_amd64.pyd,sha256=PzmVFkvvN15ZNQDf-8WGKSNaesOQKRT3UO5Kh9-ONK4,703488
|
13
|
-
openplx/_VehiclesSwig.cp39-win_amd64.pyd,sha256=6-nsgn5L9oE_AC2AeP2WxF7e3B0ial1PAQXT3BgNQB8,3137024
|
14
|
-
openplx/_VisualsSwig.cp39-win_amd64.pyd,sha256=JNVbdyY3lXl2MLQte2WyUKMdIT1IvZyy2DZIZjTlL_o,1284608
|
15
|
-
openplx/agxtoopenplx.py,sha256=LCt_tm9tffb0aA5ZsVAqvD1w276NKuq2MQ9vOZS1V1I,2477
|
16
|
-
openplx/anytoopenplx.py,sha256=ckINLkHMyraBaIhdJfVXcaeVNh6m7BnyEx9or3j7mxo,2318
|
17
|
-
openplx/api.py,sha256=klTUETSVA_SMTpIyyxBddF_B9lLHnU3l0AfrhGjqAVE,50450
|
18
|
-
openplx/Core.py,sha256=AzRUMl2DKL5Vcl9fP1EAGGMcuS5JlR3WfFpNdFYy6ts,278169
|
19
|
-
openplx/DriveTrain.py,sha256=MM8vg_qBx-KxpY6fnORhwV7QSeL10A1ZLhaWxPriRrI,453290
|
20
|
-
openplx/Math.py,sha256=hi3zI0KfxZNqy8u78nEm55bZGo0ZoWgqA8piOE2e2B8,193933
|
21
|
-
openplx/migrate.py,sha256=VsY2T6DC1r1PeayLdU7YgWIl6KW8GwUtXUPLgTRNx5k,8430
|
22
|
-
openplx/migration_hint.py,sha256=JiD5f7DzCVNoN-N_VweRNIKnSmCRqxhRof4QiR-1rEs,617
|
23
|
-
openplx/migrations.py,sha256=QDaVq0LLYt3ZSLLOFEriDsiXzOzkzwdgKlzDL6q5hsg,21269
|
24
|
-
openplx/openplx_application.py,sha256=6pMJfkPSa8-opqcOta-zrYdH1CnY6g1p-vCWDulLzY8,6808
|
25
|
-
openplx/openplx_serialize.py,sha256=0_hKFnBP8IQ4f22vW6RLHRRNxUZVSu21Lcrgy6lbqPc,1491
|
26
|
-
openplx/openplx_validate.py,sha256=rWUWCu45khVwzOUrrxOaOA29lqpyP8F5w20H5rw20Zc,2168
|
27
|
-
openplx/openplx_view.py,sha256=Rmg2uWhaDQ4WMEsKlDTcMBSoPIFDNXXZzN7ytFU9ZgQ,365
|
28
|
-
openplx/Physics.py,sha256=jDXZNGyPRd_2SDr8gWGF7dW-hDETubxdGBjNZXQrHIw,2113818
|
29
|
-
openplx/Physics1D.py,sha256=ExLNyE-i-DF2oxhoDyz9g3hP-34R0hzTiJeLWLBc6IQ,279779
|
30
|
-
openplx/Physics3D.py,sha256=yWV6jv6rOEs8L9Y6y_4Z_Hnm-Nk5kUsrkIgL7hfhC_g,2320735
|
31
|
-
openplx/Robotics.py,sha256=_TK8-cAZlPrZMZ0qTofHDz7lU_5cLMnUnmuRInXz-xo,769116
|
32
|
-
openplx/Simulation.py,sha256=xab3Q6-d90xNuPk--zjTB-XO8BNEv48equ_Ms48PLf8,47374
|
33
|
-
openplx/Terrain.py,sha256=RhhE6CboZ88n5CbHlyhLzG78vwpjY1sViGgpg7HHuyU,188775
|
34
|
-
openplx/Urdf.py,sha256=Z9Q5dKrSPIEgXS9JE7cYKl4zgkhbrdlmV3vBcORE0KY,24434
|
35
|
-
openplx/Vehicles.py,sha256=ljYCuwGfA-qqQywHdcI530mIzqIq1DNgb1_d2Jmo5_4,458867
|
36
|
-
openplx/versionaction.py,sha256=u0rZ34x1-KtLHM93OBN2BsFAxEAv6HDLadvu14en5io,294
|
37
|
-
openplx/Visuals.py,sha256=xTDmvGIxyJPWSgH20CWwQRPDHwOFp48nBl8fo8sN0JY,190953
|
38
|
-
agx_openplx-0.15.22.dist-info/entry_points.txt,sha256=IyHBVBNuH_4ZhfWnB1ZVXYtpKG_QT7dwGIUMLWdyhrc,263
|
39
|
-
agx_openplx-0.15.22.dist-info/METADATA,sha256=5HI0hUpmwlbuQyRtsc6Wjt9qE_r7HEqMLr69RxOu8zg,2369
|
40
|
-
agx_openplx-0.15.22.dist-info/WHEEL,sha256=T7hzPzFWHJiWCVylm2UCj5payilA7ulisMC0IiBEe3o,96
|
41
|
-
agx_openplx-0.15.22.dist-info/RECORD,,
|
File without changes
|
File without changes
|