On a Submarine, “Roll and Pitch” are measured in different ways...To answer your question, I would say they are measured at the SCP (Ship’s Control Panel) using a “Bubble Level” (there are other instruments available).
A “VIP” on-board usually takes the XO’s(Executive Officer) “Stateroom”...then the XO takes a more junior officer’s “extra rack” (bed) or the Captain’s “extra rack”. Depends on how long the stay.
Of note, there are several communication and announcements circuits in the Captain’s Stateroom. The Captain or XO is often awaken for certain ship’s communications or actions and would, therefore awaken the VIP at odd hours.
Pitch and roll are measured by gauges. But there is always a manual backup in case of control panel failure. That's the pitch bubble above my head.

19 years old driving a billion dollar submarine. My God, the opportunities the US military gives you, and the training and trust they put in kids who are just learning to shave.
This was the fairwater planes (on the sail) station (or bow planes in some boats) - controls depth. Stern planes to the left, controls angle (pitch). The waves and your depth below the surface controls roll.
***A “VIP” on-board usually takes the XO’s(Executive Officer) “Stateroom”...then the XO takes a more junior officer’s “extra rack” (bed) or the Captain’s “extra rack”. Depends on how long the stay.
~~~~~~~~~~~~~~~~
Life on board a nuclear submarine (USS Toledo - SSN 769). Discussion and view of the XO quarters (and rack) at about 7:00...
(Mad respect to the bubbleheads out there!)
🐷