ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
CLion is a nice tool but for me it did not work out of the box as claimed sometimes. This should be a beginner (primary targeting students) friendly guide on how to use CLion with ROS.
*Note: this how to is tested on Ubuntu 16.04 with CLion 2017.1.3 and 2017.3.2, the process might be different with other versions.
I recommend to check if catkin_make
runs properly in your workspace before you start with this guide. In this way you know CLion is the problem, not ROS.*
.desktop
file, see below).<your workspace path>/src
folder in your workspace<your workspace path>/build
and applyCMakeList.txt
file in CLion and select "Reload CMake Project"CLion should work properly now.
Always start CLion from terminal unless you changed the .desktop
file!
At the restart of CLion the Project will be shown at the recent projects with the name "src". You can change this name by adding a .name
(containging only a name for the project) to <your workspace path>/src/.idea
.
If CLion shows you the info "This file does not belong to any project target" right-click the includes
folder an click "Mark Directory as" and select "Project Sources and Headers".
Now you can run and debug from the terminal. This does not work with .launch
files
.launch
files:CLion does not recognize .launch
files as XML files by default.
*.launch
.launch files should now have proper highlighting and autocomplete
.desktop
file:<your home folder>/.local/share/applications
change the according line the .desktop
file for your CLion version to:
Exec=bash -i -c "<clion installation path>/bin/clion.sh" %f
CLion is free for students: students click here
2 | No.2 Revision |
CLion is a nice tool but for me it did not work out of the box as claimed sometimes. This should be a beginner (primary targeting students) friendly guide on how to use CLion with ROS.
*Note: this how to is tested on Ubuntu 16.04 with CLion 2017.1.3 and 2017.3.2, the process might be different with other versions.
I recommend to check if catkin_make
runs properly in your workspace before you start with this guide. In this way you know CLion is the problem, not ROS.*
.desktop
file, see below).<your workspace path>/src
folder in your workspace<your workspace path>/build
and applyCMakeList.txt
file in CLion and select "Reload CMake Project"CLion should work properly now.
Always start CLion from terminal unless you changed the .desktop
file!
At the restart of CLion the Project will be shown at the recent projects with the name "src". You
The project/workspace can change this name be renamed by adding renaming the <your workspace path>/src/.idea/src.iml
to <your workspace name>.iml
and changing the path to it in <your workspace path>/src/.idea/modules.xml
and by creating a file .name
<your workspace path>/src/.idea/.name
(containging only a name for the project) to <your workspace path>/src/.idea
.
cd src/.idea
NEW_NAME=my_workspace
mv src.iml $NEW_NAME.iml
sed -i -e 's/src/$NEW_NAME/g'
printf "$NEW_NAME" > .name
If CLion shows you the info "This file does not belong to any project target" right-click the includes
folder an click "Mark Directory as" and select "Project Sources and Headers".
Now you can run and debug from the terminal. This does not work with .launch
files
.launch
files:CLion does not recognize .launch
files as XML files by default.
*.launch
.launch files should now have proper highlighting and autocomplete
.desktop
file:<your home folder>/.local/share/applications
change the according line the .desktop
file for your CLion version to:
Exec=bash -i -c "<clion installation path>/bin/clion.sh" %f
CLion is free for students: students click here
3 | No.3 Revision |
CLion is a nice tool but for me it did not work out of the box as claimed sometimes. This should be a beginner (primary targeting students) friendly guide on how to use CLion with ROS.
*Note: this how to is tested on Ubuntu 16.04 with CLion 2017.1.3 and 2017.3.2, the process might be different with other versions.
I recommend to check if catkin_make
runs properly in your workspace before you start with this guide. In this way you know CLion is the problem, not ROS.*
.desktop
file, see below).<your workspace path>/src
folder in your workspace<your workspace path>/build
and applyCMakeList.txt
file in CLion and select "Reload CMake Project"CLion should work properly now.
Always start CLion from terminal unless you changed the .desktop
file!
At the restart of CLion the Project will be shown at the recent projects with the name "src".
The project/workspace can be renamed by renaming the <your workspace path>/src/.idea/src.iml
to <your workspace name>.iml
and changing the path to it in <your workspace path>/src/.idea/modules.xml
and by creating a file <your workspace path>/src/.idea/.name
(containging only a name for the project).
cd src/.idea
NEW_NAME=my_workspace
mv src.iml $NEW_NAME.iml
sed -i -e 's/src/$NEW_NAME/g'
printf "$NEW_NAME" > .name
If CLion shows you the info "This file does not belong to any project target" right-click the includes
folder an click "Mark Directory as" and select "Project Sources and Headers".
Now you can run and debug from the terminal. This does not work with .launch
files
.launch
files:CLion does not recognize .launch
files as XML files by default.
*.launch
.launch files should now have proper highlighting and autocomplete
.desktop
file:<your home folder>/.local/share/applications
change the according line the .desktop
file for your CLion version to:
Exec=bash -i -c "<clion installation path>/bin/clion.sh" %f
CLion is free for students: students click here
4 | No.4 Revision |
CLion is a nice tool but for me it did not work out of the box as claimed sometimes. This should be a beginner (primary targeting students) friendly guide on how to use CLion with ROS.
*Note: this how to is tested on Ubuntu 16.04 with CLion 2017.1.3 and 2017.3.2, the process might be different with other versions.
I recommend to check if catkin_make
runs properly in your workspace before you start with this guide. In this way you know CLion is the problem, not ROS.*
.desktop
file, see below).<your workspace path>/src
folder in your workspace<your workspace path>/build
and applyCMakeList.txt
file in CLion and select "Reload CMake Project"CLion should work properly now.
Always start CLion from terminal unless you changed the .desktop
file!
At the restart of CLion the Project will be shown at the recent projects with the name "src".
The project/workspace can be renamed by renaming the <your workspace path>/src/.idea/src.iml
to <your workspace name>.iml
and changing the path to it in <your workspace path>/src/.idea/modules.xml
and by creating a file <your workspace path>/src/.idea/.name
(containging only a name for the project).
cd src/.idea
NEW_NAME=my_workspace
mv src.iml $NEW_NAME.iml
sed -i -e 's/src/$NEW_NAME/g'
's/src/$NEW_NAME/g' modules.xml
printf "$NEW_NAME" > .name
If CLion shows you the info "This file does not belong to any project target" right-click the includes
folder an click "Mark Directory as" and select "Project Sources and Headers".
Now you can run and debug from the terminal. This does not work with .launch
files
.launch
files:CLion does not recognize .launch
files as XML files by default.
*.launch
.launch files should now have proper highlighting and autocomplete
.desktop
file:<your home folder>/.local/share/applications
change the according line the .desktop
file for your CLion version to:
Exec=bash -i -c "<clion installation path>/bin/clion.sh" %f
CLion is free for students: students click here
5 | No.5 Revision |
CLion is a nice tool but for me it did not work out of the box as claimed sometimes. This should be a beginner (primary targeting students) friendly guide on how to use CLion with ROS.
*Note: this how to is tested on Ubuntu 16.04 with CLion 2017.1.3 and 2017.3.2, the process might be different with other versions.
I recommend to check if catkin_make
runs properly in your workspace before you start with this guide. In this way you know CLion is the problem, not ROS.*
.desktop
file, see below).<your workspace path>/src
folder in your workspace<your workspace path>/build
and applyCMakeList.txt
file in CLion and select "Reload CMake Project"CLion should work properly now.
Always start CLion from terminal unless you changed the .desktop
file!
At the restart of CLion the Project will be shown at the recent projects with the name "src".
The project/workspace can be renamed by renaming the <your workspace path>/src/.idea/src.iml
to <your workspace name>.iml
and changing the path to it in <your workspace path>/src/.idea/modules.xml
and by creating a file <your workspace path>/src/.idea/.name
(containging only a name for the project).
cd src/.idea
NEW_NAME=my_workspace
mv src.iml $NEW_NAME.iml
sed -i -e 's/src/$NEW_NAME/g' "s/src/$NEW_NAME/g" modules.xml
printf "$NEW_NAME" > .name
If CLion shows you the info "This file does not belong to any project target" right-click the includes
folder an click "Mark Directory as" and select "Project Sources and Headers".
Now you can run and debug from the terminal. This does not work with .launch
files
.launch
files:CLion does not recognize .launch
files as XML files by default.
*.launch
.launch files should now have proper highlighting and autocomplete
.desktop
file:<your home folder>/.local/share/applications
change the according line the .desktop
file for your CLion version to:
Exec=bash -i -c "<clion installation path>/bin/clion.sh" %f
CLion is free for students: students click here
6 | No.6 Revision |
CLion is a nice tool but for me it did not work out of the box as claimed sometimes. This should be a beginner (primary targeting students) friendly guide on how to use CLion with ROS.
*Note: this how to is tested on Ubuntu 16.04 with CLion 2017.1.3 and 2017.3.2, the process might be different with other versions.
I recommend to check if catkin_make
runs properly in your workspace before you start with this guide. In this way you know CLion is the problem, not ROS.*
.desktop
file, see below).<your workspace path>/src
folder in your workspace<your workspace path>/build
and applyCMakeList.txt
file in CLion and select "Reload CMake Project"CLion should work properly now.
Always start CLion from terminal unless you changed the .desktop
file!
At the restart of CLion the Project will be shown at the recent projects with the name "src".
The project/workspace can be renamed by renaming the <your workspace path>/src/.idea/src.iml
to <your workspace name>.iml
and changing the path to it in <your workspace path>/src/.idea/modules.xml
and by creating a file <your workspace path>/src/.idea/.name
(containging only a name for the project).
cd src/.idea
NEW_NAME=my_workspace
mv src.iml $NEW_NAME.iml
sed -i -e "s/src/$NEW_NAME/g" modules.xml
printf "$NEW_NAME" > .name
If CLion shows you the info "This file does not belong to any project target" right-click the includes
folder an click "Mark Directory as" and select "Project Sources and Headers".
Now you can run and debug from the terminal. This does not work with .launch
files
.launch
files:CLion does not recognize .launch
files as XML files by default.
*.launch
.launch files should now have proper highlighting and autocomplete
.desktop
file:<your home folder>/.local/share/applications
change the according line the .desktop
file for your CLion version to:
Exec=bash -i -c "<clion installation path>/bin/clion.sh" %f
CLion is free for students: students click here