This file contains 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
export ROS_HOSTNAME=`grep \`ifconfig | grep -A1 ppp | grep inet | cut -f2 -d:| cut -f1 -d" "\` /etc/hosts | tr -s " " | cut -f2 -d " "` | |
echo "ROS_HOSTNAME set to $ROS_HOSTNAME" >&2 | |
export ROS_MASTER_URI=http://linda:11311/ | |
echo "ROS_MASTER_URI set to $ROS_MASTER_URI" >&2 |
This file contains 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
VGG_ILSVRC_19_layers_train_val.prototxt | |
name: "VGG_ILSVRC_19_layers" | |
layers { | |
name: "data" | |
type: DATA | |
include { | |
phase: TRAIN | |
} | |
transform_param { | |
crop_size: 224 |
This file contains 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
using UnityEngine; | |
using System.Collections; | |
// This Unity script demonstrates how to create a Mesh (in this case a Cube) purely through code. | |
// Simply, create a new Scene, add this script to the Main Camera, and run. | |
public class UnityMeshCreator : MonoBehaviour { | |
GameObject _cube; |
This file contains 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 Foundation | |
import UIKit | |
import ImageIO | |
import MobileCoreServices | |
extension UIImage { | |
static func animatedGif(from images: [UIImage]) { | |
let fileProperties: CFDictionary = [kCGImagePropertyGIFDictionary as String: [kCGImagePropertyGIFLoopCount as String: 0]] as CFDictionary | |
let frameProperties: CFDictionary = [kCGImagePropertyGIFDictionary as String: [(kCGImagePropertyGIFDelayTime as String): 1.0]] as CFDictionary | |
This file contains 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
# Tested on Ubuntu 16.04 and X11, 2019 | |
# 1. Download NVIDIA driver as a .run file | |
# 2. Stop X-Server | |
sudo service lightdm stop | |
# 3. Blacklist Nouveau driver | |
sudo nano /etc/modprobe.d/blacklist-nouveau.conf |
This file contains 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
def euler_from_quaternion(quaternion): | |
""" | |
Converts quaternion (w in last place) to euler roll, pitch, yaw | |
quaternion = [x, y, z, w] | |
Bellow should be replaced when porting for ROS 2 Python tf_conversions is done. | |
""" | |
x = quaternion.x | |
y = quaternion.y | |
z = quaternion.z | |
w = quaternion.w |