Skip to content

Setup (Pycharm)

Jason Wang edited this page Apr 4, 2022 · 31 revisions

Pycharm Professional

  • Get the Jetbrains student membership (https://www.jetbrains.com/student/)
  • Use Jetbrains installer (https://www.jetbrains.com/toolbox/app/) and install Pycharm Professional
  • Change the theme to the white theme
  • Open Pycharm, go to File > Open and open the repository name (soccerbot)
  • Change the Intepreter to python 3.8. Go to Setting > Project Interpreter > Add > System Intepreter and choose /usr/bin/python3.8
  • Click on the gear > show all > Select python 3.8 > Show paths for the selected interpreter (5th button from the left) > Add the Intepreter Paths (Replace $USER with your computer user)
/opt/ros/noetic/lib/python3/dist-packages
/home/$USER/catkin_ws/devel/lib/python3/dist-packages
/home/$USER/catkin_ws/src/soccerbot/external/webots/lib/controller/python38
  • In every ROS package that has a src folder with python files in it, right-click the src folder and Mark Directory As > Sources root
  • (Optional) Install the *.launch file plugins. Look up duckietown/hatchery from the third party repositories in Preferences/Plugins
  • Debugging
    • Run > Attach to Process > Select the Process you want to attach to, you might want to rosnode info to identify it's PID. Add a breakpoint