Question about gravity compensation for UR7e

I am trying to control a UR7e using RTDE, and I would like to ask whether gravity compensation can be automatically adjusted when the robot base is shaking or moving.