Robust Kernel ICP for C++

Hello there!
Does anyone have an idea on how to implement the Robust Kernel (or any other loss function) for ICP in C++? When I set the weight for the Kernel and run the ICP I got this error from the console:

(process 347148) exited with code -1073741819.

Thanks for your help!:slight_smile: