PyCharm
I highly recommand PyCharm as IDE. As a student you get the professional version for free.
setup pycharm with existing ROS python package
- Start PyCharm from a terminal, where your workspace is sourced.
- When you first start PyCharm, open your whole ROS workspace.
- in settings → project: <folder you selected earlier> → project interpreter, you have to select the python version that is used by ROS. That should be Python 3.8 for ROS noetic (/usr/bin/python3.8).
- If everything went right, you should be able to import rospy in a console.
- Go into
Settings→Tools→Python Integrated Tools
and settesting
topytest
- On the top right, click on the run dropbox, click
Edit Configurations…
, on the bottom of the new window clickEdit configuration templates
, go toPython Tests/pytest
, add-s
toAdditional Arguments