add function pointer to adjust z function in robot