ImuSensorImpl#

Fully qualified name: isaacsim::sensors::experimental::physics::ImuSensorImpl

class ImuSensorImpl : public isaacsim::sensors::experimental::physics::IImuSensor#

Public Functions

ImuSensorImpl()#
~ImuSensorImpl()#
virtual void shutdown() override#

Shut down the manager, destroying all sensors and freeing resources.

virtual int64_t createSensor(const char *primPath) override#

Create an IMU sensor for the given IsaacImuSensor prim.

Finds the parent rigid body by walking up the prim hierarchy and creates an IRigidBodyDataView for velocity data.

Parameters:

primPath – USD path to the IsaacImuSensor prim.

Returns:

Unique sensor ID (>= 0), or -1 on failure.

virtual void removeSensor(int64_t sensorId) override#

Remove a sensor and free its resources.

Parameters:

sensorId – ID returned by createSensor().

virtual ImuSensorReading getSensorReading(
int64_t sensorId,
bool readGravity,
) override#

Get the latest reading for a sensor.

Parameters:
  • sensorId – ID returned by createSensor().

  • readGravity – If true, include gravity in acceleration output.

Returns:

Sensor reading. isValid is false if sensor is disabled or not found.