Skip to content

Simple custom message subscriber #3

Answered by noelex
kinrep71 asked this question in Q&A
Discussion options

You must be logged in to vote

You need to source setup.bat of the ROS distro you wish to use before running the application.

If you would like to debug the project in Visual Stuidio, you can modify launchSettings.json to manually setup ROS environment variables.

For example:

{
  "profiles": {
    "Foxy": {
      "commandName": "Project",
      "environmentVariables": {
        "ROS_DISTRO": "foxy",
        "ROS_LOCALHOST_ONLY": "0",
        "ROS_PYTHON_VERSION": "3",
        "ROS_VERSION": "2",
        "PATH": "D:/sdk/ros/foxy/bin;C:/Program Files/OpenSSL-Win64/bin;C:/ProgramData/chocolatey/lib/tinyxml2/lib",
        "AMENT_PREFIX_PATH": "D:/sdk/ros/foxy"
      }
    }
  }
}

Note: Change the paths to match your system…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kinrep71
Comment options

Answer selected by kinrep71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants