SyntheticPerception.core package
Submodules
SyntheticPerception.core.environment module
SyntheticPerception.core.isaac_handler module
SyntheticPerception.core.objects module
Classes:
A class that represents a phsyical entity in an environment. |
- class SyntheticPerception.core.objects.Object[source]
Bases:
objectA class that represents a phsyical entity in an environment. Has methods to move with velocity and set translation,scale and orientation
Methods:
__init__(position, orientation, scale, ...)apply_velocity(linear_veloc, angular_veloc)Applys angular and or linear velocity to the object Args: linear_veloc: list[float], angular_veloc: list[float] Returns: None
Returns the orientation of the object.
Returns the orientation of the object.
Returns the translation of the object.
Returns the translation of the object.
Returns the scale of the object.
set_scale(value)Sets the scale of the object.
set_translate(value)Sets the translation of the object.
set_orient(value)Sets the orientation of the object.
set_orient_quat(value)Sets the orientation of the object.
reset()Resets the translation, scale, and rotation of the object back to its start.
change_start_and_reset([translate, scale, ...])Changes and resets the object to a new initial positon,orientation,scale Args: translate [], scale [], orient [] Returns: None
- __init__(position, orientation, scale, prim_name, parent_path, stage, usd_path=None, semantic_class='None', instanceable=False, visibility='inherited', disable_gravity=True, scale_delta=1) None[source]
- apply_velocity(linear_veloc, angular_veloc) None[source]
Applys angular and or linear velocity to the object Args: linear_veloc: list[float], angular_veloc: list[float] Returns: None
- get_orientation() pxr.Gf.Vec3d[source]
Returns the orientation of the object. Args: None Returns: [] orientation
- get_orientation_quat()[source]
Returns the orientation of the object. Args: None Returns: [] orientation
- get_translate_vec()[source]
Returns the translation of the object. Args: None Returns: [] translation
- set_translate(value)[source]
Sets the translation of the object. Args: [] translation Returns: None
- set_orient_quat(value)[source]
Sets the orientation of the object. Args: Gf.Quatf() orienation Returns: None
SyntheticPerception.core.physxutils module
Functions:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns a list of PhysxTendonAttachment(Root)API instance names on the provided prim that are candidates for creating a parent relationship to. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tries to import tests if the tests ext is present. |
Classes:
- SyntheticPerception.core.physxutils.setCollider(prim, approximationShape='none', custom_execute_fn=None)[source]
- SyntheticPerception.core.physxutils.setColliderSubtree(prim, approximationShape='none', execute_command_fn=None)[source]
- SyntheticPerception.core.physxutils.setRigidBody(prim, approximationShape, kinematic, custom_execute_fn=None)[source]
- SyntheticPerception.core.physxutils.setStaticCollider(prim, approximationShape='none', custom_execute_fn=None)[source]
- SyntheticPerception.core.physxutils.addRigidBodyMaterial(stage, path, density=None, staticFriction=None, dynamicFriction=None, restitution=None)[source]
- SyntheticPerception.core.physxutils.familyHasConflictingAPI(prim, api_to_add, check_itself=False)[source]
- SyntheticPerception.core.physxutils.createJoints(stage, joint_type, paths, join_to_parent=False)[source]
- SyntheticPerception.core.physxutils.removeMultipleAPISchemaProperties(api, prim, api_prefix, multiple_token)[source]
- SyntheticPerception.core.physxutils.createMultipleAPISchemaPropertyCache(api, prim, api_prefix, multiple_token)[source]
- SyntheticPerception.core.physxutils.get_spatial_tendon_attachment_candidates(prim: pxr.Usd.Prim) List[str][source]
Returns a list of PhysxTendonAttachment(Root)API instance names on the provided prim that are candidates for creating a parent relationship to. Notably, this list will exclude leaf attachments that are not suitable targets for a parent relationship.
- Args:
prim: the Usd.Prim to parse for suitable attachment candidates
- Returns:
A str list of attachment instance names
- SyntheticPerception.core.physxutils.get_aligned_body_transform(stage, cache, joint, body0base)[source]
- SyntheticPerception.core.physxutils.safe_import_tests(source_module_name, submodules_list=None)[source]
Tries to import tests if the tests ext is present. The tests ext is expected to be loaded as follows:
1) use when the tests need to be visible in the test runner UI and the tests ext needs to be explicitly loaded by another ext or is included in the kit file
[dependencies] “omni.physx.tests” = {optional=true}
2) this will include the dependency only when running tests in the separate kit process, like when run using the generated batch files and the tests would then likely not be visible in the test runner UI
[[test]] dependencies = [“omni.physx.tests”]
SyntheticPerception.core.rig module
SyntheticPerception.core.terrain module
Classes: