Hi authors,
First of all, thank you for this excellent work and open-sourcing the code! I've learned a lot from your implementation.
I have a question about the GPS coordinate system used in your code. In the file streamvln_dagger.py, line 217, there is a comment:
# Habitat GPS makes west negative, so flip ycamera_position=np.array([x, -y, self._camera_height+height])
I'vetracedthisGPSdefinitionbacktotheHabitatsourcecodeinhabitat-lab/habitat/tasks/nav/nav.pywherethe2DGPSiscomputedas:
# Habitat source code (nav.py)agent_position=quaternion_rotate_vector(...) # inverse rotation to agent's frameifself._dimensionality==2:
returnnp.array([-agent_position[2], agent_position[0]], dtype=np.float32)
SotheGPS (x, y) Igetfromobservation["gps"] correspondsto:
-x=-agent_position[2] (forwarddirection, alignedwiththelocal-Zaxisoftheagent, displacementrelativetotheagent'sstartingposition)
-y=agent_position[0] (rightdirection, alignedwiththelocalXaxisoftheagent, displacementrelativetotheagent'sstartingposition)
Therefore, Iwanttoask:Whyisthey-coordinatenegated (changedto-y) whencalculatingcamera_position?Whatisthereasonforflippingthey-axishere?
Hi authors,
First of all, thank you for this excellent work and open-sourcing the code! I've learned a lot from your implementation.
I have a question about the GPS coordinate system used in your code. In the file
streamvln_dagger.py, line 217, there is a comment: