Gazebo是一个三维多机器人动力学仿真平台,它能够模拟复杂和现实的环境中关节型机器人。9 m3 x- s7 k9 Y0 o/ D5 N4 l `
' k% O- w) r' }7 [, M0 C" w; sGazebo for solidworks是一个将solidworks机器人模型,转换为Gabezo平台能识别的机器人模型的插件。9 K0 N ~4 q5 R% u* p
在solidworks中打开需要转换的机器人模型0 |7 h. \* p% [+ l9 Z. n
# C, P2 k7 k9 \1 E+ x5 `7 n5 ~
2 h; ?" X' y8 C% S& ?7 X L2 g; \! B: ~
Collision models should be created for each link in the robot. These models should have simpler geometry and only keep the important features of the link they represent in order to not slow down the simulations. Once the collision models are created, they should be inserted into the assembly and put into a second configuration.
1 p# V% H7 p7 Y' a. A7 ~( r& q* u( k3 i4 G0 A0 T
5 C# }0 A# }0 @4 u4 w
启用Gazebo工具条上的joint editor4 F* M& f) @1 Z
1 h9 n% x3 D; v9 X- s% e! S" V9 i0 M4 T' P- P4 k
打开edit link属性管理器. Click on any link in the window to select that link. To add a sub-Link, click on the plus button. Click the minus button to delete the selected link, and all of its sub links. You can also rename the selected link in the Link Name box just below the tree.+ B% C" H7 G1 E9 z. A3 _
! }6 @- \# V2 C5 f& @; W0 m3 |
& G O5 \$ v4 D2 ]# _. v: I T
定义link组件9 R: M" G; c3 o- A/ _8 d" ~1 l
6 a' P! g* G9 j& y2 `1 Z. ^
) h5 d* N, `& X添加模型到link+ W5 e& Z: y' ?0 P
3 R; \4 h/ `# j3 k" N$ c
4 Y! P2 M! f H! x1 ]9 R定义关节8 G9 H- ~6 p* y! S d. \ Y; [
8 K/ ]0 y0 B' M! J$ {
( @. a! ~: }! r: |$ g% |
设置关节类型
% }) y% P# t7 d* R% [/ b8 S L; U
- K+ S% n+ b$ F- J; `2 U设置关节轴线
+ B2 ~7 F4 Y" b8 m# M( j7 P6 R, a# @+ |3 O/ W! z
, B- u3 G4 Q7 S- ]) n" r
6 O- }1 [) @: V5 E设置关节限位
) n- W$ }) h! X$ _# G$ {% M) M
2 L/ w3 ~- W0 l! L J9 U N
: S* J, ~0 [; S7 O; h
" E/ U @3 D5 g# ]8 O1 t$ U打开manager robot窗口* j7 G9 E7 S$ \0 U- I
# C1 j" j& ?2 B
3 H C1 V; i9 d$ Z# V2 t命名机器人模型8 l( k6 v: c4 a: Y: e; `/ ]
" K( d$ }7 G( f& U. P" ?/ g
* f7 g: a- B* @. T5 [4 [输出模型* g( r) v5 s9 C) G4 P
8 K, b4 Z$ a; C3 M; e) f( ]1 \
: p( `( E* _8 u. [. a7 n3 u4 a |