This is a basic example showing how to augment a controlled system with a custom controller and forward integrate it over time.
int main(
int argc,
char** argv)
{
x(0) = 1.0;
x(1) = 0.0;
double kp = 10;
double kd = 1;
uff << 2.0;
std::shared_ptr<CustomController> controller(
new CustomController(uff, kp, kd));
oscillator->setController(controller);
size_t nSteps = 1000;
std::cout << "state after integration: " << x.transpose() << std::endl;
return 0;
}