question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recommended steps for working with ROS workspaces

See original GitHub issue

I am currently using compdb to create a compile_commands.json file that works with clang-tidy. I, however, have multiple packages in my ROS workspace that export a comile_commands.jsonfile (i.e. have theCMAKE_EXPORT_COMPILE_COMMANDSoption set). Therefore, I wondered if there is a way to represent all the compilation databases of the packages contained in my ROS workspace into onecompile_commands.json` output file.

Related to https://github.com/Sarcasm/compdb/issues/2#issuecomment-338475035.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
rickstaacommented, Nov 10, 2021

For future reference, I found another way to use clang-tidy in a catkin workspace. Vscode has the clang-tidy and catkin-tools vscode extensions. The catkin-tools does does something similar to compdb. More information about the setup can be found here.

0reactions
rickstaacommented, Nov 6, 2021

Ah, great. Thanks for the tip.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating a workspace — ROS 2 Documentation
Creating a workspace · Background · Prerequisites · Tasks. 1 Source ROS 2 environment. 2 Create a new directory. 3 Clone a sample...
Read more >
Part 2: 7 Simple Steps to create and build your first ROS ...
3. Creating and building our ROS Package · Step 1: Create a catkin workspace and a source folder · Step 2: Initialize the...
Read more >
ROS: Create Multiple Catkin Workspaces
All in all, you can see that creating a catkin workspace is a two-step process: 1. You create a specific folder and use...
Read more >
Create Catkin Workspace — Industrial Training documentation
We have a good installation of ROS, and we need to take the first step to setting up our particular application. Your goal...
Read more >
Step By Step Integration of ROS in VS Code - GitHub
1. VS Code Extensions · 2. Set Up Your VS Code Workspace · 3. Intellisense · 4. Create Your Package · 5. Building...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found