10. Adding Camera#
In this tutorial, we demonstrate how to add and mount cameras in MetaSim.
–sim
Common Usage#
python get_started/10_mount_camera.py --sim <simulator>
you can also render in the headless mode by adding --headless
flag, only supported in IsaacGym
and IsaacLab
.
This script sets up a simulated scene and records video from two different camera perspectives
Third-person view: A fixed camera placed above and behind the robot, observing the scene from a distance.
Ego-centric view: A camera mounted directly on the robot’s torso_link, capturing the environment from the robot’s own perspective.
Both cameras use the PinholeCameraCfg configuration and record images at a resolution of 1024×1024.You can freely modify the camera pose (position and orientation) in the script to explore how it affects the rendered views.
You will get the following Videos:#
Isaac Gym
Isaac Lab