Skip to content
Snippets Groups Projects
Commit 26fca942 authored by beuchatp's avatar beuchatp
Browse files

Fixed typos in other object FAQ

parent 073e0030
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment