1. Download, install and activate CLion Just follow the tutorials given online 2. Configure ROS 1. Configure CLion startup mode Open the hidden file .bashrc in the home directory, the command is: sudo gedit ~/.bashrc Set the path of CLion's startup file clion.sh to the environment variable PATH. In this way, in the terminal, you can enter clion.sh to start CLion no matter which working directory you are in.
Other tutorials on the Internet will say that each time you start clion, you must first enter the ROS workspace, execute "source devel/setup.bash", and then run clion.sh. Personally, I feel that this method is very cumbersome. You can source the system environment when you click the clion icon to start.
2. Set CLion's CMake to local CMake Type clion.sh in the terminal or click its icon to open CLion, open toolschain in build in setting: Set CMake Debugger 3. Create a ROS workspace and function package This is relatively simple. You can refer to other tutorials on the Internet. In order to avoid running the setup.sh file in the following devel folder every time you open the terminal, you also need to write the path of setup.sh into the bashrc file. The command is:
Then 4. Start CLion in the current workspace and set the ROS working path Also open the setting and go to the build option, select the CMake option and set the value of -DVAR_NAME in the CMake options space. Here, set the devel folder of the current ROS workspace. This folder is mainly used to store some executable files. The path to be set is: After setting these, you can basically compile and run ROS normally! PS: According to the installation tutorial on the wiki, CLion can also install some ROS plug-ins to run some ROS nodes, but I haven’t figured out the specific functions and uses yet, and I’m just getting started with ROS. Summarize This is the end of this article about the detailed description of the installation and configuration of ROS in CLion2020.1.3 under Ubuntu20.04. For more information about the installation and configuration of ROS in CLion2020.1.3, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Some suggestions for ensuring MySQL data security
>>: WeChat applet implements waterfall flow paging scrolling loading
Introduction Use simple jQuery+CSS to create a cus...
WeChat Mini Program Component Design Specificatio...
Table of contents 1: Encapsulation idea 2. Packag...
GreaseMokey (Chinese people call it Grease Monkey...
This article example shares the specific code of ...
The content involved in Web front-end development...
Table of contents Preface Direct filling method f...
Table of contents 1. concat() 2. join() 3. push()...
What you learn from books is always shallow, and ...
I recently stumbled upon the Audiovisual Linux Pr...
Simply put, distinct is used to remove duplicates...
Main differences: 1. Type SQL databases are prima...
This article example shares the specific code for...
When using a cloud server, we sometimes connect t...
Table of contents 1. Introduction 2. The first me...