Ark
Loading...
Searching...
No Matches
pybullet_backend Namespace Reference

Classes

class  PyBulletBackend

Functions

tuple[type, Optional[type]] import_class_from_directory (Path path)
 Load a class from path.

Detailed Description

@file pybullet_backend.py
@brief Backend implementation for running simulations in PyBullet.

Function Documentation

◆ import_class_from_directory()

tuple[type, Optional[type]] pybullet_backend.import_class_from_directory ( Path path)

Load a class from path.

The helper searches for <ClassName>.py inside path and imports the class with the same name. If a Drivers class is present in the module its PYBULLET_DRIVER attribute is returned alongside the main class.

Parameters
pathPath to the directory containing the module.
Returns
Tuple (cls, driver_cls) where driver_cls is None when no driver is defined. @rtype Tuple[type, Optional[type]]