ros-integrate icon indicating copy to clipboard operation
ros-integrate copied to clipboard

Auto-configuring CMake build and devel paths

Open jukindle opened this issue 3 years ago • 1 comments

Feature: Automatically configuring CMake build path and devel prefix for catkin_tools compatibility.

Background When developing with catkin_tools and CLion, each package needs to be opened individually and the CMake build path + devel space needs to be manually set.

Details It would be nice to have a "Open ROS Package" option which automatically sets the paths according to this stackoverflow answer. Unfortunately, I am not familiar with IntelliJ Plugin development, elsewise I would have helped you. What I am familiar with is how to obtain these paths:

  1. Set $package_name by parsing the package.yaml file ("name")

  2. Obtain the CMake options by using catkin locate:

      -DCATKIN_DEVEL_PREFIX:PATH=$(catkin locate)/devel/.private/$package_name
    
  3. Obtain the build directory as

     $(catkin locate)/build/$package_name
    

jukindle avatar Mar 05 '21 07:03 jukindle

Hi @jukindle ,

While the plugin already detects (and locates) all ROS packages in the workspace as well as the location of the workspace itself (as of issue #56), implementing this feature requires CLion specific integration (specifically, with its CMake interface). I do plan on implementing this, but the plugin doesn't know how to work with CLion specific features yet.

Noam-Dori avatar May 13 '21 06:05 Noam-Dori