ROS workspace error: cannot open source file

Error:

 Solution:

Find the header file in the include directory of the function package,

copy path

Open the c_cpp_properties.json file in the .vscode folder:

Add the file to the include:

"${workspaceFolder}/devel/include",

${workspaceFolder}/src/robot_gazebo/include

problem solved

 

 

Guess you like

Origin blog.csdn.net/weixin_45226065/article/details/131774218