Enable to set weight for sample-robot.

Enable to set weight for sample-robot.