mv ~/.local/share/FasterThanLight ~/.local/share/FasterThanLight.backup
ln -s ~/.local/share/fasterthanlight ~/.local/share/FasterThanLight
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
sudo apt install ros-noetic-gazebo* ros-noetic-ros-control* ros-noetic-control* \ | |
ros-noetic-moveit* ros-noetic-industrial-core ros-noetic-dynamixel-sdk \ | |
ros-noetic-dynamixel-workbench* ros-noetic-robotis-manipulator |
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/bash | |
# | |
# @section COPYRIGHT | |
# Copyright (C) 2021 Consequential Robotics Ltd | |
# | |
# @section AUTHOR | |
# Consequential Robotics http://consequentialrobotics.com | |
# | |
# @section LICENSE | |
# For a full copy of the license agreement, and a complete |
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 python3 | |
import os | |
user_input = input('What is the name of your directory?\n') | |
searchstring = input('What string are you trying to find?\n') | |
def recr(dir): | |
for fname in os.listdir(dir): | |
rel_fname = dir + os.sep + fname | |
if os.path.isfile(rel_fname): |
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/bash | |
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - | |
sudo apt update | |
yes | sudo apt upgrade | |
yes | sudo apt autoremove | |
sudo apt autoclean | |
yes | sudo apt install ros-melodic-moveit ros-melodic-moveit-visual-tools ros-melodic-moveit-commander ros-melodic-joint-trajectory-controller python-catkin-tools | |
mkdir ~/iiwa_stack_ws |
The Astro A20 headphones are NOT being registered as an output device on Ubuntu 20.04, even though the built-in mic is registered correctly as an input device.
Append the function below to your ~/.bashrc
and then you can simply type in a20
in the terminal whenever you need to connect your A20 headset.
It checks to make sure the headset is plugged in and uses a regex to automatically detect the card number, which often changes. The device number on the other hand seems to be always "1" (at least for me).
If you want to connect the headset at startup, simply copy the function body (what's inside the curly brackets) to ~/.profile
.
# Astro A20 headphones
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
# A simple script to append the current working directory to PYTHONPATH environment variable temporarily | |
export PYTHONPATH="${PYTHONPATH}:${PWD}" |