amslabtech / dwa_planner

ROS implementation of DWA(Dynamic Window Approach) Planner
https://amslabtech.github.io/dwa_planner/
BSD 3-Clause "New" or "Revised" License
449 stars 84 forks source link

include issue when getting the code running #77

Closed RomanOrion closed 10 months ago

RomanOrion commented 10 months ago

hi, sorry its another probably very obvious question but a huge portion of the dwa_planner.h #include issues have appeared, and its asking to update the include path but doesn't allow me to go "up" a level. is there a way to fix the include issue. ( sorry i know these a really basic questions but other resources dont fix the issue)

ToshikiNakamura0412 commented 10 months ago

When does the issue occur? Is it when you perform a build? Or when you run Node? Alternatively, is it when you display the code in the editor?

If you have screenshots, I may be able to give you better advice.

RomanOrion commented 10 months ago

image Hi so it happens immediately apon opening the code and im not sure the build goes through

ToshikiNakamura0412 commented 10 months ago

It is due to the fact that the include path in the editor is not set properly; the ROS extension (Extension ID: ms-iot.vscode-ros) automatically adds the path to .vscode/c_c_cpp_properties.json. You can also add it yourself. The following is an example. .vscode/c_cpp_properties.json

{
  "configurations": [
    {
      "browse": {
        "databaseFilename": "${default}",
        "limitSymbolsToIncludedHeaders": false
      },
      "includePath": [
        "/home/<user>/catkin_ws/devel/include/**",
        "/opt/ros/noetic/include/**",
        "/home/<user>/catkin_ws/src/dwa_planner/include/**",
        "/usr/include/**"
      ],
      "name": "ROS",
      "intelliSenseMode": "gcc-x64",
      "compilerPath": "/usr/bin/gcc",
      "cStandard": "gnu11",
      "cppStandard": "c++17"
    }
  ],
  "version": 4
}

Change to an appropriate name.