Gazebo是一个三维多机器人动力学仿真平台,它能够模拟复杂和现实的环境中关节型机器人。
( O, i2 ]8 a& F2 t
7 {) z# c2 ]7 W% t9 i% KGazebo for solidworks是一个将solidworks机器人模型,转换为Gabezo平台能识别的机器人模型的插件。
- \1 w' ~; P m9 T B9 E+ J在solidworks中打开需要转换的机器人模型
2 p, b# b8 `! x
+ ^# u- _5 O1 E" V4 n/ [
: @3 O+ M. z) H$ ECollision 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.
( d3 Y+ p+ n& }+ X8 ?6 ?, ]( s1 [3 K3 j1 [% c$ z4 H
/ o( ? h/ t' P/ r4 h启用Gazebo工具条上的joint editor2 t* _7 u: N$ ?
i: p+ y1 M; _) v/ J
$ ?+ x- n. M' m8 \. |- x6 n
打开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.% \2 j2 V. l0 R
4 O( x4 \/ g$ y. u& }: ^, v! C3 T$ D# @4 U, p: c `7 d
定义link组件 D! o* }& H7 Q" Q' Q0 u0 ~
! ]! \) J# x% b* U. T8 X, I |
6 ~% f, ~+ _- \3 V' U) s添加模型到link
% x9 j, m3 v. Y1 |8 v% ?; i4 A s' j$ C, z; K
5 \- e2 |$ i" I5 Z% u4 ?定义关节. a3 f4 u/ _4 p; S/ Y
$ ]9 M" i3 B4 q" z9 E% O. @% F( d8 p& t, `( k3 w2 _" \& r: i
设置关节类型+ i5 n$ a- a3 c1 @
: y7 _8 z% a$ M6 {1 s5 }, K) N0 L x% h
设置关节轴线
! s3 Z2 u: S% l X) n8 } v* [0 j# t5 }+ ]# H
3 b2 d% @6 n/ O
" _: A4 Q0 H8 @9 U4 `设置关节限位
7 ^. i5 U3 P {1 l
! T) `/ N1 {2 Z" T/ i8 P' F; T5 b3 K# _8 W5 r
5 I7 W4 l2 W( q7 }打开manager robot窗口
8 Y" Z- }* B# s6 C" c |- h: v
8 M( A% k' Q3 U) o/ `
* U: L5 p9 G" I! L1 I# d! `# c命名机器人模型* M+ B0 |* }+ ~' I3 N1 Z5 w
; k9 o8 ?& ~1 B* h, A9 u0 e; k
, T- w" {; D- y& H& t! p( Y输出模型 Y* M; @1 t+ b% w) A! w+ Y
5 L, X( }/ r) I7 Z3 P
. F6 [- t$ g' Q" Q+ I/ V |