fixed lots of edge cases with ExtractOpenRAVETrajectoryFromProfiles