Which specific package are you trying to build? Is it moveit2_scripts?
moveit2_scripts is the package that had this error, and the error was that it could not find the dependency grasping_msgs/action/.....
In addition to ensuring that the grasping_msgs package is available, you also need to ensure that it is properly included as a dependency in moveit2_scripts, and the best way to do that is to include it when creating that package.