[webots] Detailed records and problem analysis of joint debugging with vs2022

1. Generate the controller file in webots and choose to use the IDE of vs.

2. Open vs2022 and open the generated controller folder to configure the environment (it seems more troublesome to use 2019?)

If you do not see the project in the opened folder, you can double-click the .sln file to open the project.

After that, I will learn to add the project file path according to other documents. I will not describe them one by one. The following is the final picture.

3. About environment variables

The path in the project properties may contain <WEBOTS_HOME>. Make sure the path is the webots installation path.

Settings->Edit system environment variables->Environment variables

Find <WEBOTS_HOME> in the system variable and determine whether it is correct, otherwise just modify it.

Note: When running in VS, you need to change the controller of webots to extern! !

Guess you like

Origin blog.csdn.net/m0_73747975/article/details/134470930