hello,
I have imported the plant USD file into isaac sim by add_reference_to_stage(usd_path=asset_path, prim_path=…
under the plant’s prime path, there are many objects, like sensors, conveyors,
How to get these objects by their prim path and simulate the pose by using set_world_pose?
You can use prims_utils.get_prim_children or if you need some filtering prims_utils.get_all_matching_child_prims
You can find a set_world_pose
in the same docs
I have imported the usd of a factory into isaacsim, like /world/factory. how to call out the object in the child below the factory , like /world/factory/sensor ,the sub prim path and then to set world pose of this sensor separately?
absolute_asset_path = “/home/masais/factory.usd”
add_reference_to_stage(usd_path=absolute_asset_path, prim_path=“/World/myfactory”)
myfactory = world.scene.add(RigidPrim(prim_path=“/World/myfactory”, name=“myfactory”,
scale = [0.1],
position=[0,0,0.8280]
))
self._world = self.get_world()
self._factory = self._world.scene.get_object(“myfactory”)
Then, how to get the sensor object according to the prim path>/World/myfactory/sensor
using the similar self._sensor =self._world.scene.get_object(“/World/myfactory/sensor”) but it not working