How can I use omniverse kit sdk in docker ros noetic?

Hello. I am currently writing code to control the surface gripper of isaacsim installed locally(ubuntu 22.04) using docker ROS.

from pxr import Usd, UsdGeom
import omni.usd
import omni.graph as og
stage = omni.usd.get_context().get_stage()


ogn = og.core.get_node_by_path("/World/Cube_01/SurfaceGripperActionGraph/impulse_monitor_01") #Get the Impulse node connected to Close

attr = ogn.get_attribute("state:enableImpulse") #Get the Attribute to enable the impuse
attr.set(1) #Set it to "True"
ogn.request_compute() # Trigger the node execution that will send an impulse to the surface Gripper.

However, when I try to run the code using rosrun in docker ROS, I encounter an error stating that ‘omni.graph’ cannot be imported ModuleNotFoundError: No module named 'omni.graph'. Is there a way to execute the previous code using rosrun without using isaacsim’s standalone ./python.sh? I installed docker ROS following the reference ROS & ROS 2 Installation — Omniverse IsaacSim latest documentation.
.

@lpigeon at this time it is not supported to run the script without python.sh. You could however call that python.sh command from within a ros node. Or create a bash shell script that contains the ./python.sh command and run that bash script from a ros launch file.

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