getActiveSimulationId#
Fully qualified name: isaacsim::physics::registration::getActiveSimulationId
- SimulationId isaacsim::physics::registration::getActiveSimulationId(
- const std::string &simulationName,
Retrieves the active simulation registered under a given name.
Names are matched exactly. A simulation and the tensor factories that resolve it are registered under one name, so an exact match is what keeps distinctly named simulations apart.
- Parameters:
simulationName – [in] The simulation name to match.
- Throws:
std::runtime_error – If more than one active simulation carries that name.
- Returns:
The identifier of the active simulation registered under
simulationName, org_kInvalidSimulationIdwhen no such simulation is active.