agx-openplx 0.15.22__cp39-cp39-macosx_12_0_arm64.whl → 0.16.1__cp39-cp39-macosx_12_0_arm64.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.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
openplx/__init__.py CHANGED
@@ -10,7 +10,7 @@ import importlib.util
10
10
  if importlib.util.find_spec("agx_env"):
11
11
  import agx_env # pylint: disable=unused-import
12
12
  __AGXVERSION__ = "2.39.1.0"
13
- __version__ = "0.15.22"
13
+ __version__ = "0.16.1"
14
14
 
15
15
  try:
16
16
  import agx
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, System scene) -> bool
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
 
@@ -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
- result = load_from_file(simulation(), args.openplxfile if openplxfile is None else openplxfile, args.bundle_path, opt_params)
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()
@@ -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
- result = load_from_file(simulation, args.openplxfile, args.bundle_path, opt_params)
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/Core.py,sha256=jRoxPSkW3q82gqBfdmflahACINXUjZXYvCNP9W8DJ9c,270378
2
- openplx/DriveTrain.py,sha256=jjEryBRYvVUAPpQBZUkDsrsJ_n54oqF9tCQk84W726E,444318
3
- openplx/Math.py,sha256=kTaoNjhQSmvVHmo1WV3z9GdjNvuzPSXFW6kd-UQpJAQ,188561
4
- openplx/Physics.py,sha256=89skXzRa5bgVe5v6Yqqr337VVTp-1AgB7JBLEK0Wy_Y,2073957
5
- openplx/Physics1D.py,sha256=FulmP3MnFmVtBnX_N6890ngvz7m_v2GdrpVHunLPIkY,274245
6
- openplx/Physics3D.py,sha256=dEB9uQvIBsxGssit5necVbTrP6Ew28rCrK6s411DM54,2280953
7
- openplx/Robotics.py,sha256=Q51AAeGWm4Niuiu6d1MRreXyJKZdGbnEjBV6LM-NOUk,754194
8
- openplx/Simulation.py,sha256=mIuypCjz1O6c9_x4O_Ro6GLhOiXRzNlZlVjdgoGYq3U,46318
9
- openplx/Terrain.py,sha256=9CxizkDVf9UtPIyBumenXzfbxAL6yn2G_d0_ZWbv-JY,184884
10
- openplx/Urdf.py,sha256=JOryVyaFIROiyJ9V9OMrZAS3MoUwVmJW_2TTPSsRlH4,23780
11
- openplx/Vehicles.py,sha256=QmtdIawHlYcIRtJH4LotXSQNs06rCpxPl6e5gklUvWg,450074
12
- openplx/Visuals.py,sha256=lYBFzzPZvMeWaKzXQgzikmO-fuDshcgf5uCJJQ-WKTM,187052
13
- openplx/_AgxOpenPlxPyApi.cpython-39-darwin.so,sha256=3-9zh6839UuMjyo2BOJtVZo2RZzJ-b5kQEeCQeT64jU,11996098
14
- openplx/_CorePythonSwig.cpython-39-darwin.so,sha256=r2v7PfAVUGCWLUxDzu5ap_sTnQh7fEbnu_JEcvjfzxA,3239953
15
- openplx/_DriveTrainSwig.cpython-39-darwin.so,sha256=Ztko-mm2__Ro29lL_kyAhsnJOQS9V-RPziN01B4BRdY,6772193
16
- openplx/_MathSwig.cpython-39-darwin.so,sha256=mEge8xEMrDnntCNnxx5F2k1RXdeCMSvrHSa95qQezo0,2116827
17
- openplx/_Physics1DSwig.cpython-39-darwin.so,sha256=5VfpUKmoyxiIaTAtP9-kb8Va4WIqoAa5Dgb1yrYy2NE,3800000
18
- openplx/_Physics3DSwig.cpython-39-darwin.so,sha256=qdH_z866NsjVAJDYdeJ8wmlVNc4c4rM54uIhzy_LFOA,16017680
19
- openplx/_PhysicsSwig.cpython-39-darwin.so,sha256=UiBXFIPgZi2unhV7Y7sNZBCL-M7jJh-HtgG3gve5FG8,13564942
20
- openplx/_RoboticsSwig.cpython-39-darwin.so,sha256=XMOdn6Jfm0aEHwWtkOWULsaeX9OAyOQRiTcA9lxP1cg,9195263
21
- openplx/_SimulationSwig.cpython-39-darwin.so,sha256=edl16JyYiRMcbaOGXWgzOvHnD3nMZ-cVN7sh0JtLDsI,2387745
22
- openplx/_TerrainSwig.cpython-39-darwin.so,sha256=W7R3Bl_zsqK3VazPbLc36AGexhGl2HMsFc-aLJ1Td5c,4860718
23
- openplx/_UrdfSwig.cpython-39-darwin.so,sha256=8XXZLWxPMsTShafr4SC419tOPgwkdhtMxZSlCB77WfM,3880795
24
- openplx/_VehiclesSwig.cpython-39-darwin.so,sha256=OkFMoftBAKSusyaN4h78U9eFvK-gzr00W0m91XmxQD8,6619887
25
- openplx/_VisualsSwig.cpython-39-darwin.so,sha256=-KroxLfqz9NXHzTb4s2YbauLNjJpDwRlpQswRpMAWnk,2260542
26
- openplx/__init__.py,sha256=J68ZFREquVUuEAgACFeJ5h06kCCoUblQ6BTkmKmsAMs,2402
27
- openplx/agxtoopenplx.py,sha256=gxQgZ_Pgda_5scCCBBhyu8D-jjL1yxlE7bZLtxigKCs,2422
28
- openplx/anytoopenplx.py,sha256=qAZVnelFOVAQIpCQt3y9LlfCBHQcNmxUWXFbCZuNQUc,2274
29
- openplx/api.py,sha256=NL6rihBZhG6C_gH2DxMDYJNexW4z_AoW67hsxFKbo7Q,49097
30
- openplx/migrate.py,sha256=wBd1jVqSRUdMSIzL2k25GjorB0xru6VyBf0hZ__RLjk,8240
31
- openplx/migration_hint.py,sha256=2Xs2OB_HikmiynDAk4xHKhmU5N4pqOnPFPpeIWhK37Y,603
32
- openplx/migrations.py,sha256=4gZIB-pV3fdUoMlOgjQVR9Qk78LUAdM4aBC3wRaIJzw,20566
33
- openplx/openplx_application.py,sha256=vrPhYcwDRWN86e7tPMg5Kq_d0N5KKvWHOu5Hjy8QzQM,6670
34
- openplx/openplx_serialize.py,sha256=Uul2-6_BwyJzg26JdgAz2MjR37mQJ6kWKjPbmE-sJzk,1456
35
- openplx/openplx_validate.py,sha256=_u-w0JVsf53LZ48C_wdONuu8ptIuV1nGDH-sDdfALiw,2111
36
- openplx/openplx_view.py,sha256=GCFQSl4W-dPRWL0qLQmfJ69OEwgTMKL05J62YyKSb64,351
37
- openplx/versionaction.py,sha256=Obj_q69dn5GnFMZs2as87ZScPMLaLAduPppmXUzLB6I,283
38
- agx_openplx-0.15.22.dist-info/METADATA,sha256=DE_LSfOohYHUfZ5yAlwP_wzU_qYcJhlQhMwkypWws5I,2318
39
- agx_openplx-0.15.22.dist-info/WHEEL,sha256=O5AT1Qb1jPpISLjIwxiRxhUaN9TX1BFXuc9iRVvoPmk,104
40
- agx_openplx-0.15.22.dist-info/entry_points.txt,sha256=IyHBVBNuH_4ZhfWnB1ZVXYtpKG_QT7dwGIUMLWdyhrc,263
41
- agx_openplx-0.15.22.dist-info/RECORD,,