agx-openplx 0.15.0__cp39-cp39-macosx_11_0_x86_64.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. agx_openplx-0.15.0.dist-info/METADATA +231 -0
  2. agx_openplx-0.15.0.dist-info/RECORD +41 -0
  3. agx_openplx-0.15.0.dist-info/WHEEL +4 -0
  4. agx_openplx-0.15.0.dist-info/entry_points.txt +8 -0
  5. openplx/Core.py +7781 -0
  6. openplx/DriveTrain.py +8574 -0
  7. openplx/Math.py +5372 -0
  8. openplx/Physics.py +36195 -0
  9. openplx/Physics1D.py +6732 -0
  10. openplx/Physics3D.py +42524 -0
  11. openplx/Robotics.py +15762 -0
  12. openplx/Simulation.py +1056 -0
  13. openplx/Terrain.py +3891 -0
  14. openplx/Urdf.py +654 -0
  15. openplx/Vehicles.py +8793 -0
  16. openplx/Visuals.py +3901 -0
  17. openplx/_AgxOpenPlxPyApi.cpython-39-darwin.so +0 -0
  18. openplx/_CorePythonSwig.cpython-39-darwin.so +0 -0
  19. openplx/_DriveTrainSwig.cpython-39-darwin.so +0 -0
  20. openplx/_MathSwig.cpython-39-darwin.so +0 -0
  21. openplx/_Physics1DSwig.cpython-39-darwin.so +0 -0
  22. openplx/_Physics3DSwig.cpython-39-darwin.so +0 -0
  23. openplx/_PhysicsSwig.cpython-39-darwin.so +0 -0
  24. openplx/_RoboticsSwig.cpython-39-darwin.so +0 -0
  25. openplx/_SimulationSwig.cpython-39-darwin.so +0 -0
  26. openplx/_TerrainSwig.cpython-39-darwin.so +0 -0
  27. openplx/_UrdfSwig.cpython-39-darwin.so +0 -0
  28. openplx/_VehiclesSwig.cpython-39-darwin.so +0 -0
  29. openplx/_VisualsSwig.cpython-39-darwin.so +0 -0
  30. openplx/__init__.py +51 -0
  31. openplx/agxtoopenplx.py +55 -0
  32. openplx/anytoopenplx.py +44 -0
  33. openplx/api.py +1337 -0
  34. openplx/migrate.py +136 -0
  35. openplx/migration_hint.py +14 -0
  36. openplx/migrations.py +521 -0
  37. openplx/openplx_application.py +133 -0
  38. openplx/openplx_serialize.py +35 -0
  39. openplx/openplx_validate.py +57 -0
  40. openplx/openplx_view.py +14 -0
  41. openplx/versionaction.py +11 -0
