using dynamic reconfigure to change publisher and subscriber