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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Euler angle to quaternion | |
% input : roll,pitch,yaw [rad] | |
% output quaternion: | |
% you need robotics toolbox | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
function Q = eul2quat_self(rpy) | |
roll = rpy(1); |
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
/////////////////////////////////////////// | |
// Yoshi Ri @ Univ Tokyo | |
// 8 April 2018 | |
////////////////////////////////////////// | |
// for servo motor control | |
#include <Servo.h> | |
#include <Encoder.h> | |
// ROS communication | |
//#include <ArduinoHardware.h> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
% figure のデフォルトフォント設定 | |
set(0, 'defaultAxesFontSize', 12); | |
set(0, 'defaultTextFontSize', 12); | |
set(0, 'defaultAxesFontName','Times-Roman'); | |
set(0,'defaultTextFontName','Times-Roman'); | |
% ブロックのデフォルトフォントを変更 | |
set_param(0,'DefaultBlockFontSize',11); | |
set_param(0,'DefaultBlockFontName','Times-Roman'); | |
% ラインのデフォルトフォントサイズを変更 | |
set_param(0,'DefaultLineFontSize',9); |
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
%% test for particle filter | |
% Problem Setting is here | |
% https://ja.wikipedia.org/wiki/%E3%82%AB%E3%83%AB%E3%83%9E%E3%83%B3%E3%83%95%E3%82%A3%E3%83%AB%E3%82%BF%E3%83%BC#%E5%BF%9C%E7%94%A8%E4%BE%8B | |
% settings | |
dt = 0.001; % time sample | |
s_sys = 10000; % system noise | |
s_out = 0.05; % measurement noise | |
s_rout = 0.1; | |
% system eq |
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
// for image processing | |
#include "opencv2/calib3d/calib3d.hpp" | |
#include "opencv2/imgproc.hpp" | |
#include "opencv2/imgcodecs.hpp" | |
#include "opencv2/highgui.hpp" | |
#include "opencv2/core/utility.hpp" | |
#include "opencv2/xfeatures2d.hpp" | |
#include "opencv2/flann.hpp" | |
#include "opencv2/cudaarithm.hpp" | |
#include "opencv2/cudafeatures2d.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
clear all | |
close all | |
%% config | |
%true depth | |
% sampling time | |
ST = 0.033 %33ms | |
END = 5.0 % 5sec simulation | |
STEREO_NOISE_S = 1; % 1px sigma for stereo disparity noise | |
MONO_NOISE_S = 1; % 1?? sigma for monocular distance estimation noise |
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 ctypes import * | |
import math | |
import random | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import time # time.time() to get time | |
class Checktime: | |
def __init__(self): | |
self.checktime = [0] |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.