Representin Position and Orientation

4 篇文章 0 订阅

Download MATLAB Toolbox

Download Robotics toolbox
Example:

%The toolbox also supports symbolic mathematics
>> syms theta
>> R=rot2(theta)
R = 
[ cos(theta), -sin(theta)]
[ sin(theta),  cos(theta)]

%  simplify :Symbolic simplification
>> simplify(R*R)
ans =
[ cos(2*theta), -sin(2*theta)]
[ sin(2*theta),  cos(2*theta)]
>> simplify(det(R))
ans =
1

Lie Group and Lie Algebra

引用一下SLAM 十四讲中的这个图,总结了李群与李代数之间的转换关系。
SLAM 十四讲

Example:

>> R = rot2(0.3)
R =
    0.9553   -0.2955
    0.2955    0.9553
    
>> s = logm(R)
s =
         0   -0.3000
    0.3000         0
>> vex(s)
ans =
    0.3000

% the result is, as expected, our original rotation matrix, 
 >> expm(s)
ans =

    0.9553   -0.2955
    0.2955    0.9553
    
% skew-symmetric matrix
>> syms w
>> skew(w)
ans =
[ 0, -w]
[ w,  0]

In fact the command:

>> R = rot2(0.3)

is equivalent to :

>> R = expm ( skew(0.3) )

R =

    0.9553   -0.2955
    0.2955    0.9553

Note:

  1. logm Matrix logarithm.
    L = logm(A) is the principal matrix logarithm A, the inverse of expm(A).
  2. vex Convert skew-symmetric matrix to vector.
    V = vex(S) is the vector which has the corresponding skew-symmetric
    matrix S. In the case that S (2x2) then V is 1x1
           S = | 0  -v |
               | v   0 |

Formally we can write
R = e [ θ ] x ∈ S O ( 2 ) R = e^{[\theta]_x} \in SO(2) R=e[θ]xSO(2)
where θ \theta θ is the rotation angle, and the notation [ . ] x : R ⟼ R 2 X 2 [.]_x: R \longmapsto R^{2X2} [.]x:RR2X2 indicates a mapping from a scalar to a skew-symmentric matrix.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值