Closed kumar-sanjeeev closed 1 year ago
Thank you for the repro.
From my investigation, it is moving around with the robot. However, you haven't set a transform from the hand frame to the camera frame. because of this the sensor is inside the hand mesh and you only see black pixels.
I changed the spawn call to the following and it works as expected:
hand_camera.spawn("/World/Robot_1/panda_hand/hand_camera", translation=(0.0, 0.0, 0.5))
You can switch the viewport to show your camera (tutorial here). With the above line change, I see the following:
https://github.com/NVIDIA-Omniverse/Orbit/assets/12863862/2d87f08e-9bf1-4e0b-9b35-82148b505724
Hi @Mayankm96
Thanks for replying to my query. I tried what you suggested, its works :)
Question
I am trying to create an environment where I need to add two cameras to the Franka Panda Hand, one looking at the target from the left and the other from the right. I tried to achieve this by adding the camera sensor as a child to the panda hand. I thought that as the panda hand moves, the camera would also move with it, as they have a child-parent relation. However, it does not behave in the same way I thought; the camera's position and orientation don't change as the panda hand moves in the environment. To make this work, I updated the position of the camera with the current end-effector position after each physics step. I am attaching the script I used for this work as a reference.
Do we have any examples in the current available release version where the camera is mounted on the panda hand and moves along with it ?