0

Is it possible to get the rospy lib into PyCharm for autocompleting and highlighting error without installing ROS on my MAC?

Benyamin Jafari
  • 27,880
  • 26
  • 135
  • 150
Helming
  • 33
  • 2
  • Activating ROS autocomplete in Pycharm IDE is there in this [POST](https://stackoverflow.com/questions/53637038/how-to-import-ros-to-pycharm/53639325#53639325), but I think you need to install the ROS to get the `roslib` and its `/opt/ros/kinetic/lib/python2.7/distpackages` content. So you need to install ROS at least the ROS-Base version instead of the full version. – Benyamin Jafari Apr 20 '19 at 20:47
  • IT WORKS PERFECTLY – Helming May 01 '19 at 03:52

2 Answers2

0

PyCharm Professional edition allows for the use of Remote Interpreters. You would need to install ROS either on a remote machine or a local VM and then connect PyCharm to it over SSH. You can also use a Docker Interpreter and simply install ROS in a docker container. For simplicity you could start with an existing ROS Docker container.

Either way, you'll need to ensure that the environment is effectively activated so that PyCharm can find the ROS python packages and not just the OS packages.

-1

No, this is not possible, because without the package installed PyCharm does not know what to autocomplete.

RomanHDev
  • 104
  • 5
  • 1
    is there any other way to make access to the rospy lib without install the whole ROS on the Mac? – Helming Apr 19 '19 at 15:38