ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Use pycharm for Flexbe

asked 2017-06-25 08:30:36 -0500

bennypi gravatar image

Hi folks,

I've followed the tutorials from so that i could run the hello world behavior inside of the chrome app as well as running it in the console.

Then I started a console which has catkin_ws/devel/setup.bash sourced and run pycharm. I've added the folder that is created by calling rosrun flexbe_widget create_repo calibration_controller to pycharm.

But when I open the file calibration_controller_behaviors/calibration_controller_flexbe_states/src/calibration_controller_flexbe_states/ pycharm can't resolve the dependencies from flexbe_core import EventState, Logger or from flexbe_core.proxy import ProxyActionClient, but can resolve other ros dependencies like import rospy.

Why can't pycharm resolve flexbe imports?

I'm using Ubuntu 16.04 with ros kinetic.

Thanks, Benny

edit retag flag offensive close merge delete


Duplicate discussion from:

You might want to edit this question to make it more generic to the use of PyCharm within the ROS workspace with Catkin and usage

dcconner gravatar image dcconner  ( 2017-06-26 14:04:02 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-06-27 13:06:31 -0500

bennypi gravatar image

Thanks to flexbe devs on github, the following steps resolve the issue:

  1. Open PyCharm's settings
  2. Open your project on the left of the settings window
  3. Open Project Structure
  4. Select your [your_project_prefix]_flexbe_states project that is created when running rosrun flexbe_widget create_repo [your_project_prefix]
  5. Click on Add Content Root
  6. Select xenials_ws/src/flexbe_behavior_engine
  7. Mark that folder as source
  8. Mark the subdirectory flexbe_core as source
  9. Mark the subdirectory flexbe_core/src as source
  10. Click on OK and wait until PyCharm's triggers run and find the flexbe sources.
edit flag offensive delete link more

Question Tools



Asked: 2017-06-25 08:30:36 -0500

Seen: 478 times

Last updated: Jun 27 '17