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
1. MYSQL index Index: A data structure that helps...
Table of contents 1. How to view the binary data ...
This article example shares the specific code of ...
Docker version 1.13.1 Problem Process A MySQL con...
Table of contents 1. Numeric Type 1.1 Classificat...
MySQL installation tutorial, for your reference, ...
1. What are custom hooks Logic reuse Simply put, ...
Table of contents 1. What is Docker Compose? 2. D...
1. Enter the container docker run [option] image ...
The code looks like this: <!DOCTYPE html> &...
Table of contents Seconds_Behind_Master Original ...
The sudo command allows a trusted user to run a p...
I've been writing a WeChat applet recently an...
Table of contents Preface call usage accomplish A...
Table of contents 1. isPrototypeOf() Example 1, O...