Hi. I set two cube-- one is rigid and other one is visual cube.
from omni.isaac.kit import SimulationApp
simulation_app = SimulationApp({"headless": False})
...
from omni.isaac.core.objects import DynamicCuboid, VisualCuboid
cube = my_world.scene.add(
DynamicCuboid(
# prim_path="/World/random_cube", # The prim path of the cube in the USD stage
prim_path="/Cube", # The prim path of the cube in the USD stage
name="Cube", # The unique name used to retrieve the object from the scene later on
# position=np.array([0, 0, 1.0]), # Using the current stage units which is in meters by default.
# scale=np.array([0.5015, 0.5015, 0.5015]), # most arguments accept mainly numpy arrays.
# color=np.array([0, 0, 1.0]), # RGB channels, going from 0-1
))
target_cube = my_world.scene.add(
VisualCuboid(
# prim_path="/World/random_cube", # The prim path of the cube in the USD stage
prim_path="/Cube_target", # The prim path of the cube in the USD stage
name="TargetCube", # The unique name used to retrieve the object from the scene later on
position=np.array([0, 0, 1.0]), # Using the current stage units which is in meters by default.
scale=np.array([1, 1, 1]), # most arguments accept mainly numpy arrays.
color=np.array([0, 0, 1.0]), # RGB channels, going from 0-1
))
...
cube.set_world_pose(position=np.array([1,1,1]),orientation=np.array([1,0,0,0])) # works
target_cube.set_world_pose(position=np.array([1,1,1]),orientation=np.array([1,0,0,0])) # [Fatal] [omni.usd] Used null prim
but when I try to change world pose of the VisualCube, It causes error. [Fatal] [omni.usd] Used null prim
How can I change pose of the visual cube?