Added a function for switching between ROS versions.