0___Environment Setup - gkgkgk1215/else GitHub Wiki
ROS
Install instructions here
Since ROS Noetic is deprecated, when you sudo apt-get update, you might have an issue with GPG key of ROS repo.
sudo apt-key del F42ED6FBAB17C654
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
sudo gedit /etc/apt/sources.list.d/ros-latest.list
sudo apt-get update
ROS2
Install instructions here
- DO NOT 
sudo apt upgrade 
Anaconda Install
Download shell script in the official webpage
cd ~/Downloads
chmod +x Anaconda3-2020.11-Linux-x86_64.sh
mv Anaconda3-2020.11-Linux-x86_64.sh ~/
cd ~/
./Anaconda3-2020.11-Linux-x86_64.sh
Create conda environment (Don't run this line if you want to install DeepLabCut since it create another env.)
conda create -n minho python=3.8 (for dVRK, etc)
conda install -n base -c conda-forge mamba (for mainly ROS2)
mamba install --override-channels -c conda-forge libstdcxx-ng=14 libgcc-ng=14 -y (for ROS2)
You can copy libraries for ROS, etc. (only for ROS, not ROS2)
cd /usr/lib/python3/dist-packages/
cp sip* rospkg* catkin_pkg* pypars* PyKDL* PyQt5* defusedxml Cryptodome* gnupg* yaml* _yaml* ~/anaconda3/envs/minho/lib/python3.8/site-packages/ -rf
Remove env:
conda env list
conda deactivate
conda remove -n minho --all
VS Code
- Download .deb files from the website: https://code.visualstudio.com/download
 
cd ~/Downloads
sudo dpkg -i code_1.91.1-1720564633_amd64.deb
- 
Install Extensions: Python, etc
 - 
Select interpreter using Ctrl+Shift+P (Command Palette)
 - 
Add environment variables to .bash file
 
export PYTHONPATH=$PYTHONPATH:/home/minho/vsprojects
PyCharm
sudo snap install pycharm-community --classic
QT creator ros
sudo apt purge qtcreator
- Download offline installer: https://ros-qtc-plugin.readthedocs.io/en/latest/_source/How-to-Install-Users.html
 
Right click above the file -- Permissions -- Allow executing files as program
Double click and complete the installer
echo 'export PATH=$PATH:/home/surglab/QtCreator/latest/bin' >> ~/.bashrc
- ROS Workspace in QtCreator
 
Reference: https://ola-page.tistory.com/43
New Project -- Other Project -- ROS Workspace -- Choose
Name: minho, Build System: CatkinMake, Workspace Path: /home/minho/catkin_ws -- Next -- Finish