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

Added FAQ for rostopic usage

parent a5fd934e
No related branches found
No related tags found
No related merge requests found
......@@ -245,4 +245,15 @@ and immediately after these existing lines of code, add the following new lines
coordinatesToLocal(otherObject);
controllerCall.request.otherCrazyflies.push_back(otherObject);
```
Now the ``.otherCrazyflies`` property of the ``request`` variable that is passed to the ``calculateControlOutput`` function of your ``CustomControllerService.cpp`` file will contain the position of the ``otherObject`` as the first entry in the array, i.e., you can access the data via ``request.otherCrazyflies[0].{x,y,z,roll,pitch,yaw}``.
\ No newline at end of file
Now the ``.otherCrazyflies`` property of the ``request`` variable that is passed to the ``calculateControlOutput`` function of your ``CustomControllerService.cpp`` file will contain the position of the ``otherObject`` as the first entry in the array, i.e., you can access the data via ``request.otherCrazyflies[0].{x,y,z,roll,pitch,yaw}``.
### I added some advertise, publish, subscribe topics but not getting the desired behaviour, what debugging tools are avilable?
<details>
<summary>Click here to expand</summary>
If you code changes compile successfully and your node runs without crashing, then the command line tool ``rostopic`` is the most useful tool for debugging errors.
</details>
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