added function to cenv to get desired pose