diff --git a/pps_wiki/faq.md b/pps_wiki/faq.md index c9bafbf30e5c640fd11c4177330b5a6ba54aa6a2..b3b9aa5e26b48d2920e6f56175f8b27b8797ccc7 100644 --- a/pps_wiki/faq.md +++ b/pps_wiki/faq.md @@ -168,10 +168,10 @@ void xyz_yaw_to_follow_callback(const Setpoint& newSetpoint) setpoint[2] = newSetpoint.z; setpoint[3] = newSetpoint.yaw; } - ``` + ### How can my controller receive the position of another object recognised by the Vicon system? In the ``calculateControlOutput`` function of your ``CustomControllerService.cpp`` file is called everytime that the Vicon system provides new data, where this data is provided to ``calculateControlOutput`` function in the ``request`` variable and the calculated control output to apply is returned in the ``response``. In this way the ``calculateControlOutput`` function is performing in ROS what is referred to as a service. This service is advertised in the ``main()`` function of your ``CustomControllerService.cpp`` file by the line of code: