git clone https://github.com/AcutronicRobotics/moveit2.git
cd moveit2
bash ubuntu-install.sh
The above script will install for you all the dependencies and create and compile the work space under /home/<currentuser>/moveit2_ws
.
If you already have this path under your system the script with exit without compile nothing. If you would like to specify other path on your system only change the following line and set there the path.: