sudo snap install chromium
sudo apt install -y g++ build-essential cmake git htop tree tmux curl openssh-server imagemagick maim vim-gtk3 i3 python3-pip python3-virtualenv libappindicator3-dev castxml qt5-style-plugins trash-cli checkinstall gparted net-tools rename libreadline-dev imagemagick policykit-1-gnome
sudo snap install pycharm-professional --classic
sudo snap install clion --classic
# https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-20-04-focal-fossa-linux
sudo ubuntu-drivers autoinstall
# https://linuxconfig.org/how-to-install-cuda-on-ubuntu-20-04-focal-fossa-linux
sudo apt install -y nvidia-cuda-toolkit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import matplotlib | |
| import matplotlib.pyplot as plt | |
| from matplotlib import cm | |
| import numpy as np | |
| from matplotlib.animation import FuncAnimation | |
| N = 100 | |
| a_max = 0.1 | |
| s = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import threading | |
| import time | |
| import weakref | |
| class BadRobot: | |
| def __init__(self): | |
| self.should_disconnect = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env python | |
| import argparse | |
| from multiprocessing import Process | |
| import contextlib | |
| import os | |
| import pathlib | |
| from subprocess import run | |
| import requests | |
| import yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: peter | |
| channels: | |
| - defaults | |
| - conda-forge | |
| - robostack | |
| dependencies: | |
| - cmake=3.18 | |
| - log4cxx=0.10.0 | |
| - protobuf=3.11.4 | |
| - python |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sound.driver sdl | |
| sound.volume 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CATKIN_WHITELIST_PACKAGES:STRING=shape_completion_training;link_bot_data;link_bot_pycommon;peter_msgs;link_bot_classifiers;state_space_dynamics;ros_numpy;gazebo_msgs;moonshine;link_bot_planning;link_bot_gazebo_python;jsk_recognition_msgs;mps_shape_completion_msgs;tf;angles;tf2_ros;tf2;tf2_msgs;tf2_py;victor_hardware_interface_msgs;arm_video_recorder;victor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| pip install pyplusplus pygccxml | |
| sudo apt install castxml | |
| cmake -D CMAKE_BUILD_TYPE=Release -D OMPL_BUILD_PYBINDINGS:BOOL=ON -D OMPL_BUILD_PYTESTS:BOOL=OFF -D OMPL_BUILD_TESTS:BOOL=OFF -D OMPL_BUILD_DEMOS:BOOL=OFF -DOMPL_REGISTRATION=OFF | |
| make -j `nproc` update_bindings | |
| make -j `nproc` | |
| make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| catkin_make --cmake-args \ | |
| -DQt5_DIR:PATH=/home/pmitrano/.local/opt/anaconda3/envs/merrrt2/lib/cmake/Qt5 \ | |
| -DQt5Core_DIR:PATH=/home/pmitrano/.local/opt/anaconda3/envs/merrrt2/lib/cmake/Qt5Core \ | |
| -DQt5Gui_DIR:PATH=/home/pmitrano/.local/opt/anaconda3/envs/merrrt2/lib/cmake/Qt5Gui \ | |
| -DQt5Widgets_DIR:PATH=/home/pmitrano/.local/opt/anaconda3/envs/merrrt2/lib/cmake/Qt5Widgets \ | |
| -DPYTHON_EXECUTABLE=/home/pmitrano/.local/opt/anaconda3/envs/merrrt2/bin/python \ | |
| -DPYTHON_INCLUDE_DIR=/home/pmitrano/.local/opt/anaconda3/envs/merrrt2/include/python3.7m \ | |
| -DPYTHON_LIBRARY=/home/pmitrano/.local/opt/anaconda3/envs/merrrt2/lib/libpython3.7m.so \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from datetime import datetime | |
| import git | |
| import argparse | |
| def make_log_path(args): | |
| repo = git.Repo(search_parent_directories=True) | |
| sha = repo.head.object.hexsha | |
| stamp = "{:%B_%d_%H:%M:%S}".format(datetime.now()) | |
| log_subdir = args.log |