You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/using-your-ide.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,7 @@ Then choose these settings:
124
124
125
125
Where "MyController" is the name of a new or already existing controller
126
126
directory, and where "Location" must indicate the "controllers" subdirectory of
127
-
your Webots project directory.
127
+
your Webots project directory. Make sure to check the "Place solution and project in the same directory" checkbox.
128
128
129
129
3. Then you can add a C or C++ source file to your project: Choose either: `Project / Add Existing Item` or `Project / Add New Item / C++ File (.cpp)`.
130
130
In the second case you can copy the content of one of the C/C++ examples of Webots distribution.
@@ -184,9 +184,9 @@ If you want to use the C++ API follow these instructions:
184
184
You can proceed like this:
185
185
186
186
- In Visual Studio, in the `Solution Explorer`: right-mouse-click on the `Sources Files` folder, then select `Add / New Filter`.
187
-
This should create a `NewFilter1` subfolder in your `Sources Files` folder.
188
-
Then select the `NewFilter1` and with the right-mouse-button: choose the `Add / Existing Item...` menu.
189
-
In the file dialog, go to the "C:\Program Files\Webots\resources\languages\cpp" directory, then select all the .cpp files (but no other file) in that directory and hit the `Add` button.
187
+
This should create a `NewFilter` subfolder in your `Sources Files` folder.
188
+
Then select the `NewFilter` and with the right-mouse-button: choose the `Add / Existing Item...` menu.
189
+
In the file dialog, go to the "C:\Program Files\Webots\src\controller\cpp" directory, then select all the .cpp files (but no other file) in that directory and hit the `Add` button.
190
190
This should add the "Accelerometer.cpp, Camera.cpp, Compass.cpp", etc. source files to your project.
191
191
192
192
6. Now you should be able to build your controller with the `Build / Build MyController` menu item (or the <kbd>F7</kbd> key).
0 commit comments