This is a wide topic to be discussed here and similar questions regarding this already exists. You can check this question for more information about comparing ROS and ROS industrial and this for ROS and ROS2.
Here you can also find a nice visual comparison and documentation links.