in this paper a novel direct adaptive fuzzy system is proposed to control flexible-joints robot including actuator dynamics. the design includes two interior loops: the inner loop controls the motor position using proposed approach while the outer loop controls the joint angle of the robot using a pid control law. one novelty of this paper is the use of a pso algorithm for optimizing the contro...