update dmc_trajectory and examples for G2