kinematic_state: Added warning about temporary vector creation. Preallocate vector memory instead of push_back.