ubuntu14.04 installation of KDevelop for Ros development

Source: Internet
Author: User

1. Installing GCC

sudo apt-get build-dep gccsudo apt-get Install build-essential

2. Installing KDevelop

sudo apt-get install Kdevelop

3. Installation of CMake, etc.

4. Configuration (refer to Ros-wiki) Http://wiki.ros.org/IDEs

CD ~/desktoptouch kdevelop.desktopchmod +x kdevelop.desktop
sudo gedit kdevelop.desktop

Add the following text:

[Desktop Entry] Type=applicationterminal=falseexec=bash-i-C "KDevelop" Name=kdevelopicon=kdevelop

Save exit, the desktop will appear the KDevelop icon

5. Create a Catkin Package

5.1 Importing Catkin top-level workspaces

First clear the Build folder under the Catkin_ws folder (it will reappear the next time you compile)

Open KDevelop and use the shell or desktop icon to

Click "Project", "open Project" to find the CMakelists.txt under CATKIN_WS/SRC, select, click "Next" and modify the project name to your own (SRC is the default)

Select "Build System" as "CMake Project Manager"

"Finish"

The Configure Build directory window appears

Change "Build directory" to /home/user/catkin_ws/build/ (the one that was originally deleted)

Select the appropriate build type "Debug/release"

Additional parameters

-dcatkin_devel_prefix=. /.. /devel-dcmake_install_prefix=. /.. /install

Note: for nested subdirectory structures, you must add the appropriate number of: / 

6. Run and debug your own executable program

Click "Right down Arrow", "Debug Start F9" to "Start Configuration"

Click "Add New ..." Select the executable file to debug e.g. "~/catkin_ws/devel/lib/package/node_name"

"OK"

Click "Execute" or "Debug" to

7. Precautions

If there is a problem with the above procedure, you can delete the "*.kdve4" file under "catkin_ws/src./" and repeat the process.

The "Build Type" selected during project import (e.g. "Debug", "Release", "Relwithdebinfo") can be changed by Right-clicki Ng on the project, "Open Configuration ...". Select CMake in the left menu and change the CMake variable "cmake_build_type" appropriately.

Note , if a package inside the Catkin workspace specifies it own "Build Type", e.g. by Adding Set (cmake_build_type release) to the underlying package "CMakeLists.txt", it'll be used for that P Ackage instead of the global one defined in the top-level CMake project.

you may set up a project filter since KDevelop displays a lot of files and (ROS) binaries in the source Tree that is not really interesting for the developer and finding individual files could is really confusing. right click on the project and select "Open Configuration ...". choose "Project Filter" in the left menu. the cleanest solution is-first exclude all files and then include only desired file Types:

    1. Click Add. Type in the pattern: ' * ' (just the star character) and select as "Target" only Files. Choose "Action" Exclude.

    2. Now, add all files to the want include into the project tree:

      Click "Add" and type in your desired file pattern. Choose "Action" Include. Yaml "". Urdf "". SDF "". Xacro "

Don't want to translate ...

ubuntu14.04 installation of KDevelop for Ros development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.