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 numpy as np | |
rot = np.array([[9.999976e-01, 7.553071e-04, -2.035826e-03], [-7.854027e-04, 9.998898e-01, -1.482298e-02], [2.024406e-03, 1.482454e-02, 9.998881e-01]]) | |
t = np.array([-8.086759e-01, 3.195559e-01, -7.997231e-01]) | |
tf = np.eye(4) | |
tf[:3, :3] = rot | |
tf[:3, 3] = t |
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 <iostream> | |
#include <vector> | |
#include <utility> | |
#include <queue> | |
using namespace std; | |
void bfs(int start, vector<vector<int>>& adj, vector<bool>& visited, vector<int>& cluster) { | |
queue<int> q; | |
q.push(start); |
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 "ceres/ceres.h" | |
#include "glog/logging.h" | |
using namespace std; | |
void PassByAddress(const Eigen::Vector3d *b) { | |
cout << (*b)(0) << ", " << (*b)(1) << ", " << (*b)(2) << endl; | |
} | |
void PassByData(const double* b) { |
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 <iostream> | |
#include <cmath> | |
using namespace std; | |
double prob2logOdds(double prob) { | |
return 2 * atanh(2 * prob - 1); | |
} | |
double logOdds2prob(double log_odds) { |
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
# First, CUDA and its driver should be installed | |
# for saving time | |
# 1. Set off the nouveau | |
# (reference: https://support.huawei.com/enterprise/de/doc/EDOC1100165479/93fe5683/how-to-disable-the-nouveau-driver-for-different-linux-systems) | |
a) Create the /etc/modprobe.d/blacklist-nouveau.conf file and add the following information to the file. | |
``` | |
blacklist nouveau | |
options nouveau modeset=0 | |
``` |
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
/****************************************************************************** | |
Online C++ Compiler. | |
Code, Compile, Run and Debug C++ program online. | |
Write your code in this editor and press "Run" button to compile and execute it. | |
*******************************************************************************/ | |
#include <iostream> | |
#include <unordered_map> |
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 | |
from PIL import Image, ImageDraw | |
import h5py | |
import numpy as np | |
from helper.intrinsics import * | |
import matplotlib.pyplot as plt | |
cmap = plt.cm.jet | |
import cv2 | |
from helper.tf_helpers import get_T_c_l | |
import open3d |
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
function [] = ToyEKFSLAM() | |
randn('seed',1); | |
DTR = pi/180; % degree to radian | |
%% True initial condition | |
% The size is `mu_gt` is 4 + 10 = 14 | |
mu_gt = [1; 1; 45*DTR; 1; % x, y, psi, V | |
4.6454; 7.0242; % landmark 1 (x1,y1) | |
6.5198; 4.7523; % landmark 2 (x2,y2) | |
1.6836; 5.4618; % landmark 3 (x3,y3) |
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
from __future__ import print_function | |
import threading | |
import rospy | |
from geometry_msgs.msg import Twist | |
from geometry_msgs.msg import TwistStamped | |
import signal |
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
\if@sageh | |
\usepackage[comma]{natbib} | |
\bibpunct{(}{)}{;}{}{\color{red},}{,} | |
\setlength{\bibsep}{1pt} | |
\setlength{\bibhang}{16pt} | |
\renewcommand{\bibfont}{\refsize} | |
% \renewcommand*{\nameyeardelim}{\addcomma\space} | |
\renewcommand\refname{{\normalsize References}} | |
\fi |
NewerOlder