Thank you for your response.
I tried using 'rep.create.camera(), but the issue of the image being rotated sideways was not resolved.
When capturing images without setting any parameters related to rotation, the images do not rotate sideways, but the images captured by the camera all appear very similar, and I cannot capture images with a diverse range of distances, as in Isaac Sim 2021.1.1.
In other words, I believe that the rotation of the camera is likely dependent on the settings of the rotation parameters.
To capture various images within the scene, similar to Isaac Sim 2021.1.1, how should I configure the parameters for ‘rep.create.camera()’ and ‘rep.modify.pose()’?
Below is the current code:"
def add_camera_to_viewport(self):
self.camera = rep.create.camera()
self.active_vp_window = omni.kit.viewport.utility.get_active_viewport()
self.active_vp_window.camera_path = "/Replicator/Camera_Xform/Camera"
kit.update()
def setup_replicator(self):
# camera = rep.get.prims(path_pattern=str(self.camera.GetPath()))
camera = rep.get.prims(path_pattern = "/Replicator/Camera_Xform/Camera")
with self.rep.new_layer():
with self.rep.trigger.on_frame():
with camera:
rep.modify.pose(
position=rep.distribution.uniform((-4.39, -1.39, 0.2), (-1.30, 20, 0.3)))
here are the captured images. The camera’s captured images exhibit a similar sense of distance.
