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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# @brief モンティ・ホールゲームを指定した回数実施し、 | |
# 勝った回数を比較するシミュレーションソフト | |
# | |
# @Author Atsushi Sakai | |
import random #乱数発生用 |
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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
# | |
# @brief rviz上で定規の機能をするrqtモジュール | |
# @author Atsushi Sakai | |
import roslib | |
roslib.load_manifest('RvizRuler') | |
import os | |
import rospy |
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 [] = DijkstraSample() | |
%DijkstraSample() ダイクストラ法による最短経路探索プログラム | |
% | |
% Author: Atsushi Sakai | |
% | |
% Copyright (c) 2014, Atsushi Sakai | |
% All rights reserved. | |
% License : Modified BSD Software License Agreement | |
clear all; |
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 [] = AStarSample() | |
%AStarSample() A*法による最短経路探索プログラム | |
% | |
% Author: Atsushi Sakai | |
% | |
% Copyright (c) 2014, Atsushi Sakai | |
% All rights reserved. | |
% License : Modified BSD Software License Agreement | |
clear all; | |
close all; |
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
#!/usr/bin/env python | |
import rospy | |
import sys | |
import socket | |
import rosgraph | |
import roslib.message | |
def msgevalgen(pattern): | |
""" | |
Generates a function that returns the relevant field (aka 'subtopic') of a Message object |
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
% ------------------------------------------------------------------------ | |
% Sample file of Golden section method for linear search | |
% | |
% file : GoldenSectionSample.m | |
% | |
% Latest Update: 2013/03/20 | |
% | |
% Author : A.Sakai | |
% | |
% ---------------------------------------------------------------------------------- |
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 "tf/transform_broadcaster.h" | |
//TF Broadcasterの実体化 | |
tf::TransformBroadcaster glabal_robot_broadcaster; | |
//Robot位置と姿勢(x,y,yaw)の取得 | |
double x=GetRobotPositionX(); | |
double y=GetRobotPositionY(); | |
double yaw=GetRobotPositionYaw(); |
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 "tf/transform_listener.h" | |
tf::TransformListener tflistener; | |
//それぞれの座標系におけるレーザの点群のデータ変数 | |
sensor_msgs::PointCloud laserPointsRobot; | |
sensor_msgs::PointCloud laserPointsGlobal; | |
//robot座標系におけるレーザ点群の情報の取得 | |
laserPointsRobot=getLaserPoints(); |
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
% ------------------------------------------------------------------------- | |
% | |
% File : ExtendedKalmanFilterLocalization.m | |
% | |
% Discription : Mobible robot localization sample code with | |
% Extended Kalman Filter (EKF) | |
% | |
% Environment : Matlab | |
% | |
% Author : Atsushi Sakai |
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
//------------------------------------------------------------------------- | |
// | |
// File : EigenMatLib.m | |
// | |
// Discription : Eigen Library inspired by Matlab functions. | |
// | |
// Environment : C++ | |
// | |
// Author : Atsushi Sakai | |
// |
OlderNewer