Repository navigation
Add supervisor tutorial - #3882
Conversation
…webots into feature-supervisor-tutorial
BenjaminDeleze
left a comment
There was a problem hiding this comment.
It seems very good and useful to me! Maybe @omichel could read it to review the English style as I am quite bad at it.
It would maybe be better to do the tutorial directly in ENU/FLU ?
It may be useful to add a warning regarding the physic instabilities that can be caused by using the Supervisor to move objects.
| Finally, now that a reference to the translation field is available, all that remains to do is to set it to a different value. | ||
| Once again, the supervisor API has all the necessary tools to do so. | ||
| The `translation` field is of type `SFVec3`, which just means it is a three dimensional vector. | ||
| The value of this field can be set by using the `wb_supervisor_field_set_sf_vec3f` function. |
There was a problem hiding this comment.
When speaking about a function, we could maybe put a link toward its documentation (https://www.cyberbotics.com/doc/reference/supervisor?tab-language=python#wb_supervisor_field_set_sf_vec3f, for example)?
omichel
left a comment
There was a problem hiding this comment.
The English looks very good to me.
I just have have a minor suggestion.
|
The problem with doing it with ENU is that it won't touch released branch until December. I was planning on just doing the changes in the |
Sounds good to me. |
Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com>
…webots into feature-supervisor-tutorial
omichel
left a comment
There was a problem hiding this comment.
I tested the Matlab controller and it works fine.
Thank you.
* Fix auto-regeneration crash (#3869) * Fix auto-regeneration crash * Fix typo * Changelog entry * Proper fix * Update src/webots/nodes/utils/WbSupervisorUtilities.cpp Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com> * Fix Clang format Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com> * Update discord docs. (#3877) Co-authored-by: DavidMansolino <DavidMansolino@github.com> * Fixed line endings (#3880) * Fixed line endings * added driver.def * Added car.def * Update Solid.wrl (#3881) * Fix lights cast shadow (#3883) * Fix visibility distance * remove comment * max value + comment * Update src/wren/Scene.cpp Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com> * clang format Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com> * Add supervisor tutorial (#3882) * Beginning * Handson 2 * Hands-on 3 * continuation * hands-on 4 * format * format test * test * Finalize * Finalize * Fix sources * Fix errors * Fix referenceS * Remove reference * Fix * Add function links * Fix * Update docs/guide/tutorial-8-the-supervisor.md Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com> * Review fixes * minor * Fix * Fix matlab Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com> * Cleanup wheel acceleration computation (#3854) * Fix * fix * Update driver.c Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com> * Update discord docs. (#3929) Co-authored-by: DavidMansolino <DavidMansolino@github.com> * fix arccos boundaries (#3934) * fix acos boundaries + add ToString * include boundaries for performance * fix clang Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: DavidMansolino <DavidMansolino@github.com> Co-authored-by: Benjamin Délèze <benjamin.deleze@cyberbotics.com> Co-authored-by: joachimhgg <48200998+joachimhgg@users.noreply.github.com>
Description
Add basic tutorial for the usage of a supervisor
preview: https://www.cyberbotics.com/doc/guide/tutorial-8-the-supervisor?version=feature-supervisor-tutorial
PS: I don't have Matlab, can somebody test it?
You need to setup up the world as explained in the first section and all the code is available at the end.