Fix script for simulation

TODO : the chanel should be only open in sim mode
Merge branch 'tmp_traj_mode' of https://github.com/hubo/hubo-motion-rt into tmp_traj_mode