how to get first-person view?

Discussion in 'Visualization' started by lin, Feb 28, 2018.

  1. lin

    lin

    I want to do visual navigation in mujoco, and need the camera to rotate if the agent rotate an angle.
    I define the camera as follows:
    Code:
    <camera name="track" mode="trackcom" target="torso" fovy="45" pos="-2 0 0.3" xyaxes="0 -1 0 0 0 1"/>
    But the camera always point to a fixed direction. How can I get the first-person view?

    Thanks!
     
  2. lin

    lin

    Sorry, the above code has a mistake, I'm using the following definition:
    Code:
    <camera name="track" mode="trackcom" fovy="45" pos="-2 0 0.3" xyaxes="0 -1 0 0 0 1"/>
     
  3. lin

    lin

    After do some trials, the mode "fixed" of camera solves my issue.