openplx/api.py ADDED
@@ -0,0 +1,1337 @@
1
+ # This file was automatically generated by SWIG (http://www.swig.org).
2
+ # Version 4.0.2
3
+ #
4
+ # Do not make changes to this file unless you know what you are doing--modify
5
+ # the SWIG interface file instead.
6
+
7
+ from sys import version_info as _swig_python_version_info
8
+ if _swig_python_version_info < (2, 7, 0):
9
+ raise RuntimeError("Python 2.7 or later required")
10
+
11
+
12
+
13
+ def _add_paths():
14
+ import os
15
+ result = []
16
+
17
+ if hasattr(os, 'add_dll_directory'):
18
+ for path in os.environ.get('PATH', '').split(';'):
19
+ if os.path.isabs(path) and os.path.exists(path):
20
+ result.append(os.add_dll_directory(path))
21
+
22
+ return result
23
+
24
+ _extra_paths = _add_paths()
25
+
26
+ if __package__ or '.' in __name__:
27
+ from . import _AgxOpenPlxPyApi
28
+ else:
29
+ import _AgxOpenPlxPyApi
30
+
31
+ for path in _extra_paths:
32
+ path.close()
33
+
34
+ del _extra_paths
35
+ del _add_paths
36
+
37
+
38
+
39
+ try:
40
+ import builtins as __builtin__
41
+ except ImportError:
42
+ import __builtin__
43
+
44
+ def _swig_repr(self):
45
+ try:
46
+ strthis = "proxy of " + self.this.__repr__()
47
+ except __builtin__.Exception:
48
+ strthis = ""
49
+ return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
50
+
51
+
52
+ def _swig_setattr_nondynamic_instance_variable(set):
53
+ def set_instance_attr(self, name, value):
54
+ if name == "thisown":
55
+ self.this.own(value)
56
+ elif name == "this":
57
+ set(self, name, value)
58
+ elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
59
+ set(self, name, value)
60
+ else:
61
+ raise AttributeError("You cannot add instance attributes to %s" % self)
62
+ return set_instance_attr
63
+
64
+
65
+ def _swig_setattr_nondynamic_class_variable(set):
66
+ def set_class_attr(cls, name, value):
67
+ if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
68
+ set(cls, name, value)
69
+ else:
70
+ raise AttributeError("You cannot add class attributes to %s" % cls)
71
+ return set_class_attr
72
+
73
+
74
+ def _swig_add_metaclass(metaclass):
75
+ """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
76
+ def wrapper(cls):
77
+ return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
78
+ return wrapper
79
+
80
+
81
+ class _SwigNonDynamicMeta(type):
82
+ """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
83
+ __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
84
+
85
+
86
+ import weakref
87
+
88
+ SHARED_PTR_DISOWN = _AgxOpenPlxPyApi.SHARED_PTR_DISOWN
89
+ class SwigPyIterator(object):
90
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
91
+
92
+ def __init__(self, *args, **kwargs):
93
+ raise AttributeError("No constructor defined - class is abstract")
94
+ __repr__ = _swig_repr
95
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_SwigPyIterator
96
+
97
+ def value(self):
98
+ return _AgxOpenPlxPyApi.SwigPyIterator_value(self)
99
+
100
+ def incr(self, n=1):
101
+ return _AgxOpenPlxPyApi.SwigPyIterator_incr(self, n)
102
+
103
+ def decr(self, n=1):
104
+ return _AgxOpenPlxPyApi.SwigPyIterator_decr(self, n)
105
+
106
+ def distance(self, x):
107
+ return _AgxOpenPlxPyApi.SwigPyIterator_distance(self, x)
108
+
109
+ def equal(self, x):
110
+ return _AgxOpenPlxPyApi.SwigPyIterator_equal(self, x)
111
+
112
+ def copy(self):
113
+ return _AgxOpenPlxPyApi.SwigPyIterator_copy(self)
114
+
115
+ def next(self):
116
+ return _AgxOpenPlxPyApi.SwigPyIterator_next(self)
117
+
118
+ def __next__(self):
119
+ return _AgxOpenPlxPyApi.SwigPyIterator___next__(self)
120
+
121
+ def previous(self):
122
+ return _AgxOpenPlxPyApi.SwigPyIterator_previous(self)
123
+
124
+ def advance(self, n):
125
+ return _AgxOpenPlxPyApi.SwigPyIterator_advance(self, n)
126
+
127
+ def __eq__(self, x):
128
+ return _AgxOpenPlxPyApi.SwigPyIterator___eq__(self, x)
129
+
130
+ def __ne__(self, x):
131
+ return _AgxOpenPlxPyApi.SwigPyIterator___ne__(self, x)
132
+
133
+ def __iadd__(self, n):
134
+ return _AgxOpenPlxPyApi.SwigPyIterator___iadd__(self, n)
135
+
136
+ def __isub__(self, n):
137
+ return _AgxOpenPlxPyApi.SwigPyIterator___isub__(self, n)
138
+
139
+ def __add__(self, n):
140
+ return _AgxOpenPlxPyApi.SwigPyIterator___add__(self, n)
141
+
142
+ def __sub__(self, *args):
143
+ return _AgxOpenPlxPyApi.SwigPyIterator___sub__(self, *args)
144
+ def __iter__(self):
145
+ return self
146
+
147
+ # Register SwigPyIterator in _AgxOpenPlxPyApi:
148
+ _AgxOpenPlxPyApi.SwigPyIterator_swigregister(SwigPyIterator)
149
+
150
+ import openplx.Core
151
+ import openplx.Math
152
+ import openplx.Physics
153
+ import openplx.Physics1D
154
+ import openplx.Physics3D
155
+ import openplx.DriveTrain
156
+ import openplx.Robotics
157
+ import openplx.Simulation
158
+ import agxSDK
159
+ import agx
160
+ import agxData
161
+ import agxStream
162
+ import agxCollide
163
+ import agxRender
164
+ class OpenPlxToAgxMapper(object):
165
+ r"""Proxy of C++ agxopenplx::OpenPlxToAgxMapper class."""
166
+
167
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
168
+ __repr__ = _swig_repr
169
+
170
+ def __init__(self, *args):
171
+ r"""
172
+ __init__(OpenPlxToAgxMapper self, Simulation simulation, std::string const & source_id, std::shared_ptr< agxopenplx::AgxCache > agx_cache=0, std::shared_ptr< agxopenplx::OpenPlxMaterialManager > material_manager=0, std::shared_ptr< openplx::ErrorReporter > error_reporter=std::make_shared< openplx::ErrorReporter >()) -> OpenPlxToAgxMapper
173
+
174
+ Parameters
175
+ ----------
176
+ simulation: agxSDK::Simulation *
177
+ source_id: std::string const &
178
+ agx_cache: std::shared_ptr< agxopenplx::AgxCache >
179
+ material_manager: std::shared_ptr< agxopenplx::OpenPlxMaterialManager >
180
+ error_reporter: std::shared_ptr< openplx::ErrorReporter >
181
+
182
+ """
183
+ _AgxOpenPlxPyApi.OpenPlxToAgxMapper_swiginit(self, _AgxOpenPlxPyApi.new_OpenPlxToAgxMapper(*args))
184
+
185
+ def mapObject(self, object):
186
+ r"""
187
+ mapObject(OpenPlxToAgxMapper self, std::shared_ptr< openplx::Core::Object > object) -> AssemblyRef
188
+
189
+ Parameters
190
+ ----------
191
+ object: std::shared_ptr< openplx::Core::Object >
192
+
193
+ """
194
+ return _AgxOpenPlxPyApi.OpenPlxToAgxMapper_mapObject(self, object)
195
+
196
+ def getErrorReporter(self):
197
+ r"""getErrorReporter(OpenPlxToAgxMapper self) -> std::shared_ptr< openplx::ErrorReporter >"""
198
+ return _AgxOpenPlxPyApi.OpenPlxToAgxMapper_getErrorReporter(self)
199
+
200
+ def getPowerLine(self):
201
+ r"""getPowerLine(OpenPlxToAgxMapper self) -> agxPowerLine::PowerLineRef"""
202
+ return _AgxOpenPlxPyApi.OpenPlxToAgxMapper_getPowerLine(self)
203
+
204
+ def getSimulation(self):
205
+ r"""getSimulation(OpenPlxToAgxMapper self) -> Simulation"""
206
+ return _AgxOpenPlxPyApi.OpenPlxToAgxMapper_getSimulation(self)
207
+
208
+ def getAgxCache(self):
209
+ r"""getAgxCache(OpenPlxToAgxMapper self) -> std::shared_ptr< agxopenplx::AgxCache >"""
210
+ return _AgxOpenPlxPyApi.OpenPlxToAgxMapper_getAgxCache(self)
211
+
212
+ def lookupAgxRigidBody(self, rigid_body):
213
+ r"""
214
+ lookupAgxRigidBody(OpenPlxToAgxMapper self, std::shared_ptr< openplx::Physics3D::Bodies::RigidBody > const & rigid_body) -> RigidBodyRef
215
+
216
+ Parameters
217
+ ----------
218
+ rigid_body: std::shared_ptr< openplx::Physics3D::Bodies::RigidBody > const &
219
+
220
+ """
221
+ return _AgxOpenPlxPyApi.OpenPlxToAgxMapper_lookupAgxRigidBody(self, rigid_body)
222
+
223
+ def getAgxTerrainFor(self, b_terrain):
224
+ r"""
225
+ getAgxTerrainFor(OpenPlxToAgxMapper self, std::shared_ptr< openplx::Terrain::Terrain > const & b_terrain) -> agxTerrain::TerrainRef
226
+
227
+ Parameters
228
+ ----------
229
+ b_terrain: std::shared_ptr< openplx::Terrain::Terrain > const &
230
+
231
+ """
232
+ return _AgxOpenPlxPyApi.OpenPlxToAgxMapper_getAgxTerrainFor(self, b_terrain)
233
+
234
+ def getEventListeners(self):
235
+ r"""getEventListeners(OpenPlxToAgxMapper self) -> agx::Vector< agxSDK::EventListenerRef > const &"""
236
+ return _AgxOpenPlxPyApi.OpenPlxToAgxMapper_getEventListeners(self)
237
+
238
+ def getTracksMap(self):
239
+ r"""getTracksMap(OpenPlxToAgxMapper self) -> std::unordered_map< std::shared_ptr< openplx::Vehicles::Tracks::System >,agxVehicle::TrackRef > const &"""
240
+ return _AgxOpenPlxPyApi.OpenPlxToAgxMapper_getTracksMap(self)
241
+
242
+ @staticmethod
243
+ def mapGearBoxGear(gear_box, agx_gear_box, gear):
244
+ r"""
245
+ mapGearBoxGear(std::shared_ptr< openplx::DriveTrain::GearBox > const & gear_box, agxDriveTrain::GearBoxRef const & agx_gear_box, int gear) -> int
246
+
247
+ Parameters
248
+ ----------
249
+ gear_box: std::shared_ptr< openplx::DriveTrain::GearBox > const &
250
+ agx_gear_box: agxDriveTrain::GearBoxRef const &
251
+ gear: int
252
+
253
+ """
254
+ return _AgxOpenPlxPyApi.OpenPlxToAgxMapper_mapGearBoxGear(gear_box, agx_gear_box, gear)
255
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_OpenPlxToAgxMapper
256
+
257
+ # Register OpenPlxToAgxMapper in _AgxOpenPlxPyApi:
258
+ _AgxOpenPlxPyApi.OpenPlxToAgxMapper_swigregister(OpenPlxToAgxMapper)
259
+
260
+ def OpenPlxToAgxMapper_mapGearBoxGear(gear_box, agx_gear_box, gear):
261
+ r"""
262
+ OpenPlxToAgxMapper_mapGearBoxGear(std::shared_ptr< openplx::DriveTrain::GearBox > const & gear_box, agxDriveTrain::GearBoxRef const & agx_gear_box, int gear) -> int
263
+
264
+ Parameters
265
+ ----------
266
+ gear_box: std::shared_ptr< openplx::DriveTrain::GearBox > const &
267
+ agx_gear_box: agxDriveTrain::GearBoxRef const &
268
+ gear: int
269
+
270
+ """
271
+ return _AgxOpenPlxPyApi.OpenPlxToAgxMapper_mapGearBoxGear(gear_box, agx_gear_box, gear)
272
+
273
+ AgxToOpenPlxTrimeshMode_OBJ_EXPORT = _AgxOpenPlxPyApi.AgxToOpenPlxTrimeshMode_OBJ_EXPORT
274
+
275
+ AgxToOpenPlxTrimeshMode_INLINE = _AgxOpenPlxPyApi.AgxToOpenPlxTrimeshMode_INLINE
276
+
277
+ AgxToOpenPlxTrimeshMode_CACHED = _AgxOpenPlxPyApi.AgxToOpenPlxTrimeshMode_CACHED
278
+
279
+ AgxToOpenPlxMaterialNamingRule_OPENPLX_NAME = _AgxOpenPlxPyApi.AgxToOpenPlxMaterialNamingRule_OPENPLX_NAME
280
+
281
+ AgxToOpenPlxMaterialNamingRule_AGX_NAME = _AgxOpenPlxPyApi.AgxToOpenPlxMaterialNamingRule_AGX_NAME
282
+
283
+ AgxToOpenPlxMaterialNamingRule_AGX_UUID = _AgxOpenPlxPyApi.AgxToOpenPlxMaterialNamingRule_AGX_UUID
284
+
285
+ class EnsureUniqueId(object):
286
+ r"""Proxy of C++ agxopenplx::EnsureUniqueId class."""
287
+
288
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
289
+ __repr__ = _swig_repr
290
+
291
+ def ensureUniqueId(self, name, uuid, used_names):
292
+ r"""
293
+ ensureUniqueId(EnsureUniqueId self, std::string const & name, Uuid uuid, std::unordered_set< std::string > & used_names) -> std::string
294
+
295
+ Parameters
296
+ ----------
297
+ name: std::string const &
298
+ uuid: agx::Uuid const &
299
+ used_names: std::unordered_set< std::string > &
300
+
301
+ """
302
+ return _AgxOpenPlxPyApi.EnsureUniqueId_ensureUniqueId(self, name, uuid, used_names)
303
+
304
+ def lookupId(self, x_uuid):
305
+ r"""
306
+ lookupId(EnsureUniqueId self, Uuid x_uuid) -> std::string
307
+
308
+ Parameters
309
+ ----------
310
+ x_uuid: agx::Uuid const &
311
+
312
+ """
313
+ return _AgxOpenPlxPyApi.EnsureUniqueId_lookupId(self, x_uuid)
314
+
315
+ def clear(self):
316
+ r"""clear(EnsureUniqueId self)"""
317
+ return _AgxOpenPlxPyApi.EnsureUniqueId_clear(self)
318
+
319
+ def __init__(self):
320
+ r"""__init__(EnsureUniqueId self) -> EnsureUniqueId"""
321
+ _AgxOpenPlxPyApi.EnsureUniqueId_swiginit(self, _AgxOpenPlxPyApi.new_EnsureUniqueId())
322
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_EnsureUniqueId
323
+
324
+ # Register EnsureUniqueId in _AgxOpenPlxPyApi:
325
+ _AgxOpenPlxPyApi.EnsureUniqueId_swigregister(EnsureUniqueId)
326
+
327
+ class AgxToOpenPlxMapper(object):
328
+ r"""Proxy of C++ agxopenplx::AgxToOpenPlxMapper class."""
329
+
330
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
331
+ __repr__ = _swig_repr
332
+
333
+ def __init__(self, *args):
334
+ r"""
335
+ __init__(AgxToOpenPlxMapper self, Simulation simulation, agxopenplx::AgxToOpenPlxTrimeshMode trimesh_mode, uint32_t precision=6, bool discard_rigid_body_positions=False, bool regenerate_shape_uuids=False, agxopenplx::AgxToOpenPlxMaterialNamingRule material_naming_rule=AGX_NAME) -> AgxToOpenPlxMapper
336
+
337
+ Parameters
338
+ ----------
339
+ simulation: agxSDK::Simulation *
340
+ trimesh_mode: enum agxopenplx::AgxToOpenPlxTrimeshMode
341
+ precision: uint32_t
342
+ discard_rigid_body_positions: bool
343
+ regenerate_shape_uuids: bool
344
+ material_naming_rule: enum agxopenplx::AgxToOpenPlxMaterialNamingRule
345
+
346
+ __init__(AgxToOpenPlxMapper self, std::string const & export_folder, bool obj_relative_path, uint32_t precision=6, bool discard_rigid_body_positions=False, bool regenerate_shape_uuids=False) -> AgxToOpenPlxMapper
347
+
348
+ Parameters
349
+ ----------
350
+ export_folder: std::string const &
351
+ obj_relative_path: bool
352
+ precision: uint32_t
353
+ discard_rigid_body_positions: bool
354
+ regenerate_shape_uuids: bool
355
+
356
+ """
357
+ _AgxOpenPlxPyApi.AgxToOpenPlxMapper_swiginit(self, _AgxOpenPlxPyApi.new_AgxToOpenPlxMapper(*args))
358
+
359
+ def nameOrUuid(self, name, uuid):
360
+ r"""
361
+ nameOrUuid(AgxToOpenPlxMapper self, agx::Name const & name, Uuid uuid) -> std::string
362
+
363
+ Parameters
364
+ ----------
365
+ name: agx::Name const &
366
+ uuid: agx::Uuid const &
367
+
368
+ """
369
+ return _AgxOpenPlxPyApi.AgxToOpenPlxMapper_nameOrUuid(self, name, uuid)
370
+
371
+ def nameWithIndexOrUuid(self, name, index, uuid):
372
+ r"""
373
+ nameWithIndexOrUuid(AgxToOpenPlxMapper self, agx::Name const & name, size_t index, Uuid uuid) -> std::string
374
+
375
+ Parameters
376
+ ----------
377
+ name: agx::Name const &
378
+ index: size_t
379
+ uuid: agx::Uuid const &
380
+
381
+ """
382
+ return _AgxOpenPlxPyApi.AgxToOpenPlxMapper_nameWithIndexOrUuid(self, name, index, uuid)
383
+
384
+ def assemblyToDocument(self, assembly):
385
+ r"""
386
+ assemblyToDocument(AgxToOpenPlxMapper self, AssemblyRef assembly) -> openplx::DocPtr
387
+
388
+ Parameters
389
+ ----------
390
+ assembly: agxSDK::AssemblyRef const &
391
+
392
+ """
393
+ return _AgxOpenPlxPyApi.AgxToOpenPlxMapper_assemblyToDocument(self, assembly)
394
+
395
+ def assemblyToOpenPlx(self, assembly):
396
+ r"""
397
+ assemblyToOpenPlx(AgxToOpenPlxMapper self, AssemblyRef assembly) -> std::string
398
+
399
+ Parameters
400
+ ----------
401
+ assembly: agxSDK::AssemblyRef const &
402
+
403
+ """
404
+ return _AgxOpenPlxPyApi.AgxToOpenPlxMapper_assemblyToOpenPlx(self, assembly)
405
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_AgxToOpenPlxMapper
406
+
407
+ # Register AgxToOpenPlxMapper in _AgxOpenPlxPyApi:
408
+ _AgxOpenPlxPyApi.AgxToOpenPlxMapper_swigregister(AgxToOpenPlxMapper)
409
+
410
+ class Signals(object):
411
+ r"""Proxy of C++ agxopenplx::Signals class."""
412
+
413
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
414
+ __repr__ = _swig_repr
415
+
416
+ @staticmethod
417
+ def popInputSignals():
418
+ r"""popInputSignals() -> Physics_Signals_InputSignal_Vector"""
419
+ return _AgxOpenPlxPyApi.Signals_popInputSignals()
420
+
421
+ @staticmethod
422
+ def sendInputSignal(signal):
423
+ r"""
424
+ sendInputSignal(agxopenplx::InputSignalPtr signal) -> bool
425
+
426
+ Parameters
427
+ ----------
428
+ signal: agxopenplx::InputSignalPtr
429
+
430
+ """
431
+ return _AgxOpenPlxPyApi.Signals_sendInputSignal(signal)
432
+
433
+ @staticmethod
434
+ def getOutputSignals():
435
+ r"""getOutputSignals() -> Physics_Signals_OutputSignal_Vector"""
436
+ return _AgxOpenPlxPyApi.Signals_getOutputSignals()
437
+
438
+ @staticmethod
439
+ def sendOutputSignal(signal):
440
+ r"""
441
+ sendOutputSignal(agxopenplx::OutputSignalPtr signal) -> bool
442
+
443
+ Parameters
444
+ ----------
445
+ signal: agxopenplx::OutputSignalPtr
446
+
447
+ """
448
+ return _AgxOpenPlxPyApi.Signals_sendOutputSignal(signal)
449
+
450
+ @staticmethod
451
+ def clearOutputSignals():
452
+ r"""clearOutputSignals()"""
453
+ return _AgxOpenPlxPyApi.Signals_clearOutputSignals()
454
+
455
+ def __init__(self):
456
+ r"""__init__(Signals self) -> Signals"""
457
+ _AgxOpenPlxPyApi.Signals_swiginit(self, _AgxOpenPlxPyApi.new_Signals())
458
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_Signals
459
+
460
+ # Register Signals in _AgxOpenPlxPyApi:
461
+ _AgxOpenPlxPyApi.Signals_swigregister(Signals)
462
+
463
+ def Signals_popInputSignals():
464
+ r"""Signals_popInputSignals() -> Physics_Signals_InputSignal_Vector"""
465
+ return _AgxOpenPlxPyApi.Signals_popInputSignals()
466
+
467
+ def Signals_sendInputSignal(signal):
468
+ r"""
469
+ Signals_sendInputSignal(agxopenplx::InputSignalPtr signal) -> bool
470
+
471
+ Parameters
472
+ ----------
473
+ signal: agxopenplx::InputSignalPtr
474
+
475
+ """
476
+ return _AgxOpenPlxPyApi.Signals_sendInputSignal(signal)
477
+
478
+ def Signals_getOutputSignals():
479
+ r"""Signals_getOutputSignals() -> Physics_Signals_OutputSignal_Vector"""
480
+ return _AgxOpenPlxPyApi.Signals_getOutputSignals()
481
+
482
+ def Signals_sendOutputSignal(signal):
483
+ r"""
484
+ Signals_sendOutputSignal(agxopenplx::OutputSignalPtr signal) -> bool
485
+
486
+ Parameters
487
+ ----------
488
+ signal: agxopenplx::OutputSignalPtr
489
+
490
+ """
491
+ return _AgxOpenPlxPyApi.Signals_sendOutputSignal(signal)
492
+
493
+ def Signals_clearOutputSignals():
494
+ r"""Signals_clearOutputSignals()"""
495
+ return _AgxOpenPlxPyApi.Signals_clearOutputSignals()
496
+
497
+
498
+ def findAllOutputs(openplx_scene):
499
+ r"""
500
+ findAllOutputs(openplx::Core::ObjectPtr const & openplx_scene) -> Physics_Signals_Output_Vector
501
+
502
+ Parameters
503
+ ----------
504
+ openplx_scene: openplx::Core::ObjectPtr const &
505
+
506
+ """
507
+ return _AgxOpenPlxPyApi.findAllOutputs(openplx_scene)
508
+ class InputSignalListener(agxSDK.StepEventListener):
509
+ r"""Proxy of C++ agxopenplx::InputSignalListener class."""
510
+
511
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
512
+ __repr__ = _swig_repr
513
+
514
+ def __init__(self, assembly):
515
+ r"""
516
+ __init__(InputSignalListener self, Assembly assembly) -> InputSignalListener
517
+
518
+ Parameters
519
+ ----------
520
+ assembly: agxSDK::Assembly *
521
+
522
+ """
523
+
524
+ if str(type(assembly)) == "<class 'agxSDK.AssemblyRef'>":
525
+ assembly = assembly.get()
526
+
527
+
528
+ _AgxOpenPlxPyApi.InputSignalListener_swiginit(self, _AgxOpenPlxPyApi.new_InputSignalListener(assembly))
529
+
530
+ def preCollide(self, time):
531
+ r"""
532
+ preCollide(InputSignalListener self, agx::TimeStamp const & time)
533
+
534
+ Parameters
535
+ ----------
536
+ time: agx::TimeStamp const &
537
+
538
+ """
539
+ return _AgxOpenPlxPyApi.InputSignalListener_preCollide(self, time)
540
+ RECOMMENDED_PRIO = _AgxOpenPlxPyApi.InputSignalListener_RECOMMENDED_PRIO
541
+
542
+ SEND_SIGNAL_PRIO = _AgxOpenPlxPyApi.InputSignalListener_SEND_SIGNAL_PRIO
543
+
544
+
545
+ def addNotification(self):
546
+ _AgxOpenPlxPyApi.InputSignalListener_addNotification
547
+ super().addNotification()
548
+
549
+
550
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_InputSignalListener
551
+
552
+ # Register InputSignalListener in _AgxOpenPlxPyApi:
553
+ _AgxOpenPlxPyApi.InputSignalListener_swigregister(InputSignalListener)
554
+
555
+ class OutputSignalListener(agxSDK.StepEventListener):
556
+ r"""Proxy of C++ agxopenplx::OutputSignalListener class."""
557
+
558
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
559
+ __repr__ = _swig_repr
560
+
561
+ def __init__(self, assembly, openplx_scene):
562
+ r"""
563
+ __init__(OutputSignalListener self, Assembly assembly, std::shared_ptr< openplx::Core::Object > const & openplx_scene) -> OutputSignalListener
564
+
565
+ Parameters
566
+ ----------
567
+ assembly: agxSDK::Assembly *
568
+ openplx_scene: std::shared_ptr< openplx::Core::Object > const &
569
+
570
+ """
571
+
572
+ if str(type(assembly)) == "<class 'agxSDK.AssemblyRef'>":
573
+ assembly = assembly.get()
574
+
575
+
576
+ _AgxOpenPlxPyApi.OutputSignalListener_swiginit(self, _AgxOpenPlxPyApi.new_OutputSignalListener(assembly, openplx_scene))
577
+
578
+ def syncOutputSignals(self):
579
+ r"""syncOutputSignals(OutputSignalListener self)"""
580
+ return _AgxOpenPlxPyApi.OutputSignalListener_syncOutputSignals(self)
581
+
582
+ def post(self, time):
583
+ r"""
584
+ post(OutputSignalListener self, agx::TimeStamp const & time)
585
+
586
+ Parameters
587
+ ----------
588
+ time: agx::TimeStamp const &
589
+
590
+ """
591
+ return _AgxOpenPlxPyApi.OutputSignalListener_post(self, time)
592
+ RECOMMENDED_PRIO = _AgxOpenPlxPyApi.OutputSignalListener_RECOMMENDED_PRIO
593
+
594
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_OutputSignalListener
595
+
596
+ # Register OutputSignalListener in _AgxOpenPlxPyApi:
597
+ _AgxOpenPlxPyApi.OutputSignalListener_swigregister(OutputSignalListener)
598
+
599
+ class AssemblyOpenPlxObjectPair(object):
600
+ r"""Proxy of C++ std::pair< std::shared_ptr< openplx::Core::Object >,agxSDK::AssemblyRef > class."""
601
+
602
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
603
+ __repr__ = _swig_repr
604
+
605
+ def __init__(self, *args):
606
+ r"""
607
+ __init__(AssemblyOpenPlxObjectPair self) -> AssemblyOpenPlxObjectPair
608
+ __init__(AssemblyOpenPlxObjectPair self, std::shared_ptr< openplx::Core::Object > first, AssemblyRef second) -> AssemblyOpenPlxObjectPair
609
+
610
+ Parameters
611
+ ----------
612
+ first: std::shared_ptr< openplx::Core::Object >
613
+ second: agx::ref_ptr< agxSDK::Assembly >
614
+
615
+ __init__(AssemblyOpenPlxObjectPair self, AssemblyOpenPlxObjectPair other) -> AssemblyOpenPlxObjectPair
616
+
617
+ Parameters
618
+ ----------
619
+ other: std::pair< std::shared_ptr< openplx::Core::Object >,agxSDK::AssemblyRef > const &
620
+
621
+ """
622
+ _AgxOpenPlxPyApi.AssemblyOpenPlxObjectPair_swiginit(self, _AgxOpenPlxPyApi.new_AssemblyOpenPlxObjectPair(*args))
623
+ first = property(_AgxOpenPlxPyApi.AssemblyOpenPlxObjectPair_first_get, _AgxOpenPlxPyApi.AssemblyOpenPlxObjectPair_first_set, doc=r"""first : std::shared_ptr<(openplx::Core::Object)>""")
624
+ second = property(_AgxOpenPlxPyApi.AssemblyOpenPlxObjectPair_second_get, _AgxOpenPlxPyApi.AssemblyOpenPlxObjectPair_second_set, doc=r"""second : agx::ref_ptr<(agxSDK::Assembly)>""")
625
+ def __len__(self):
626
+ return 2
627
+ def __repr__(self):
628
+ return str((self.first, self.second))
629
+ def __getitem__(self, index):
630
+ if not (index % 2):
631
+ return self.first
632
+ else:
633
+ return self.second
634
+ def __setitem__(self, index, val):
635
+ if not (index % 2):
636
+ self.first = val
637
+ else:
638
+ self.second = val
639
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_AssemblyOpenPlxObjectPair
640
+
641
+ # Register AssemblyOpenPlxObjectPair in _AgxOpenPlxPyApi:
642
+ _AgxOpenPlxPyApi.AssemblyOpenPlxObjectPair_swigregister(AssemblyOpenPlxObjectPair)
643
+
644
+ class ClickInputListener(object):
645
+ r"""Proxy of C++ agxopenplx::ClickInputListener class."""
646
+
647
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
648
+ __repr__ = _swig_repr
649
+
650
+ def __init__(self, server, openplx_scene, time_step, autostepping_enabled):
651
+ r"""
652
+ __init__(ClickInputListener self, std::shared_ptr< click::Server > & server, std::shared_ptr< openplx::Core::Object > const & openplx_scene, double time_step, bool autostepping_enabled) -> ClickInputListener
653
+
654
+ Parameters
655
+ ----------
656
+ server: std::shared_ptr< click::Server > &
657
+ openplx_scene: std::shared_ptr< openplx::Core::Object > const &
658
+ time_step: double
659
+ autostepping_enabled: bool
660
+
661
+ """
662
+ _AgxOpenPlxPyApi.ClickInputListener_swiginit(self, _AgxOpenPlxPyApi.new_ClickInputListener(server, openplx_scene, time_step, autostepping_enabled))
663
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_ClickInputListener
664
+
665
+ def preFrame(self, arg2):
666
+ r"""
667
+ preFrame(ClickInputListener self, agx::TimeStamp const & arg2) -> bool
668
+
669
+ Parameters
670
+ ----------
671
+ arg2: agx::TimeStamp const &
672
+
673
+ """
674
+ return _AgxOpenPlxPyApi.ClickInputListener_preFrame(self, arg2)
675
+
676
+ def set_autostepping_enabled(self, enabled):
677
+ r"""
678
+ set_autostepping_enabled(ClickInputListener self, bool enabled)
679
+
680
+ Parameters
681
+ ----------
682
+ enabled: bool
683
+
684
+ """
685
+ return _AgxOpenPlxPyApi.ClickInputListener_set_autostepping_enabled(self, enabled)
686
+
687
+ def is_autostepping_enabled(self):
688
+ r"""is_autostepping_enabled(ClickInputListener self) -> bool"""
689
+ return _AgxOpenPlxPyApi.ClickInputListener_is_autostepping_enabled(self)
690
+
691
+ def is_click_signal_available(self):
692
+ r"""is_click_signal_available(ClickInputListener self) -> bool"""
693
+ return _AgxOpenPlxPyApi.ClickInputListener_is_click_signal_available(self)
694
+
695
+ def setSensorRequestCallback(self, callback):
696
+ r"""
697
+ setSensorRequestCallback(ClickInputListener self, std::function< void (agx::TimeStamp const &) > callback)
698
+
699
+ Parameters
700
+ ----------
701
+ callback: std::function< void (agx::TimeStamp const &) >
702
+
703
+ """
704
+ return _AgxOpenPlxPyApi.ClickInputListener_setSensorRequestCallback(self, callback)
705
+
706
+ def updateScene(self, openplx_scene):
707
+ r"""
708
+ updateScene(ClickInputListener self, std::shared_ptr< openplx::Core::Object > const & openplx_scene)
709
+
710
+ Parameters
711
+ ----------
712
+ openplx_scene: std::shared_ptr< openplx::Core::Object > const &
713
+
714
+ """
715
+ return _AgxOpenPlxPyApi.ClickInputListener_updateScene(self, openplx_scene)
716
+
717
+ def autostepOffCallback(self):
718
+ r"""autostepOffCallback(ClickInputListener self)"""
719
+ return _AgxOpenPlxPyApi.ClickInputListener_autostepOffCallback(self)
720
+
721
+ def autostepOnCallback(self):
722
+ r"""autostepOnCallback(ClickInputListener self)"""
723
+ return _AgxOpenPlxPyApi.ClickInputListener_autostepOnCallback(self)
724
+
725
+ def stopApplicationCallback(self):
726
+ r"""stopApplicationCallback(ClickInputListener self)"""
727
+ return _AgxOpenPlxPyApi.ClickInputListener_stopApplicationCallback(self)
728
+
729
+ def resetCallback(self):
730
+ r"""resetCallback(ClickInputListener self)"""
731
+ return _AgxOpenPlxPyApi.ClickInputListener_resetCallback(self)
732
+
733
+ def getScene(self):
734
+ r"""getScene(ClickInputListener self) -> std::shared_ptr< openplx::Core::Object >"""
735
+ return _AgxOpenPlxPyApi.ClickInputListener_getScene(self)
736
+
737
+ # Register ClickInputListener in _AgxOpenPlxPyApi:
738
+ _AgxOpenPlxPyApi.ClickInputListener_swigregister(ClickInputListener)
739
+
740
+ class OsgClickInputListener(ClickInputListener):
741
+ r"""Proxy of C++ agxopenplx::OsgClickInputListener class."""
742
+
743
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
744
+ __repr__ = _swig_repr
745
+
746
+ def __init__(self, server, openplx_scene, time_step, autostepping_enabled):
747
+ r"""
748
+ __init__(OsgClickInputListener self, std::shared_ptr< click::Server > & server, std::shared_ptr< openplx::Core::Object > const & openplx_scene, double time_step, bool autostepping_enabled) -> OsgClickInputListener
749
+
750
+ Parameters
751
+ ----------
752
+ server: std::shared_ptr< click::Server > &
753
+ openplx_scene: std::shared_ptr< openplx::Core::Object > const &
754
+ time_step: double
755
+ autostepping_enabled: bool
756
+
757
+ """
758
+ _AgxOpenPlxPyApi.OsgClickInputListener_swiginit(self, _AgxOpenPlxPyApi.new_OsgClickInputListener(server, openplx_scene, time_step, autostepping_enabled))
759
+
760
+ def preFrame(self, app):
761
+ r"""
762
+ preFrame(OsgClickInputListener self, agxOSG::ExampleApplication * app)
763
+
764
+ Parameters
765
+ ----------
766
+ app: agxOSG::ExampleApplication *
767
+
768
+ """
769
+ return _AgxOpenPlxPyApi.OsgClickInputListener_preFrame(self, app)
770
+
771
+ def autostepOffCallback(self):
772
+ r"""autostepOffCallback(OsgClickInputListener self)"""
773
+ return _AgxOpenPlxPyApi.OsgClickInputListener_autostepOffCallback(self)
774
+
775
+ def autostepOnCallback(self):
776
+ r"""autostepOnCallback(OsgClickInputListener self)"""
777
+ return _AgxOpenPlxPyApi.OsgClickInputListener_autostepOnCallback(self)
778
+
779
+ def stopApplicationCallback(self):
780
+ r"""stopApplicationCallback(OsgClickInputListener self)"""
781
+ return _AgxOpenPlxPyApi.OsgClickInputListener_stopApplicationCallback(self)
782
+
783
+ def resetCallback(self):
784
+ r"""resetCallback(OsgClickInputListener self)"""
785
+ return _AgxOpenPlxPyApi.OsgClickInputListener_resetCallback(self)
786
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_OsgClickInputListener
787
+
788
+ # Register OsgClickInputListener in _AgxOpenPlxPyApi:
789
+ _AgxOpenPlxPyApi.OsgClickInputListener_swigregister(OsgClickInputListener)
790
+
791
+ class ClickOutputListener(agxSDK.StepEventListener):
792
+ r"""Proxy of C++ agxopenplx::ClickOutputListener class."""
793
+
794
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
795
+ __repr__ = _swig_repr
796
+
797
+ def __init__(self, server):
798
+ r"""
799
+ __init__(ClickOutputListener self, std::shared_ptr< click::Server > & server) -> ClickOutputListener
800
+
801
+ Parameters
802
+ ----------
803
+ server: std::shared_ptr< click::Server > &
804
+
805
+ """
806
+ _AgxOpenPlxPyApi.ClickOutputListener_swiginit(self, _AgxOpenPlxPyApi.new_ClickOutputListener(server))
807
+
808
+ def post(self, prev_step):
809
+ r"""
810
+ post(ClickOutputListener self, agx::TimeStamp const & prev_step)
811
+
812
+ Parameters
813
+ ----------
814
+ prev_step: agx::TimeStamp const &
815
+
816
+ """
817
+ return _AgxOpenPlxPyApi.ClickOutputListener_post(self, prev_step)
818
+
819
+ def last(self, simulated_time):
820
+ r"""
821
+ last(ClickOutputListener self, agx::TimeStamp const & simulated_time)
822
+
823
+ Parameters
824
+ ----------
825
+ simulated_time: agx::TimeStamp const &
826
+
827
+ """
828
+ return _AgxOpenPlxPyApi.ClickOutputListener_last(self, simulated_time)
829
+ RECOMMENDED_PRIO = _AgxOpenPlxPyApi.ClickOutputListener_RECOMMENDED_PRIO
830
+
831
+
832
+ def sendResetMessage(self):
833
+ r"""sendResetMessage(ClickOutputListener self)"""
834
+ return _AgxOpenPlxPyApi.ClickOutputListener_sendResetMessage(self)
835
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_ClickOutputListener
836
+
837
+ # Register ClickOutputListener in _AgxOpenPlxPyApi:
838
+ _AgxOpenPlxPyApi.ClickOutputListener_swigregister(ClickOutputListener)
839
+
840
+ class ClickKeyboardEventListener(agxSDK.GuiEventListener):
841
+ r"""Proxy of C++ agxopenplx::ClickKeyboardEventListener class."""
842
+
843
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
844
+ __repr__ = _swig_repr
845
+
846
+ def __init__(self, click_input_listener, app, click_adapter):
847
+ r"""
848
+ __init__(ClickKeyboardEventListener self, std::shared_ptr< agxopenplx::ClickInputListener > click_input_listener, agxOSG::ExampleApplication * app, OsgClickAdapter click_adapter) -> ClickKeyboardEventListener
849
+
850
+ Parameters
851
+ ----------
852
+ click_input_listener: std::shared_ptr< agxopenplx::ClickInputListener >
853
+ app: agxOSG::ExampleApplication *
854
+ click_adapter: agxopenplx::OsgClickAdapter *
855
+
856
+ """
857
+ _AgxOpenPlxPyApi.ClickKeyboardEventListener_swiginit(self, _AgxOpenPlxPyApi.new_ClickKeyboardEventListener(click_input_listener, app, click_adapter))
858
+
859
+ def keyboard(self, key, modkeyMask, x, y, keyDown):
860
+ r"""
861
+ keyboard(ClickKeyboardEventListener self, int key, unsigned int modkeyMask, float x, float y, bool keyDown) -> bool
862
+
863
+ Parameters
864
+ ----------
865
+ key: int
866
+ modkeyMask: unsigned int
867
+ x: float
868
+ y: float
869
+ keyDown: bool
870
+
871
+ """
872
+ return _AgxOpenPlxPyApi.ClickKeyboardEventListener_keyboard(self, key, modkeyMask, x, y, keyDown)
873
+ RECOMMENDED_PRIO = _AgxOpenPlxPyApi.ClickKeyboardEventListener_RECOMMENDED_PRIO
874
+
875
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_ClickKeyboardEventListener
876
+
877
+ # Register ClickKeyboardEventListener in _AgxOpenPlxPyApi:
878
+ _AgxOpenPlxPyApi.ClickKeyboardEventListener_swigregister(ClickKeyboardEventListener)
879
+
880
+ class OsgClickAdapter(object):
881
+ r"""Proxy of C++ agxopenplx::OsgClickAdapter class."""
882
+
883
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
884
+ __repr__ = _swig_repr
885
+
886
+ def sendResetMessage(self):
887
+ r"""sendResetMessage(OsgClickAdapter self)"""
888
+ return _AgxOpenPlxPyApi.OsgClickAdapter_sendResetMessage(self)
889
+
890
+ def willSendResetMessage(self):
891
+ r"""willSendResetMessage(OsgClickAdapter self) -> bool"""
892
+ return _AgxOpenPlxPyApi.OsgClickAdapter_willSendResetMessage(self)
893
+
894
+ def add_listeners(self, app, simulation, click_server_addr, openplx_scene, output_signal_listener):
895
+ r"""
896
+ add_listeners(OsgClickAdapter self, agxOSG::ExampleApplication * app, Simulation simulation, std::string const & click_server_addr, std::shared_ptr< openplx::Core::Object > const & openplx_scene, OutputSignalListener output_signal_listener)
897
+
898
+ Parameters
899
+ ----------
900
+ app: agxOSG::ExampleApplication *
901
+ simulation: agxSDK::Simulation *
902
+ click_server_addr: std::string const &
903
+ openplx_scene: std::shared_ptr< openplx::Core::Object > const &
904
+ output_signal_listener: agxopenplx::OutputSignalListener *
905
+
906
+ """
907
+ return _AgxOpenPlxPyApi.OsgClickAdapter_add_listeners(self, app, simulation, click_server_addr, openplx_scene, output_signal_listener)
908
+
909
+ def createClickInputListener(self, openplx_scene, time_step, auto_stepping):
910
+ r"""
911
+ createClickInputListener(OsgClickAdapter self, std::shared_ptr< openplx::Core::Object > const & openplx_scene, double time_step, bool auto_stepping) -> std::shared_ptr< agxopenplx::ClickInputListener >
912
+
913
+ Parameters
914
+ ----------
915
+ openplx_scene: std::shared_ptr< openplx::Core::Object > const &
916
+ time_step: double
917
+ auto_stepping: bool
918
+
919
+ """
920
+ return _AgxOpenPlxPyApi.OsgClickAdapter_createClickInputListener(self, openplx_scene, time_step, auto_stepping)
921
+
922
+ def __init__(self):
923
+ r"""__init__(OsgClickAdapter self) -> OsgClickAdapter"""
924
+ _AgxOpenPlxPyApi.OsgClickAdapter_swiginit(self, _AgxOpenPlxPyApi.new_OsgClickAdapter())
925
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_OsgClickAdapter
926
+
927
+ # Register OsgClickAdapter in _AgxOpenPlxPyApi:
928
+ _AgxOpenPlxPyApi.OsgClickAdapter_swigregister(OsgClickAdapter)
929
+
930
+ class AgxCache(object):
931
+ r"""Proxy of C++ agxopenplx::AgxCache class."""
932
+
933
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
934
+ __repr__ = _swig_repr
935
+
936
+ def __init__(self):
937
+ r"""__init__(AgxCache self) -> AgxCache"""
938
+ _AgxOpenPlxPyApi.AgxCache_swiginit(self, _AgxOpenPlxPyApi.new_AgxCache())
939
+
940
+ def readCollisionShape(self, uuid):
941
+ r"""
942
+ readCollisionShape(AgxCache self, std::string const & uuid) -> std::optional< agxCollide::ShapeRef >
943
+
944
+ Parameters
945
+ ----------
946
+ uuid: std::string const &
947
+
948
+ """
949
+ return _AgxOpenPlxPyApi.AgxCache_readCollisionShape(self, uuid)
950
+
951
+ def readCollisionShapeAndTransform(self, uuid):
952
+ r"""
953
+ readCollisionShapeAndTransform(AgxCache self, std::string const & uuid) -> std::optional< std::pair< agxCollide::ShapeRef,agx::AffineMatrix4x4 > >
954
+
955
+ Parameters
956
+ ----------
957
+ uuid: std::string const &
958
+
959
+ """
960
+ return _AgxOpenPlxPyApi.AgxCache_readCollisionShapeAndTransform(self, uuid)
961
+
962
+ def writeCollisionShape(self, shape):
963
+ r"""
964
+ writeCollisionShape(AgxCache self, ShapeRef shape)
965
+
966
+ Parameters
967
+ ----------
968
+ shape: agxCollide::ShapeRef const &
969
+
970
+ """
971
+ return _AgxOpenPlxPyApi.AgxCache_writeCollisionShape(self, shape)
972
+
973
+ def cacheShapes(self, assembly):
974
+ r"""
975
+ cacheShapes(AgxCache self, AssemblyRef assembly)
976
+
977
+ Parameters
978
+ ----------
979
+ assembly: agxSDK::AssemblyRef const &
980
+
981
+ """
982
+ return _AgxOpenPlxPyApi.AgxCache_cacheShapes(self, assembly)
983
+
984
+ def flagAsConsumed(self, uuid):
985
+ r"""
986
+ flagAsConsumed(AgxCache self, std::string const & uuid)
987
+
988
+ Parameters
989
+ ----------
990
+ uuid: std::string const &
991
+
992
+ """
993
+ return _AgxOpenPlxPyApi.AgxCache_flagAsConsumed(self, uuid)
994
+
995
+ def isConsumed(self, uuid):
996
+ r"""
997
+ isConsumed(AgxCache self, std::string const & uuid) -> bool
998
+
999
+ Parameters
1000
+ ----------
1001
+ uuid: std::string const &
1002
+
1003
+ """
1004
+ return _AgxOpenPlxPyApi.AgxCache_isConsumed(self, uuid)
1005
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_AgxCache
1006
+
1007
+ # Register AgxCache in _AgxOpenPlxPyApi:
1008
+ _AgxOpenPlxPyApi.AgxCache_swigregister(AgxCache)
1009
+
1010
+ class OpenPlxMaterialManager(object):
1011
+ r"""Proxy of C++ agxopenplx::OpenPlxMaterialManager class."""
1012
+
1013
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1014
+ __repr__ = _swig_repr
1015
+
1016
+ def __init__(self):
1017
+ r"""__init__(OpenPlxMaterialManager self) -> OpenPlxMaterialManager"""
1018
+ _AgxOpenPlxPyApi.OpenPlxMaterialManager_swiginit(self, _AgxOpenPlxPyApi.new_OpenPlxMaterialManager())
1019
+
1020
+ def registerAndMergeScene(self, scene):
1021
+ r"""
1022
+ registerAndMergeScene(OpenPlxMaterialManager self, System scene) -> bool
1023
+
1024
+ Parameters
1025
+ ----------
1026
+ scene: openplx::Physics3D::System const &
1027
+
1028
+ """
1029
+ return _AgxOpenPlxPyApi.OpenPlxMaterialManager_registerAndMergeScene(self, scene)
1030
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_OpenPlxMaterialManager
1031
+
1032
+ # Register OpenPlxMaterialManager in _AgxOpenPlxPyApi:
1033
+ _AgxOpenPlxPyApi.OpenPlxMaterialManager_swigregister(OpenPlxMaterialManager)
1034
+
1035
+ class Result(object):
1036
+ r"""Proxy of C++ agxopenplx::Result class."""
1037
+
1038
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1039
+ __repr__ = _swig_repr
1040
+
1041
+ def __init__(self, assembly, scene, errors, to_agx_mapper):
1042
+ r"""
1043
+ __init__(Result self, Assembly assembly, std::shared_ptr< openplx::Core::Object > scene, ErrorVector errors, std::shared_ptr< agxopenplx::OpenPlxToAgxMapper > to_agx_mapper) -> Result
1044
+
1045
+ Parameters
1046
+ ----------
1047
+ assembly: agxSDK::Assembly *
1048
+ scene: std::shared_ptr< openplx::Core::Object >
1049
+ errors: openplx::Errors
1050
+ to_agx_mapper: std::shared_ptr< agxopenplx::OpenPlxToAgxMapper >
1051
+
1052
+ """
1053
+ _AgxOpenPlxPyApi.Result_swiginit(self, _AgxOpenPlxPyApi.new_Result(assembly, scene, errors, to_agx_mapper))
1054
+
1055
+ def assembly(self):
1056
+ r"""assembly(Result self) -> Assembly"""
1057
+ return _AgxOpenPlxPyApi.Result_assembly(self)
1058
+
1059
+ def scene(self):
1060
+ r"""scene(Result self) -> std::shared_ptr< openplx::Core::Object >"""
1061
+ return _AgxOpenPlxPyApi.Result_scene(self)
1062
+
1063
+ def errors(self):
1064
+ r"""errors(Result self) -> ErrorVector"""
1065
+ return _AgxOpenPlxPyApi.Result_errors(self)
1066
+
1067
+ def to_agx_mapper(self):
1068
+ r"""to_agx_mapper(Result self) -> std::shared_ptr< agxopenplx::OpenPlxToAgxMapper >"""
1069
+ return _AgxOpenPlxPyApi.Result_to_agx_mapper(self)
1070
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_Result
1071
+
1072
+ # Register Result in _AgxOpenPlxPyApi:
1073
+ _AgxOpenPlxPyApi.Result_swigregister(Result)
1074
+
1075
+ class OptParams(object):
1076
+ r"""Proxy of C++ agxopenplx::OptParams class."""
1077
+
1078
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1079
+ __repr__ = _swig_repr
1080
+
1081
+ def with_model_name(self, model_name):
1082
+ r"""
1083
+ with_model_name(OptParams self, std::string model_name) -> OptParams
1084
+
1085
+ Parameters
1086
+ ----------
1087
+ model_name: std::string
1088
+
1089
+ """
1090
+ return _AgxOpenPlxPyApi.OptParams_with_model_name(self, model_name)
1091
+
1092
+ def with_uuidv5(self, uuidv5_namespace_id):
1093
+ r"""
1094
+ with_uuidv5(OptParams self, std::string uuidv5_namespace_id) -> OptParams
1095
+
1096
+ Parameters
1097
+ ----------
1098
+ uuidv5_namespace_id: std::string
1099
+
1100
+ """
1101
+ return _AgxOpenPlxPyApi.OptParams_with_uuidv5(self, uuidv5_namespace_id)
1102
+
1103
+ def model_name(self):
1104
+ r"""model_name(OptParams self) -> std::optional< std::string > const &"""
1105
+ return _AgxOpenPlxPyApi.OptParams_model_name(self)
1106
+
1107
+ def uuidv5_namespace_id(self):
1108
+ r"""uuidv5_namespace_id(OptParams self) -> std::optional< std::string > const &"""
1109
+ return _AgxOpenPlxPyApi.OptParams_uuidv5_namespace_id(self)
1110
+
1111
+ def __init__(self):
1112
+ r"""__init__(OptParams self) -> OptParams"""
1113
+ _AgxOpenPlxPyApi.OptParams_swiginit(self, _AgxOpenPlxPyApi.new_OptParams())
1114
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_OptParams
1115
+
1116
+ # Register OptParams in _AgxOpenPlxPyApi:
1117
+ _AgxOpenPlxPyApi.OptParams_swigregister(OptParams)
1118
+
1119
+
1120
+ def load_from_string(*args):
1121
+ r"""
1122
+ load_from_string(Simulation simulation, std::string const & source, std::string const & bundle_paths, OptParams optional_parameters=agxopenplx::OptParams()) -> Result
1123
+
1124
+ Parameters
1125
+ ----------
1126
+ simulation: agxSDK::Simulation *
1127
+ source: std::string const &
1128
+ bundle_paths: std::string const &
1129
+ optional_parameters: agxopenplx::OptParams
1130
+
1131
+ """
1132
+ return _AgxOpenPlxPyApi.load_from_string(*args)
1133
+
1134
+ def load_from_file(*args):
1135
+ r"""
1136
+ load_from_file(openplx_file:str, bundle_paths:str, modelname:str=) -> Result { assembly(), openplx_object(), errors() }
1137
+
1138
+ Load openplxfile and return the OpenPLX model and corresponding AGX assembly
1139
+
1140
+ Parameters
1141
+ ----------
1142
+ openplx_file: path to the OpenPLX file
1143
+ openplx_file: path to the OpenPLX file
1144
+ bundle_paths: semicolon separated list of file paths to bundles
1145
+ optional_parameters: OptParams object, for example: OptParams().with_model_name(...).with_uuidv5(...)
1146
+
1147
+ load_from_file(openplx_file:str, bundle_paths:str, modelname:str=) -> Result { assembly(), openplx_object(), errors() }
1148
+
1149
+ Load openplxfile and return the OpenPLX model and corresponding AGX assembly
1150
+
1151
+ Parameters
1152
+ ----------
1153
+ openplx_file: path to the OpenPLX file
1154
+ openplx_file: path to the OpenPLX file
1155
+ bundle_paths: semicolon separated list of file paths to bundles
1156
+ optional_parameters: OptParams object, for example: OptParams().with_model_name(...).with_uuidv5(...)
1157
+
1158
+
1159
+ """
1160
+ return _AgxOpenPlxPyApi.load_from_file(*args)
1161
+
1162
+ def serialize_file(*args):
1163
+ r"""
1164
+ serialize_file(std::string const & path, std::string const & bundle_paths, OptParams optional_parameters=agxopenplx::OptParams()) -> std::string
1165
+
1166
+ Parameters
1167
+ ----------
1168
+ path: std::string const &
1169
+ bundle_paths: std::string const &
1170
+ optional_parameters: agxopenplx::OptParams
1171
+
1172
+ """
1173
+ return _AgxOpenPlxPyApi.serialize_file(*args)
1174
+
1175
+ def register_bundles(ctx):
1176
+ r"""
1177
+ register_bundles(OpenPlxContext ctx)
1178
+
1179
+ Parameters
1180
+ ----------
1181
+ ctx: openplx::Core::Api::OpenPlxContext &
1182
+
1183
+ """
1184
+ return _AgxOpenPlxPyApi.register_bundles(ctx)
1185
+
1186
+ def register_plugins(ctx, cache=0):
1187
+ r"""
1188
+ register_plugins(OpenPlxContext ctx, std::shared_ptr< agxopenplx::AgxCache > cache=0)
1189
+
1190
+ Parameters
1191
+ ----------
1192
+ ctx: openplx::Core::Api::OpenPlxContext &
1193
+ cache: std::shared_ptr< agxopenplx::AgxCache >
1194
+
1195
+ """
1196
+ return _AgxOpenPlxPyApi.register_plugins(ctx, cache)
1197
+
1198
+ def set_log_level(log_level_name):
1199
+ r"""
1200
+ set_log_level(std::string const & log_level_name)
1201
+
1202
+ Parameters
1203
+ ----------
1204
+ log_level_name: std::string const &
1205
+
1206
+ """
1207
+ return _AgxOpenPlxPyApi.set_log_level(log_level_name)
1208
+
1209
+ def check_if_migrate_hint_is_justified(current_version, errors):
1210
+ r"""
1211
+ check_if_migrate_hint_is_justified(std::string const & current_version, ErrorVector errors) -> std::string
1212
+
1213
+ Parameters
1214
+ ----------
1215
+ current_version: std::string const &
1216
+ errors: openplx::Errors const &
1217
+
1218
+ """
1219
+ return _AgxOpenPlxPyApi.check_if_migrate_hint_is_justified(current_version, errors)
1220
+
1221
+ def parse_and_evaluate_string(bundle_paths, source, modelname):
1222
+ r"""
1223
+ parse_and_evaluate_string(std::string const & bundle_paths, std::string const & source, std::string const & modelname) -> std::pair< std::shared_ptr< openplx::Core::Object >,openplx::Errors >
1224
+
1225
+ Parameters
1226
+ ----------
1227
+ bundle_paths: std::string const &
1228
+ source: std::string const &
1229
+ modelname: std::string const &
1230
+
1231
+ """
1232
+ return _AgxOpenPlxPyApi.parse_and_evaluate_string(bundle_paths, source, modelname)
1233
+
1234
+ def parseWithPlugin(arg1, key):
1235
+ r"""
1236
+ parseWithPlugin(std::shared_ptr< openplx::Plugin > arg1, std::string const & key) -> std::string
1237
+
1238
+ Parameters
1239
+ ----------
1240
+ arg1: std::shared_ptr< openplx::Plugin >
1241
+ key: std::string const &
1242
+
1243
+ """
1244
+ return _AgxOpenPlxPyApi.parseWithPlugin(arg1, key)
1245
+
1246
+ def get_error_strings(errors):
1247
+ r"""
1248
+ get_error_strings(ErrorVector errors) -> StringVector
1249
+
1250
+ Parameters
1251
+ ----------
1252
+ errors: openplx::Errors const &
1253
+
1254
+ """
1255
+ return _AgxOpenPlxPyApi.get_error_strings(errors)
1256
+
1257
+ def addVisuals(result, osg_root, debug_render_frames=False):
1258
+ r"""
1259
+ addVisuals(Result result, osg::Group * osg_root, bool debug_render_frames=False) -> bool
1260
+
1261
+ Parameters
1262
+ ----------
1263
+ result: agxopenplx::Result
1264
+ osg_root: osg::Group *
1265
+ debug_render_frames: bool
1266
+
1267
+ """
1268
+ return _AgxOpenPlxPyApi.addVisuals(result, osg_root, debug_render_frames)
1269
+
1270
+ def addDeformableVisualUpdaters(result, osg_root):
1271
+ r"""
1272
+ addDeformableVisualUpdaters(Result result, osg::Group * osg_root)
1273
+
1274
+ Parameters
1275
+ ----------
1276
+ result: agxopenplx::Result
1277
+ osg_root: osg::Group *
1278
+
1279
+ """
1280
+ return _AgxOpenPlxPyApi.addDeformableVisualUpdaters(result, osg_root)
1281
+
1282
+ def add_file_changed_listener(app, openplxfile):
1283
+ r"""
1284
+ add_file_changed_listener(agxOSG::ExampleApplication * app, std::string const & openplxfile)
1285
+
1286
+ Parameters
1287
+ ----------
1288
+ app: agxOSG::ExampleApplication *
1289
+ openplxfile: std::string const &
1290
+
1291
+ """
1292
+ return _AgxOpenPlxPyApi.add_file_changed_listener(app, openplxfile)
1293
+ class FileChangedListener(object):
1294
+ r"""Proxy of C++ agxopenplx::FileChangedListener class."""
1295
+
1296
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1297
+ __repr__ = _swig_repr
1298
+
1299
+ def __init__(self, file_to_track):
1300
+ r"""
1301
+ __init__(FileChangedListener self, std::string file_to_track) -> FileChangedListener
1302
+
1303
+ Parameters
1304
+ ----------
1305
+ file_to_track: std::string
1306
+
1307
+ """
1308
+ _AgxOpenPlxPyApi.FileChangedListener_swiginit(self, _AgxOpenPlxPyApi.new_FileChangedListener(file_to_track))
1309
+
1310
+ def preFrame(self, app):
1311
+ r"""
1312
+ preFrame(FileChangedListener self, agxOSG::ExampleApplication * app)
1313
+
1314
+ Parameters
1315
+ ----------
1316
+ app: agxOSG::ExampleApplication *
1317
+
1318
+ """
1319
+ return _AgxOpenPlxPyApi.FileChangedListener_preFrame(self, app)
1320
+
1321
+ def postFrame(self, arg2):
1322
+ r"""
1323
+ postFrame(FileChangedListener self, agxOSG::ExampleApplication * arg2)
1324
+
1325
+ Parameters
1326
+ ----------
1327
+ arg2: agxOSG::ExampleApplication *
1328
+
1329
+ """
1330
+ return _AgxOpenPlxPyApi.FileChangedListener_postFrame(self, arg2)
1331
+ __swig_destroy__ = _AgxOpenPlxPyApi.delete_FileChangedListener
1332
+
1333
+ # Register FileChangedListener in _AgxOpenPlxPyApi:
1334
+ _AgxOpenPlxPyApi.FileChangedListener_swigregister(FileChangedListener)
1335
+
1336
+
1337
+