Run with this: roslaunch republish.launch The node can be configured for the following: In topic name Out topic name Out codec type Timeout before killing the node This takes advantage of the respawn of the roslaunch system to keep the node alive