Noam-Dori / ros-integrate

Extends IntelliJ-Based IDEs with ROS specific development tools
Apache License 2.0
22 stars 3 forks source link

Auto-configuring CMake build and devel paths #64

Open jukindle opened 3 years ago

jukindle commented 3 years ago

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
Noam-Dori commented 3 years ago

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.