Technical Issues: Publish data from IMU sensor by ROS Bridge

How can I publish my IMU sensor data or other infomation by ROS Bridge?I tried to add a publisher in my extension code.But I couldn’t import rospy. Is there any better suggestion?

Hopefully this tutorial helps you out: 11. Custom Message — Omniverse Robotics documentation

Thank you for your reply.
I’ve tried. But I can’t import rospy in my extension.

[Error] [omni.ext.impl._internal] Failed to import python module omni.isaac.examples.LHD_ROS. Error: No module named 'rospy'. Traceback:
Traceback (most recent call last):
  File "/media/lyc/files/U_omniverse/pkg/isaac_sim-2021.2.1/kit/plugins/bindings-python/omni/ext/impl/", line 65, in import_module
    return importlib.import_module(name)
  File "/media/lyc/files/U_omniverse/pkg/isaac_sim-2021.2.1/kit/python/lib/python3.7/importlib/", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/media/lyc/files/U_omniverse/pkg/isaac_sim-2021.2.1/exts/omni.isaac.examples/omni/isaac/examples/LHD_ROS/", line 11, in <module>
    from omni.isaac.examples.LHD_ROS.LHD_ROS import LHD_ROS
  File "/media/lyc/files/U_omniverse/pkg/isaac_sim-2021.2.1/exts/omni.isaac.examples/omni/isaac/examples/LHD_ROS/", line 22, in <module>
    import rospy
ModuleNotFoundError: No module named 'rospy'

2022-03-24 05:37:46 [16,411ms] [Error] [carb.scripting-python.plugin] Exception: Extension python module: 'omni.isaac.examples.LHD_ROS' in '/media/lyc/files/U_omniverse/pkg/isaac_sim-2021.2.1/exts/omni.isaac.examples/.' failed to load.

  /media/lyc/files/U_omniverse/pkg/isaac_sim-2021.2.1/kit/plugins/bindings-python/omni/ext/impl/ startup_all_extensions_in_module
  /media/lyc/files/U_omniverse/pkg/isaac_sim-2021.2.1/kit/plugins/bindings-python/omni/ext/impl/ startup_all_extensions_in_module
  PythonExtension.cpp::startup()(2): <module>

2022-03-24 05:37:46 [16,411ms] [Error] [omni.ext.plugin] [ext: omni.isaac.examples-0.1.17] Failed to process python module extension in '/media/lyc/files/U_omniverse/pkg/isaac_sim-2021.2.1/exts/omni.isaac.examples/.'.
2022-03-24 05:37:46 [16,568ms] [Warning] [carb] broken symlink '/media/lyc/files/U_omniverse/pkg/isaac_sim-2021.2.1/exts/omni.isaac.examples/omni/isaac/examples/examples'

Whether rospy can only be used in another python script or in the script editor?

For example:


HI @1324539608

This topic (Error occurs when launching Isaac Sim: Error: No module named 'omni.isaac.imu_sensor') could help you. For the ropsy check the second last post

Got it! Thank you !

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.