Managed to get the openni wrapper stack working with MORSE after much fiddling around, this is only the code that doesn't touch the simulator setup