2013년 8월 8일 목요일
sensor_msgs/JointState - ROS
Raw message definition:
string[] name
float64[] position
float64[] velocity
float64[] effort
# This is a message that holds data to describe the state of a set of torque controlled joints.
#
# The state of each joint (revolute or prismatic) is defined by:
# * the position of the joint (rad or m),
# * the velocity of the joint (rad/s or m/s) and
# * the effort that is applied in the joint (Nm or N).
#
# Each joint is uniquely identified by its name
# The header specifies the time at which the joint states were recorded. All the joint states
# in one message have to be recorded at the same time.
#
# This message consists of a multiple arrays, one for each part of the joint state.
# The goal is to make each of the fields optional. When e.g. your joints have no
# effort associated with them, you can leave the effort array empty.
#
# All arrays in this message should have the same size, or be empty.
# This is the only way to uniquely associate the joint name with the correct
# states.
from http://www.ros.org/doc/api/sensor_msgs/html/msg/JointState.html
2013년 7월 31일 수요일
2013년 7월 14일 일요일
getGaussianKernel
getGaussianKernel : Returns Gaussian filter coefficients.
getGaussianKernel(int ksize, double sigma, int ktype=CV_64F )
아래는 http://bytefish.de/blog/opencv/code_snippets/ 에서 가져옴
getGaussianKernel(int ksize, double sigma, int ktype=CV_64F )
ksize – Aperture size. It should be odd ( \texttt{ksize} \mod 2 = 1 ) and positive.
sigma – Gaussian standard deviation. If it is non-positive, it is computed from ksize as sigma = 0.3*((ksize-1)*0.5 - 1) + 0.8 .
ktype – Type of filter coefficients. It can be CV_32f or CV_64F .
int M = 101;
double sigma = 10;
Mat_ g = getGaussianKernel(M, sigma, CV_64F);
for(int i=0; i
{
double g1 = g(i,0);
Dbg("%f", g1);
}
Mat_ 접근
// more convenient forms of row and element access operators
_Tp* operator [](int y);
const _Tp* operator [](int y) const;
_Tp& operator ()(int row, int col);
const _Tp& operator ()(int row, int col) const;
_Tp& operator ()(Point pt);
const _Tp& operator ()(Point pt) const;
template
void printMat(const cv::Mat_<_tp>& mat) {
typedef typename DataType<_tp>::work_type _wTp;
for(int i = 0; i < mat.rows; i++)
for(int j=0; j < mat.cols; j++)
cout << (_wTp) mat(i,j) << " ";
cout << endl;
}
2013년 6월 20일 목요일
Typical orbits
회전체 모드해석 수업때 이종원 교수님 강의 중 나온 내용.
Matlab으로 그려본 것.
그림만 봐도 spectrum 해석하기 이전에 분석할 수 있음.
Hypocycloid
(more information : http://mathworld.wolfram.com/Hypocycloid.html)
Hypotrochoid
Epitrochoid
Epitrochoid 와 Hypotrochoid에 대한 추가 문서 : http://www.durangobill.com/Trochoids.html
2013년 6월 18일 화요일
2013년 6월 15일 토요일
iOS에서 OpenCV 2.4.5 linking
iOS에서 OpenCV 2.4.5 linking 할때 생기는 에러.
std::__1::__vector_base_common
libc++ .dylib 넣으면 됨.
---------------------------------------------------------------
from http://libcxx.llvm.org/
libc++ is a new implementation of the C++ standard library, targeting C++11.
All of the code in libc++ is dual licensed under the MIT license and the UIUC License (a BSD-like license).
- Correctness as defined by the C++11 standard.
- Fast execution.
- Minimal memory use.
- Fast compile times.
- ABI compatibility with gcc's libstdc++ for some low-level features such as exception objects, rtti and memory allocation.
- Extensive unit tests.
2013년 6월 14일 금요일
2013년 5월 11일 토요일
2012년 12월 30일 일요일
2012년 12월 25일 화요일
Violence doesn’t end violence. It extends it.
크리스마스에 핫초코 마시며 재미있게 본 에피소드. "A Town Called Mercy"
아래 대사가 와 닫는다.
The Doctor: Don’t you see? Violence doesn’t end violence. It extends it. And I don’t think you want to do this. I don’t think you want to become that man.
아래는 http://en.wikipedia.org/wiki/A_Town_Called_Mercy 에서
"A Town Called Mercy" received generally positive to mixed reviews from critics. IGN's Matt Risely rated the episode 8.5 out of 10, calling it "a weighty, progressive, sumptuous and entertaining adventure". He praised Whithouse and Metzstein for setting the right mood and found the highlight to be the Doctor's moral uncertainty. Dan Martin of The Guardian described it as "a complex morality dilemma fizzing with sharp dialogue". He wrote that it was Gillan who "emerged as the real star of the episode", citing Amy's conversation with the Doctor about how travelling alone had affected him.
아래 대사가 와 닫는다.
The Doctor: Don’t you see? Violence doesn’t end violence. It extends it. And I don’t think you want to do this. I don’t think you want to become that man.
아래는 http://en.wikipedia.org/wiki/A_Town_Called_Mercy 에서
"A Town Called Mercy" received generally positive to mixed reviews from critics. IGN's Matt Risely rated the episode 8.5 out of 10, calling it "a weighty, progressive, sumptuous and entertaining adventure". He praised Whithouse and Metzstein for setting the right mood and found the highlight to be the Doctor's moral uncertainty. Dan Martin of The Guardian described it as "a complex morality dilemma fizzing with sharp dialogue". He wrote that it was Gillan who "emerged as the real star of the episode", citing Amy's conversation with the Doctor about how travelling alone had affected him.
2012년 11월 21일 수요일
2012년 11월 11일 일요일
Lithium Ion/Polymer USB Battery Charger IC
MAX 1555
The MAX1551/MAX1555 charge a single-cell lithium-ion (Li+) battery from both USB* and AC adapter sources. They operate with no external FETs or diodes, and accept operating input voltages up to 7V
Current is automatically reduced to a trickle when charging is complete.
피드 구독하기:
글 (Atom)


















