Using catkin_tools
catkin config -a --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Debug
#rosdep install --reinstall --simulate --from-paths ./src --ignore-src
#since running in singularity instance, run after starting with root privleges
apt-get install ros-melodic-ros-control
apt-get install ros-melodic-ros-controllers
apt-get install ros-melodic-husky-navigation
In the workspace root directory run,
git apply --directory=src/hratc2017_framework patches/hratc_framework.patch
git apply --directory=src/hratc2017_robot patches/hratc_robot.patch