  Cyclic motions are fundamental patterns in robotic applications including
industrial manipulation and legged robot locomotion. This paper proposes an
approach for the online modulation of cyclic motions in robotic applications.
For this purpose, we present an integrated programmable Central Pattern
Generator (CPG) for the online generation of the reference joint trajectory of
a robotic system out of a library of desired periodic motions. The reference
trajectory is then followed by the lower-level controller of the robot. The
proposed CPG generates a smooth reference joint trajectory convergence to the
desired one while preserving the position and velocity joint limits of the
robot. The integrated programmable CPG consists of one novel bounded output
programmable oscillator. We design the programmable oscillator for encoding the
desired multidimensional periodic trajectory as a stable limit cycle. We also
use the state transformation method to ensure that the oscillator's output and
its first-time derivative preserve the joint position and velocity limits of
the robot. With the help of Lyapunov-based arguments, We prove that the
proposed CPG provides the global stability and convergence of the desired
trajectory. The effectiveness of the proposed integrated CPG for trajectory
generation is shown in a passive rehabilitation scenario on the Kuka iiwa robot
arm, and also in a walking simulation on a seven-link bipedal robot.
