Using Pycharm in Ubuntu for Ros development

Source: Internet
Author: User
Tags pycharm community edition

Then, the text comes, I will introduce the 2 point environment Configuration, 1.launch file association, 2.roslib Import

    1. Launch file association
Pycharm does not support launch files, but we still want to write them in the IDE, for example:



By opening the filetypes inside the file/settings.


Then add the *.launch file inside the registered patterns, click OK to complete the Launch file association

Import of 2.roslib

This section describes how Pycharm is directly associated with/opt/ros/indigo/setup.bash as configured in the terminal environment BASHRC.

First open the terminal, and then enter:

[HTML]View PlainCopy
    1. Gedit ~/.local/share/applications/jetbrains-pycharm-ce.desktop #当前用户可用


[HTML]View PlainCopy
    1. Gedit/usr/share/applications/jetbrains-pycharm-ce.desktop #全部用户可用



A document will then appear with the following content:

[Plain]View PlainCopy
    1. [Desktop Entry]
    2. version=1.0
    3. Type=application
    4. Name=pycharm Community Edition
    5. Icon=/home/howe/downloads/pycharm-community-2017.1/bin/pycharm.png
    6. Exec= "/home/howe/downloads/pycharm-community-2017.1/bin/pycharm.sh"%f
    7. Comment=the Drive to Develop
    8. Categories=development;ide;
    9. Terminal=false
    10. Startupwmclass=jetbrains-pycharm-ce


If it is a blank document, then the file is opened incorrectly, enter: [Plain]View PlainCopy
    1. gedit/usr/share/applications/
then tab automatically complements the following.

Then modify the exec variable in it, add Bash-i-c after ' = ', and change the following:

[Plain]View PlainCopy
    1. exec= Bash-i-C "/home/ubu/tools/pycharm-professional-2016.2.3/bin/pycharm.sh"%f
Save and exit. Add Bash-i-C to load the ROS environment variable in ~/.BASHRC while starting Pycharm with a shortcut . then restart Pycharm. Finished

(turn) use of Pycharm under Ubuntu 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.