You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to attach a camera to my robot's link using the script from play_camera.py.
I initialized my robot as: robot = my_world.scene.add(PR2(prim_path="/World/PR2", name="pr2"))
and spawned the camera as: camera.spawn("/World/PR2/wide_stereo_r_stereo_camera_frame") where the prim_path is the link where I would like to attach the camera.
Instead of attaching to the provided prim_path, it is spawned at a distance from the given link ( at a different spot and height in the air than that of the link )
Kindly let me know if there is a way to attach the camera to a link. Thanks
Is it possible to get the script and asset so that we can try reproducing and fixing it from our end?
It turned out that camera.set_world_pose_ros() was being called in the script which was messing up with the position.
I have another query, the main viewport in the gui displays the new camera created by default. If I change it back to “Perspective” from the gui, camera.data.output returns data from the perspective camera, and not from the camera on the robot anymore.
Do you have a suggestion in mind for this ? Thanks
That's strange. The camera uses Hydra textures which don't require opening a new viewport. So by default, it should be opening the "Perspective" camera.
I ran the play_camera.py again and it shows the default camera as the perspective camera. I switched the viewport to use the created camera and then back to "Perspective". The behavior remains unchanged for me.
Hmm , Interesting.
In my case, it also always open a new viewport window for every camera created.
Could it be because of the isaac-sim version?
I am using 2022.1.1.
Activity
Mayankm96 commentedon Mar 20, 2023
Can you try the following to see if it fixes the issue:
khalidA16 commentedon Mar 20, 2023
Thank you for your reply. I tried your change but now the camera is created farther.
Mayankm96 commentedon Mar 20, 2023
Is it possible to get the script and asset so that we can try reproducing and fixing it from our end?
khalidA16 commentedon Mar 20, 2023
It turned out that
camera.set_world_pose_ros()was being called in the script which was messing up with the position.I have another query, the main viewport in the gui displays the new camera created by default. If I change it back to “Perspective” from the gui,
camera.data.outputreturns data from the perspective camera, and not from the camera on the robot anymore.Do you have a suggestion in mind for this ? Thanks
Mayankm96 commentedon Mar 21, 2023
That's strange. The camera uses Hydra textures which don't require opening a new viewport. So by default, it should be opening the "Perspective" camera.
I ran the
play_camera.pyagain and it shows the default camera as the perspective camera. I switched the viewport to use the created camera and then back to "Perspective". The behavior remains unchanged for me.khalidA16 commentedon Mar 21, 2023
Hmm , Interesting.
In my case, it also always open a new viewport window for every camera created.
Could it be because of the isaac-sim version?
I am using 2022.1.1.
Mayankm96 commentedon Mar 21, 2023
Ah yes. The switch from what is now called "legacy" viewport to hydra textures happened in Kit 104 which is what the IsaacSim 2022.2 release is using.
I would recommend using the latest Isaac Sim 2022.2.1 release since there are many bug fixes and improvements that have come in.
Symmetry Augmentation for PPO (isaac-sim#39)
Reflect the UR15 robot ruling and surface the stale step-table geometry
Correct the robot model in the live spec surfaces: UR5e -> UR15
Point the completed Option-E node at the current robot, and close out…
Bank isaac-sim#39: a correct hypothesis, killed at the wrong site
Bank the C-2 mounting implementation design spec (p11)