From my understanding, my instructor told me that in order to use the Lagrangian, defined as $$L \equiv T - V,$$ to find the equations of motion via the Euler-Lagrange equations, the generalized coordinates of the system must be derived from the positions of the particles in an inertial reference frame. Is this correct? Also, is this requirement built into the definition of generalized coordinates?
What if we use the most general definition of the Lagrangian, i.e., the one that says the Lagrangian is the function such that the Euler-Lagrange equations give the correct equations of motion?