<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.robojackets.org/index.php?action=history&amp;feed=atom&amp;title=How_to_Setup_CLion_for_ROS</id>
	<title>How to Setup CLion for ROS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.robojackets.org/index.php?action=history&amp;feed=atom&amp;title=How_to_Setup_CLion_for_ROS"/>
	<link rel="alternate" type="text/html" href="https://wiki.robojackets.org/index.php?title=How_to_Setup_CLion_for_ROS&amp;action=history"/>
	<updated>2026-06-21T08:24:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>https://wiki.robojackets.org/index.php?title=How_to_Setup_CLion_for_ROS&amp;diff=18515&amp;oldid=prev</id>
		<title>Athrasher7 at 02:58, 6 February 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.robojackets.org/index.php?title=How_to_Setup_CLion_for_ROS&amp;diff=18515&amp;oldid=prev"/>
		<updated>2020-02-06T02:58:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 02:58, 6 February 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot; &gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set the pattern to &amp;lt;tt&amp;gt;*.launch&amp;lt;/tt&amp;gt; and click &amp;quot;Ok&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set the pattern to &amp;lt;tt&amp;gt;*.launch&amp;lt;/tt&amp;gt; and click &amp;quot;Ok&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:How to Guides]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:How to Guides&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;: Technical&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Software]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Software]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Athrasher7</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.robojackets.org/index.php?title=How_to_Setup_CLion_for_ROS&amp;diff=16986&amp;oldid=prev</id>
		<title>Mbarulic6 at 22:31, 14 September 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.robojackets.org/index.php?title=How_to_Setup_CLion_for_ROS&amp;diff=16986&amp;oldid=prev"/>
		<updated>2018-09-14T22:31:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 22:31, 14 September 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l31&quot; &gt;Line 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:How to Guides]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:How to Guides]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Software]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mbarulic6</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.robojackets.org/index.php?title=How_to_Setup_CLion_for_ROS&amp;diff=16957&amp;oldid=prev</id>
		<title>Mbarulic6 at 19:36, 28 August 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.robojackets.org/index.php?title=How_to_Setup_CLion_for_ROS&amp;diff=16957&amp;oldid=prev"/>
		<updated>2018-08-28T19:36:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 19:36, 28 August 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l29&quot; &gt;Line 29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 29:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Click the plus button next to &amp;quot;Registered Patterns&amp;quot; to add a new pattern&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Click the plus button next to &amp;quot;Registered Patterns&amp;quot; to add a new pattern&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set the pattern to &amp;lt;tt&amp;gt;*.launch&amp;lt;/tt&amp;gt; and click &amp;quot;Ok&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set the pattern to &amp;lt;tt&amp;gt;*.launch&amp;lt;/tt&amp;gt; and click &amp;quot;Ok&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:How to Guides]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mbarulic6</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.robojackets.org/index.php?title=How_to_Setup_CLion_for_ROS&amp;diff=16956&amp;oldid=prev</id>
		<title>Mbarulic6: Created page with &quot;CLion is a popular C/C++ IDE from [JetBrains](http://www.jetbrains.com/). While it works natively with CMake projects, it cannot work out of the box with ROS projects. Catkin...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.robojackets.org/index.php?title=How_to_Setup_CLion_for_ROS&amp;diff=16956&amp;oldid=prev"/>
		<updated>2018-08-28T19:32:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;CLion is a popular C/C++ IDE from [JetBrains](http://www.jetbrains.com/). While it works natively with CMake projects, it cannot work out of the box with ROS projects. Catkin...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;CLion is a popular C/C++ IDE from [JetBrains](http://www.jetbrains.com/). While it works natively with CMake projects, it cannot work out of the box with ROS projects. Catkin requires certain extensions over CMake.&lt;br /&gt;
&lt;br /&gt;
I found [this StackOverflow guide](https://answers.ros.org/question/284786/setup-clion-with-ros/) very helpful. I'm copying its instructions here so that we can update them as necessary into the future.&lt;br /&gt;
&lt;br /&gt;
===Change CLion's .desktop file===&lt;br /&gt;
&lt;br /&gt;
If you follow the default ROS installation instructions, you add commands to your &amp;lt;tt&amp;gt;.bashrc&amp;lt;/tt&amp;gt; file which enable catkin tools. Because CLion does not run in an interactive bash session by default, it cannot access the catkin tools. This step changes the way CLion is launched, so it can access the catkin tools.&lt;br /&gt;
&lt;br /&gt;
# Open &amp;lt;tt&amp;gt;jetbrains-clion.desktop&amp;lt;/tt&amp;gt;. It is usually in &amp;lt;tt&amp;gt;~/.local/share/applications/&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;/usr/share/applications/&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## '''NOTE''' You will need super user permissions to edit this file!&lt;br /&gt;
# Replace the line which sets the &amp;lt;tt&amp;gt;Exec&amp;lt;/tt&amp;gt; variable with &amp;lt;tt&amp;gt;Exec=bash -i -c &amp;quot;/home/USER/Applications/clion-2018.2.2/bin/clion.sh&amp;quot; %f&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Save and close the file&lt;br /&gt;
&lt;br /&gt;
===Set the Build Directory===&lt;br /&gt;
&lt;br /&gt;
By default, CLion builds projects in &amp;lt;tt&amp;gt;cmake-build-debug&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;cmake-build-release&amp;lt;/tt&amp;gt; based on the build type. ROS expects your catkin workspace to be built in &amp;lt;tt&amp;gt;catkin_ws/build&amp;lt;/tt&amp;gt;, so we need to redirect CLion.&lt;br /&gt;
&lt;br /&gt;
# Open your catkin_ws in CLion (select the CMakeLists.txt file in catkin_ws/src)&lt;br /&gt;
# Go to &amp;quot;File&amp;quot; - &amp;quot;Settings&amp;quot; - &amp;quot;Build, Execution, Deployment&amp;quot; - &amp;quot;CMake&amp;quot;&lt;br /&gt;
# Set the generation Path to &amp;lt;tt&amp;gt;catkin_ws/build&amp;lt;/tt&amp;gt; and apply&lt;br /&gt;
# Reload the CMake project in CLion&lt;br /&gt;
&lt;br /&gt;
===Syntax Highlighting in Launch Files===&lt;br /&gt;
&lt;br /&gt;
CLion, like many IDEs or editors, offers syntax highlighting. CLion's highlighting chooses the language to use based on a list of file types in the IDE's settings. It doesn't know about launch files out of the box, so we need to add a rule for those.&lt;br /&gt;
&lt;br /&gt;
# Go to &amp;quot;File&amp;quot; - &amp;quot;Settings&amp;quot; - &amp;quot;Editor&amp;quot; - &amp;quot;File Types&amp;quot;&lt;br /&gt;
# Search for XML in the recognized files list&lt;br /&gt;
# Click the plus button next to &amp;quot;Registered Patterns&amp;quot; to add a new pattern&lt;br /&gt;
# Set the pattern to &amp;lt;tt&amp;gt;*.launch&amp;lt;/tt&amp;gt; and click &amp;quot;Ok&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mbarulic6</name></author>
		
	</entry>
</feed>