粗大メモ置き場

個人用,たまーに来訪者を意識する雑記メモ

2017-08-01から1ヶ月間の記事一覧

Numpyで*を使わないほうが良い理由

それはnp.arrayとnp.matrixに依って計算内容が異なるからです。 以下にもっと詳しい記事があるので時間のある人はこちらを参照されたし。 ksknw.hatenablog.com numpyの型について やってみる 全部matrixとしてしまう解決策 落ちたことのある罠集 外積が計算…

Does Linear or Spherical quaternion interpolation make large difference? / Python

As a result, it seems NOT so much. Using my own library for right handed quaternion caluclation. ossyaritoori.hatenablog.com Online iPython console Comparison Linear Interpolation (LERP) Spherical Interpolation (SLERP) Difference Online iP…

Python Quaternion Calculation Function

I will translate this article to Japanese sooner or later. Using tf library for handling Quaternion in python Quaternion to Euler angle Euler angle to DCM( Direct Cosine Matrix ) Test My Python Functions Quaternion to DCM Test Comparison T…

ROS deliver argument to callback function in subscribers C++/Python

ROS

Just a memo. Reference How to deliver arguments to a callback function? - ROS Answers: Open Source Q&A Forum Passing an argument to a subscriber callback [closed] - ROS Answers: Open Source Q&A Forum Code Example cpp // in callback void ch…

Read yaml file with yaml-cpp in ROS C++ / yamlファイルをC++で開く

This article both contains both Japanese and English explanations. 需要とか考えた結果、英語と日本語で書きます。 Goal: Read .yaml calibration files and then publish camera info Method: Using yaml-cpp Installation ROS setup (Kinetic) Usage S…

How to split string using multiple delimeters / and convert to double array in C++

cpp

GOAL: get double array from "[1.1, 3.3]" Split string into string vector Give it try Convert string vector to vector of double try? Written as a Function GOAL: get double array from "[1.1, 3.3]" Unfortunately std::string do not have split …

ROS publish the camera info in C++ (PerceptIn Camera)

ROS

I'm now using PerceptIn camera to make ROS wrapper. Publish camera image Publish Camera info Initialization and put value Publishing When debugging Publish camera image See the sample code online_feature.cpp to check how to get image from …

Python,c++でyamlファイル読み込み

jsonに引き続きyamlファイルの読み込みをメモ。 Python 以下の通り。 How can I parse a YAML file in Python - Stack Overflow import ruamel.yaml as yaml with open("example.yaml") as stream: try: print(yaml.load(stream)) except yaml.YAMLError as …

料理初心者でもできる?白ワインとチキンブロスで作る簡単リゾット

というわけで実際に簡単飯?を試してみました。 元レシピ 材料について 買い出し 買った材料 調理開始 玉ねぎを切り、フライパンで炒める 米を投入し半透明になるまで炒める ワインを投入しさらに炒める。 チキンブロスを半分くらい投入。ぐつぐつ煮る。 残…

出先で作れる超お手軽自炊のノウハウ、が欲しい。

出先など自分の家ではないところで自炊をしたいという背景がございまして。 なお、知見が得られ次第更新します。 求められる条件 主食をどうするか 米を主食にする場合。 チキンストックと塩、白ワインのリゾット 麺を主食にする場合 パンを主食にする場合 …

Python文字列で書かれた行列・配列を数値に変換したい(jsonの読み方も含む)

正直いい方法がないか教えてくださいって感じです。 問題の全貌:なんでテキストで行列保存するねん。 jsonファイル読み出し 該当データへのアクセス python文字列から数値へのキャスト 文字を並べたときのキャスト 解決策(Not smart) 解決策(Not smart) …

Docker を用いて ROS 環境構築

最近ROSをちゃんとはじめようとチュートリアルとかとにらめっこしています. ROSといえば昔なんとなくで導入したらAnacondaの他のPython環境とブッキングして大変な目に合ってからさわってません. ossyaritoori.hatenablog.com他の環境とのブッキングを避け…

LaTeXとPPTで名刺を作る(geometry.sty使用)

【書きかけ】 市販のA4名刺用用紙10枚(1枚で名刺10枚分)で450円弱なので4.5円/枚で名刺が作れます。TeX環境とイラスト作成ソフトさえあれば名刺を簡単に作成できます どうしてこの組み合わせ?:LaTeX+PPTの可能性 PPTで名刺を作成する PDFにエクスポート T…