-
GPU: GTX-1080 or GTX-1080TI
-
OS: Ubuntu 16.04.7 (https://releases.ubuntu.com/16.04/)
-
Apollo 2.5: https://github.com/ApolloAuto/apollo/tree/r2.5.0
-
Rosbag file: https://github.com/ApolloAuto/apollo/releases/download/v2.5.0/demo_2.5.bag. After downloading, move the file to
apollo/data/bag
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 time | |
from python import Python | |
@register_passable("trivial") | |
struct Move: | |
var i: Int | |
var j: Int | |
var prom: Int | |
fn __init__(i: Int, j: Int, prom: Int) -> Move: |
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 os | |
users = """ | |
john | |
dummy | |
vietanhdev | |
""" | |
for user in users.split("\n"): | |
user = user.strip() | |
if user: |
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
<body> | |
<style> | |
.square-box { | |
width: 33%; | |
height: 0; | |
padding-top: 33%; | |
position: absolute; | |
right: 20px; | |
top: 20px; | |
} |
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
###################################### | |
# INSTALL OPENCV ON UBUNTU OR DEBIAN # | |
###################################### | |
# -------------------------------------------------------------------- | | |
# SCRIPT OPTIONS | | |
# ---------------------------------------------------------------------| | |
OPENCV_VERSION='4.5.1' # Version to be installed | |
OPENCV_CONTRIB='YES' # Install OpenCV's extra modules (YES/NO) | |
# -------------------------------------------------------------------- | |
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
#!/bin/bash | |
mkdir realvncserversetup && cd realvncserversetup | |
echo Add armhf arch | |
sudo dpkg --add-architecture armhf && sudo apt update | |
echo Download and install RealVNC server | |
wget -nv https://downloads.realvnc.com/download/file/vnc.files/VNC-Server-6.11.0-Linux-ARM.deb && sudo apt install ./VNC-Server-6.11.0-Linux-ARM.deb | |
echo Download and install dependencies |
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
#include <chrono> | |
#include <cmath> | |
#include <exception> | |
#include <fstream> | |
#include <iostream> | |
#include <limits> | |
#include <numeric> | |
#include <opencv2/dnn/dnn.hpp> | |
#include <opencv2/imgcodecs.hpp> | |
#include <opencv2/imgproc.hpp> |
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
sudo apt update && sudo apt full-upgrade | |
sudo apt install -y p7zip-full unrar gparted wget build-essential curl git | |
# Java | |
sudo apt install default-jre | |
snap install mailspring |