converted trajectory action to use WPI definition