useing python api: import omni.isaac.imu_sensor fail , i am sure the extension/imu_sensor is on, and i found imu.issac.imu_sensor under isaac_sim-2021.2.1/exts folder . here are the logs:
narwal@sz-0203062590:~/.local/share/ov/pkg/isaac_sim-2021.2.1$ ./python.sh
Python 3.7.12 (default, Sep 17 2021, 23:13:24)
[GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import omni.isaac.imu_sensor
terminate called after throwing an instance of ‘pybind11::error_already_set’
what(): SystemError: <built-in method contains of dict object at 0x7f5515439910> returned a result with an error set
./python.sh: line 43: 792857 Aborted (core dumped) $python_exe $@ $args
narwal@sz-0203062590:~/.local/share/ov/pkg/isaac_sim-2021.2.1$ ./python.sh
Python 3.7.12 (default, Sep 17 2021, 23:13:24)
[GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
_is = _imu_sensor.acquire_imu_sensor_interface()
Traceback (most recent call last):
File “”, line 1, in
NameError: name ‘_imu_sensor’ is not defined
from omni.isaac.imu_sensor import _imu_sensor
_is = _imu_sensor.acquire_imu_sensor_interface()
Traceback (most recent call last):
File “”, line 1, in
RuntimeError: Failed to acquire interface: omni::isaac::imu_sensor::struct IMUSensor (pluginName: nullptr)
I have run the isaacsim from omniver_launcher and start the simulation, do i need the code ‘from omni.isaac.kit import SimulationApp
kit = SimulationApp({“headless”: True})’ ?
yes, i works ! thanks ! it will launch a isaacsim from pure python , but can i run isaacsim from omniverse manually and use python api such as omni.isaac.imu_sensor to get imu msg from the isaacsim ?
can you tell me more details about ’ imu_sensor API from the Script Editor or from a user extension in a running Isaac Sim’ ?? I run isaacsim from omniverse , and use python.exe from kit to run the python scripts of 'from omni.isaac.imu_sensor import _imu_sensor
_is = _imu_sensor.acquire_imu_sensor_interface() ’ it show the erros : ‘Traceback (most recent call last):
File “”, line 1, in
RuntimeError: Failed to acquire interface: omni::isaac::imu_sensor::struct IMUSensor (pluginName: nullptr)’ ; maybe the problem is in the external python scripts , it can not find the kit application of the running isaacsim , so it fails