Duration class bug fixed in commander conversion.

JointTrajectoryPoint time_from_start should be
of type Duration instead of float.
fix header for demo code
use new attach / detach operations