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.
.