[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically detect ros installation and source setup file #55

Open
wmmc88 opened this issue Oct 26, 2020 · 1 comment
Open

Automatically detect ros installation and source setup file #55

wmmc88 opened this issue Oct 26, 2020 · 1 comment
Assignees
Labels
feature I want something new

Comments

@wmmc88
Copy link
wmmc88 commented Oct 26, 2020

Feature:
Automatically detect ros installation directory(ex. /opt/ros/noetic) and source the setup file(source /opt/ros/noetic/setup.bash).

Background
#52 (comment)
This feature would prevent needing to source the ros install and running clion from a sourced terminal. Without sourcing, the plugin doesn't automatically detect the ros path and any cmake configuration for ros packages would error at cmake files mentioning catkin

Details
I'd like for the plugin to detect ros installs on the system (typically always at /opt/ros/<version>), and source the setup file(/opt/ros/<version>/setup.bash) so that cmake would process correctly without needing to run clion from a sourced terminal.

@wmmc88 wmmc88 added the feature I want something new label Oct 26, 2020
@StefanFabian
Copy link

If you were to do this, you'd want to source the setup.bash or setup.sh of the loaded workspace as that is the environment you typically want to work in.
The ros setup file is usually not sufficient as it would lack all local packages present in your catkin workspace.
However, the problem with CLion requiring a sourced environment is easily fixed by modifying the desktop item as described here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature I want something new
Projects
None yet
Development

No branches or pull requests

3 participants