Fixed autograspgenerate buttons to properly connect to the propper cpp file.