UsdNoticeListener#

Fully qualified name: isaacsim::core::simulation_manager::UsdNoticeListener

class UsdNoticeListener : public pxr::TfWeakBase#

Listener class for USD object change notifications.

This class listens for changes to USD objects and manages callbacks for deletion and physics scene addition events. It inherits from pxr::TfWeakBase to support the USD notification system.

Public Functions

UsdNoticeListener()#
void handle(const pxr::UsdNotice::ObjectsChanged &objectsChanged)#

Handles USD object change notifications.

Parameters:

objectsChanged[in] The notification containing information about changed objects.

void enable(const bool &flag)#

Enables or disables the listener.

Parameters:

flag[in] True to enable the listener, false to disable.

bool isEnabled()#

Checks if the listener is enabled.

Returns:

True if the listener is enabled, false otherwise.

std::map<int, std::function<void(const std::string&)>> &getDeletionCallbacks(
)#

Gets the map of deletion callbacks.

Returns:

Reference to the map of deletion callbacks, keyed by callback ID.

std::map<int, std::function<void(const std::string&)>> &getPhysicsSceneAdditionCallbacks(
)#

Gets the map of physics scene addition callbacks.

Returns:

Reference to the map of physics scene addition callbacks, keyed by callback ID.

std::map<pxr::SdfPath, pxr::PhysxSchemaPhysxSceneAPI> &getPhysicsScenes(
)#

Gets the map of physics scenes.

Returns:

Reference to the map of physics scenes, keyed by their USD paths.

int &getCallbackIter()#

Gets the callback iteration counter.

Returns:

Reference to the current callback iteration counter.