This PR moves the rosdep installation, initialization, and update outside of ROS 2 installation check. In some cases, ROS 2 could already be installed, but rosdep either hasn't been installed, hasn't been initialized, or hasn't been updated in a long time, preventing rosdep from pulling in required dependencies in later steps.
This PR moves the rosdep installation, initialization, and update outside of ROS 2 installation check. In some cases, ROS 2 could already be installed, but rosdep either hasn't been installed, hasn't been initialized, or hasn't been updated in a long time, preventing rosdep from pulling in required dependencies in later steps.