Please note that the twist_controller has a dynamic_reconfigure parameter twist_gain to achieve exactly this.