Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

4920 строки
137KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Document>
  3. <Model version="4.8" build="4.8.2.10124">
  4. <Sidops><![CDATA[model 128 184
  5. description '<Information>
  6. <Description>
  7. <Version>4.8</Version>
  8. <IsMainModel>0</IsMainModel>
  9. <KeepParameterValues>False</KeepParameterValues>
  10. <LibraryPath>C:\users\wouter\My Documents\studie\ma\mahd\implementation\SCARA\04_path_planning\path_planning.emx</LibraryPath>
  11. <TimeStamp>2020-7-21 13:21:44</TimeStamp>
  12. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  13. </Description>
  14. <Attributes>
  15. <GlobalRelations>parameters
  16. real A = 0.05 {m};
  17. real B = 0.05 {m};
  18. variables
  19. real J0_1_BF1[2];
  20. real J1_2_BF1[2];
  21. real J1_2_BF2[2];
  22. real EE1_BF2[2];
  23. initialequations
  24. J0_1_BF1 = [A/2;0];
  25. J1_2_BF1 = [-A/2;0];
  26. J1_2_BF2 = [B/2;0];
  27. EE1_BF2 = [-B/2;0];</GlobalRelations>
  28. </Attributes>
  29. </Information>';
  30. type Mainmodel
  31. end;
  32. implementation bg
  33. submodels
  34. C1 640 264
  35. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  36. <LibraryPath>Bond Graph\3D\C-3.emx</LibraryPath>
  37. <TimeStamp>2007-9-25 12:12:8</TimeStamp>
  38. </Description>';
  39. type 'C-3'
  40. ports
  41. power in p [3,1];
  42. signal out state [3,1];
  43. restrictions
  44. causality preferred out p;
  45. end;
  46. icon bg bottom
  47. figures
  48. text 'C' 640 264 color 0 18 bold;
  49. end;
  50. implementation eq
  51. parameters
  52. real c[3,3] = [0.1, 0.0, 0.0; 0.0, 0.1, 0.0; 0.0, 0.0, 0.1] {mN/m};
  53. equations
  54. state = int(p.f);
  55. p.e = inverse(c) *state;
  56. implementation_end;
  57. C2 304 272
  58. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  59. <LibraryPath>Bond Graph\3D\C-3.emx</LibraryPath>
  60. <TimeStamp>2007-9-25 12:12:8</TimeStamp>
  61. </Description>';
  62. type 'C-3'
  63. ports
  64. power in p [3,1];
  65. signal out state [3,1];
  66. restrictions
  67. causality preferred out p;
  68. end;
  69. icon bg bottom
  70. figures
  71. text 'C' 304 272 color 0 18 bold;
  72. end;
  73. implementation eq
  74. parameters
  75. real c[3,3] = [0.1, 0.0, 0.0; 0.0, 0.1, 0.0; 0.0, 0.0, 0.1] {mN/m};
  76. equations
  77. state = int(p.f);
  78. p.e = inverse(c) *state;
  79. implementation_end;
  80. C3 304 224
  81. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  82. <LibraryPath>Bond Graph\2D\C-2.emx</LibraryPath>
  83. <TimeStamp>2007-9-25 12:7:27</TimeStamp>
  84. </Description>';
  85. type 'C-2'
  86. ports
  87. power in p [2,1];
  88. signal out state [2,1];
  89. restrictions
  90. causality preferred out p;
  91. end;
  92. icon bg bottom
  93. figures
  94. text 'C' 304 224 color 0 18 bold;
  95. end;
  96. implementation eq
  97. parameters
  98. real c[2,2] = [0.1, 0.0; 0.0, 0.1] {mN.m/rad};
  99. equations
  100. state = int(p.f);
  101. p.e = inverse(c) *state;
  102. implementation_end;
  103. C4 640 216
  104. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  105. <LibraryPath>Bond Graph\2D\C-2.emx</LibraryPath>
  106. <TimeStamp>2007-9-25 12:7:27</TimeStamp>
  107. </Description>';
  108. type 'C-2'
  109. ports
  110. power in p [2,1];
  111. signal out state [2,1];
  112. restrictions
  113. causality preferred out p;
  114. end;
  115. icon bg bottom
  116. figures
  117. text 'C' 640 216 color 0 18 bold;
  118. end;
  119. implementation eq
  120. parameters
  121. real c[2,2] = [0.1, 0.0; 0.0, 0.1] {mN.m/rad};
  122. equations
  123. state = int(p.f);
  124. p.e = inverse(c) *state;
  125. implementation_end;
  126. COM 376 208
  127. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel><LibraryPath>Bond Graph\MR\center_of_mass_v2.emx</LibraryPath><TimeStamp>2020-7-21 12:24:38</TimeStamp></Description><Attributes><GlobalRelations>parameters
  128. real I [3,1] = [1.6399999999999998e-6; 4.7e-8; 1.61e-6] {N.m.s};
  129. real m = 0.00455 {kg};</GlobalRelations></Attributes></Information>';
  130. type Submodel
  131. ports
  132. signal in Hin [4,4];
  133. signal out Hout [4,4];
  134. power out p [6,1];
  135. end;
  136. icon bg bottom
  137. figures
  138. rectangle 344 192 408 224 color 0 fill 139;
  139. text 'COM' 376 208 color 0 'Clear Sans' 16;
  140. terminals
  141. Hin 392 192 fixed;
  142. p 360 192 fixed;
  143. end;
  144. implementation bg
  145. submodels
  146. AdHi0 544 400
  147. description '<Information><Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><LibraryPath></LibraryPath><TimeStamp>2007-9-25 12:3:3</TimeStamp><AllowLibraryUpdate>True</AllowLibraryUpdate></Description></Information>';
  148. type MTF
  149. ports
  150. power in p1 [6,1];
  151. power out p2 [6,1];
  152. signal in H [4,4];
  153. restrictions
  154. causality constraint not_equal p1 p2;
  155. end;
  156. icon bg left
  157. figures
  158. text 'MTF' 544 400 color 0 18 bold;
  159. end;
  160. implementation eq
  161. variables
  162. real onlyRotH[4,4];
  163. code
  164. //Only rotations with respect to the inertial system matter!
  165. onlyRotH = H;
  166. onlyRotH[1,4] = 0;
  167. onlyRotH[2,4] = 0;
  168. onlyRotH[3,4] = 0;
  169. p2.e = transpose(Adjoint(onlyRotH)) * p1.e;
  170. p1.f = Adjoint(onlyRotH) * p2.f;
  171. implementation_end;
  172. EJS 616 336
  173. description '<Information><Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><LibraryPath></LibraryPath><TimeStamp>2007-10-31 11:43:6</TimeStamp><AllowLibraryUpdate>True</AllowLibraryUpdate></Description></Information>';
  174. type MGY
  175. ports
  176. power in p1 [6,1];
  177. end;
  178. icon bg top
  179. figures
  180. text 'MGY' 616 336 color 0 18 bold;
  181. end;
  182. implementation eq
  183. //EJS / Gyroscopic effects
  184. parameters
  185. real global I[3];
  186. real global m;
  187. variables
  188. real II[6,6]; //Inertial tensor
  189. real Q[6,6];
  190. real QI[6,6];
  191. real Ia[6];
  192. initialequations
  193. Ia[1:3] = I;
  194. Ia[4:6] = m;
  195. II = diag(Ia);
  196. equations
  197. Q = transpose(adjoint(p1.f));
  198. QI = Q*II;
  199. p1.e = QI*p1.f;implementation_end;
  200. Gravity 624 400
  201. description '<Information><Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><LibraryPath></LibraryPath><TimeStamp>2007-9-25 12:3:26</TimeStamp><AllowLibraryUpdate>True</AllowLibraryUpdate></Description></Information>';
  202. type Se
  203. ports
  204. power out p [6,1];
  205. restrictions
  206. causality fixed out p;
  207. end;
  208. icon bg bottom
  209. figures
  210. text 'Se' 624 400 color 0 18 bold;
  211. end;
  212. implementation eq
  213. parameters
  214. real global m;
  215. variables
  216. real effort[6];
  217. equations
  218. effort = [0;0;0;0;0;-g_n*m];
  219. p.e = effort;
  220. implementation_end;
  221. InertialTensor 544 272
  222. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  223. <LibraryPath>Bond Graph\3D\I-3.emx</LibraryPath>
  224. <TimeStamp>2007-9-25 12:12:14</TimeStamp>
  225. </Description>';
  226. type 'I-3'
  227. ports
  228. power in p [6,1];
  229. signal out state [6,1];
  230. restrictions
  231. causality preferred in p;
  232. end;
  233. icon bg bottom
  234. figures
  235. text 'I' 544 272 color 0 18 bold;
  236. end;
  237. implementation eq
  238. parameters
  239. real global I[3];
  240. real global m;
  241. variables
  242. real II[6,6]; //Inertial tensor
  243. real Ia[6];
  244. initialequations
  245. Ia[1:3] = I;
  246. Ia[4:6] = m;
  247. II = diag(Ia);
  248. equations
  249. state = int(p.e); //state = generalized momentum
  250. p.f = inverse(II)*state;
  251. implementation_end;
  252. plug Hin 433.4 496;
  253. plug Hout 691.2 496;
  254. plug p 439.4 336;
  255. Splitter1 544 496
  256. description '<Description><Version>4.0</Version>
  257. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  258. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  259. <IsMainModel>1</IsMainModel>
  260. <KeepParameterValues>False</KeepParameterValues>
  261. </Description>';
  262. knot Splitter
  263. ports
  264. signal knot duplicatable out output [4,4];
  265. signal knot in input [4,4];
  266. end;
  267. icon bg ellipse
  268. figures
  269. ellipse 540.8 492.8 547.2 499.2 color -1 fill 0;
  270. ellipse 539.7 491.7 548.3 500.3 color -1;
  271. terminals
  272. input 544 496 fixed;
  273. end;
  274. implementation eq
  275. equations
  276. collect (output) = input;
  277. implementation_end;
  278. Ta0j 544 336
  279. description '<Description>
  280. <Version>4.0</Version>
  281. <IsMainModel>1</IsMainModel>
  282. <KeepParameterValues>False</KeepParameterValues>
  283. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  284. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  285. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  286. <Description></Description>
  287. </Description>';
  288. knot OneJunction
  289. ports
  290. power knot duplicatable none p [6,1];
  291. signal knot out flow [6,1];
  292. restrictions
  293. causality constraint one_out p;
  294. end;
  295. icon bg bottom
  296. figures
  297. text '1' 544 336 color 0 18 bold;
  298. end;
  299. implementation eq
  300. equations
  301. sum (direct (p.e)) = 0;
  302. equal (collect (p.f));
  303. flow = first (p.f);
  304. implementation_end;
  305. ZeroJunction1 504 336
  306. description '<Information>
  307. <Description>
  308. <Version>4.2</Version>
  309. <IsMainModel>1</IsMainModel>
  310. <KeepParameterValues>False</KeepParameterValues>
  311. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  312. <TimeStamp>2011-11-29 16:45:16</TimeStamp>
  313. </Description>
  314. </Information>';
  315. knot ZeroJunction
  316. ports
  317. power knot duplicatable none p [6,1];
  318. signal knot out effort [6,1];
  319. restrictions
  320. causality constraint one_in p;
  321. end;
  322. icon bg
  323. figures
  324. text '0' 504 336 color 0 18 bold;
  325. end;
  326. implementation eq
  327. equations
  328. sum (direct (p.f)) = 0;
  329. equal (collect (p.e));
  330. effort = first (p.e);
  331. implementation_end;
  332. end;
  333. connections
  334. AdHi0\p2 => Ta0j\p;
  335. Gravity\p => AdHi0\p1;
  336. Hin -> Splitter1\input;
  337. Splitter1\output -> AdHi0\H;
  338. Splitter1\output -> Hout;
  339. Ta0j\p => EJS\p1;
  340. Ta0j\p => InertialTensor\p;
  341. ZeroJunction1\p => p;
  342. ZeroJunction1\p => Ta0j\p;
  343. end;
  344. implementation_end;
  345. COM1 720 200
  346. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel><LibraryPath>Bond Graph\MR\center_of_mass_v2.emx</LibraryPath><TimeStamp>2020-7-21 12:24:38</TimeStamp></Description><Attributes><GlobalRelations>parameters
  347. real I [3,1] = [7.583333333333335e-7; 3.645833333333334e-8; 7.364583333333335e-7] {N.m.s};
  348. real m = 0.0035 {kg};</GlobalRelations></Attributes></Information>';
  349. type Submodel
  350. ports
  351. signal in Hin [4,4];
  352. signal out Hout [4,4];
  353. power out p [6,1];
  354. end;
  355. icon bg bottom
  356. figures
  357. rectangle 688 184 752 216 color 0 fill 139;
  358. text 'COM' 720 200 color 0 'Clear Sans' 16;
  359. terminals
  360. Hin 736 184 fixed;
  361. p 704 184 fixed;
  362. end;
  363. implementation bg
  364. submodels
  365. AdHi0 544 400
  366. description '<Information><Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><LibraryPath></LibraryPath><TimeStamp>2007-9-25 12:3:3</TimeStamp><AllowLibraryUpdate>True</AllowLibraryUpdate></Description></Information>';
  367. type MTF
  368. ports
  369. power in p1 [6,1];
  370. power out p2 [6,1];
  371. signal in H [4,4];
  372. restrictions
  373. causality constraint not_equal p1 p2;
  374. end;
  375. icon bg left
  376. figures
  377. text 'MTF' 544 400 color 0 18 bold;
  378. end;
  379. implementation eq
  380. variables
  381. real onlyRotH[4,4];
  382. code
  383. //Only rotations with respect to the inertial system matter!
  384. onlyRotH = H;
  385. onlyRotH[1,4] = 0;
  386. onlyRotH[2,4] = 0;
  387. onlyRotH[3,4] = 0;
  388. p2.e = transpose(Adjoint(onlyRotH)) * p1.e;
  389. p1.f = Adjoint(onlyRotH) * p2.f;
  390. implementation_end;
  391. EJS 616 336
  392. description '<Information><Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><LibraryPath></LibraryPath><TimeStamp>2007-10-31 11:43:6</TimeStamp><AllowLibraryUpdate>True</AllowLibraryUpdate></Description></Information>';
  393. type MGY
  394. ports
  395. power in p1 [6,1];
  396. end;
  397. icon bg top
  398. figures
  399. text 'MGY' 616 336 color 0 18 bold;
  400. end;
  401. implementation eq
  402. //EJS / Gyroscopic effects
  403. parameters
  404. real global I[3];
  405. real global m;
  406. variables
  407. real II[6,6]; //Inertial tensor
  408. real Q[6,6];
  409. real QI[6,6];
  410. real Ia[6];
  411. initialequations
  412. Ia[1:3] = I;
  413. Ia[4:6] = m;
  414. II = diag(Ia);
  415. equations
  416. Q = transpose(adjoint(p1.f));
  417. QI = Q*II;
  418. p1.e = QI*p1.f;implementation_end;
  419. Gravity 624 400
  420. description '<Information><Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><LibraryPath></LibraryPath><TimeStamp>2007-9-25 12:3:26</TimeStamp><AllowLibraryUpdate>True</AllowLibraryUpdate></Description></Information>';
  421. type Se
  422. ports
  423. power out p [6,1];
  424. restrictions
  425. causality fixed out p;
  426. end;
  427. icon bg bottom
  428. figures
  429. text 'Se' 624 400 color 0 18 bold;
  430. end;
  431. implementation eq
  432. parameters
  433. real global m;
  434. variables
  435. real effort[6];
  436. equations
  437. effort = [0;0;0;0;0;-g_n*m];
  438. p.e = effort;
  439. implementation_end;
  440. InertialTensor 544 272
  441. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  442. <LibraryPath>Bond Graph\3D\I-3.emx</LibraryPath>
  443. <TimeStamp>2007-9-25 12:12:14</TimeStamp>
  444. </Description>';
  445. type 'I-3'
  446. ports
  447. power in p [6,1];
  448. signal out state [6,1];
  449. restrictions
  450. causality preferred in p;
  451. end;
  452. icon bg bottom
  453. figures
  454. text 'I' 544 272 color 0 18 bold;
  455. end;
  456. implementation eq
  457. parameters
  458. real global I[3];
  459. real global m;
  460. variables
  461. real II[6,6]; //Inertial tensor
  462. real Ia[6];
  463. initialequations
  464. Ia[1:3] = I;
  465. Ia[4:6] = m;
  466. II = diag(Ia);
  467. equations
  468. state = int(p.e); //state = generalized momentum
  469. p.f = inverse(II)*state;
  470. implementation_end;
  471. plug Hin 433.4 496;
  472. plug Hout 691.2 496;
  473. plug p 439.4 336;
  474. Splitter1 544 496
  475. description '<Description><Version>4.0</Version>
  476. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  477. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  478. <IsMainModel>1</IsMainModel>
  479. <KeepParameterValues>False</KeepParameterValues>
  480. </Description>';
  481. knot Splitter
  482. ports
  483. signal knot duplicatable out output [4,4];
  484. signal knot in input [4,4];
  485. end;
  486. icon bg ellipse
  487. figures
  488. ellipse 540.8 492.8 547.2 499.2 color -1 fill 0;
  489. ellipse 539.7 491.7 548.3 500.3 color -1;
  490. terminals
  491. input 544 496 fixed;
  492. end;
  493. implementation eq
  494. equations
  495. collect (output) = input;
  496. implementation_end;
  497. Ta0j 544 336
  498. description '<Description>
  499. <Version>4.0</Version>
  500. <IsMainModel>1</IsMainModel>
  501. <KeepParameterValues>False</KeepParameterValues>
  502. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  503. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  504. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  505. <Description></Description>
  506. </Description>';
  507. knot OneJunction
  508. ports
  509. power knot duplicatable none p [6,1];
  510. signal knot out flow [6,1];
  511. restrictions
  512. causality constraint one_out p;
  513. end;
  514. icon bg bottom
  515. figures
  516. text '1' 544 336 color 0 18 bold;
  517. end;
  518. implementation eq
  519. equations
  520. sum (direct (p.e)) = 0;
  521. equal (collect (p.f));
  522. flow = first (p.f);
  523. implementation_end;
  524. ZeroJunction1 504 336
  525. description '<Information>
  526. <Description>
  527. <Version>4.2</Version>
  528. <IsMainModel>1</IsMainModel>
  529. <KeepParameterValues>False</KeepParameterValues>
  530. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  531. <TimeStamp>2011-11-29 16:45:16</TimeStamp>
  532. </Description>
  533. </Information>';
  534. knot ZeroJunction
  535. ports
  536. power knot duplicatable none p [6,1];
  537. signal knot out effort [6,1];
  538. restrictions
  539. causality constraint one_in p;
  540. end;
  541. icon bg
  542. figures
  543. text '0' 504 336 color 0 18 bold;
  544. end;
  545. implementation eq
  546. equations
  547. sum (direct (p.f)) = 0;
  548. equal (collect (p.e));
  549. effort = first (p.e);
  550. implementation_end;
  551. end;
  552. connections
  553. AdHi0\p2 => Ta0j\p;
  554. Gravity\p => AdHi0\p1;
  555. Hin -> Splitter1\input;
  556. Splitter1\output -> AdHi0\H;
  557. Splitter1\output -> Hout;
  558. Ta0j\p => EJS\p1;
  559. Ta0j\p => InertialTensor\p;
  560. ZeroJunction1\p => p;
  561. ZeroJunction1\p => Ta0j\p;
  562. end;
  563. implementation_end;
  564. COM2 904 184
  565. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel><LibraryPath>Bond Graph\MR\center_of_mass_v2.emx</LibraryPath><TimeStamp>2020-7-21 12:24:38</TimeStamp></Description><Attributes><GlobalRelations>parameters
  566. real I [3,1] = [0.018;0.159;0.159] {mN.m.s};
  567. real m = 0.015 {kg};</GlobalRelations></Attributes></Information>';
  568. type Submodel
  569. ports
  570. signal in Hin [4,4];
  571. signal out Hout [4,4];
  572. power out p [6,1];
  573. end;
  574. icon bg bottom
  575. figures
  576. rectangle 872 168 936 200 color 0 fill 139;
  577. text 'COM' 904 184 color 0 'Clear Sans' 16;
  578. terminals
  579. Hin 920 168 fixed;
  580. p 888 168 fixed;
  581. end;
  582. implementation bg
  583. submodels
  584. AdHi0 544 400
  585. description '<Information><Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><LibraryPath></LibraryPath><TimeStamp>2007-9-25 12:3:3</TimeStamp><AllowLibraryUpdate>True</AllowLibraryUpdate></Description></Information>';
  586. type MTF
  587. ports
  588. power in p1 [6,1];
  589. power out p2 [6,1];
  590. signal in H [4,4];
  591. restrictions
  592. causality constraint not_equal p1 p2;
  593. end;
  594. icon bg left
  595. figures
  596. text 'MTF' 544 400 color 0 18 bold;
  597. end;
  598. implementation eq
  599. variables
  600. real onlyRotH[4,4];
  601. code
  602. //Only rotations with respect to the inertial system matter!
  603. onlyRotH = H;
  604. onlyRotH[1,4] = 0;
  605. onlyRotH[2,4] = 0;
  606. onlyRotH[3,4] = 0;
  607. p2.e = transpose(Adjoint(onlyRotH)) * p1.e;
  608. p1.f = Adjoint(onlyRotH) * p2.f;
  609. implementation_end;
  610. EJS 616 336
  611. description '<Information><Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><LibraryPath></LibraryPath><TimeStamp>2007-10-31 11:43:6</TimeStamp><AllowLibraryUpdate>True</AllowLibraryUpdate></Description></Information>';
  612. type MGY
  613. ports
  614. power in p1 [6,1];
  615. end;
  616. icon bg top
  617. figures
  618. text 'MGY' 616 336 color 0 18 bold;
  619. end;
  620. implementation eq
  621. //EJS / Gyroscopic effects
  622. parameters
  623. real global I[3];
  624. real global m;
  625. variables
  626. real II[6,6]; //Inertial tensor
  627. real Q[6,6];
  628. real QI[6,6];
  629. real Ia[6];
  630. initialequations
  631. Ia[1:3] = I;
  632. Ia[4:6] = m;
  633. II = diag(Ia);
  634. equations
  635. Q = transpose(adjoint(p1.f));
  636. QI = Q*II;
  637. p1.e = QI*p1.f;implementation_end;
  638. Gravity 624 400
  639. description '<Information><Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><LibraryPath></LibraryPath><TimeStamp>2007-9-25 12:3:26</TimeStamp><AllowLibraryUpdate>True</AllowLibraryUpdate></Description></Information>';
  640. type Se
  641. ports
  642. power out p [6,1];
  643. restrictions
  644. causality fixed out p;
  645. end;
  646. icon bg bottom
  647. figures
  648. text 'Se' 624 400 color 0 18 bold;
  649. end;
  650. implementation eq
  651. parameters
  652. real global m;
  653. variables
  654. real effort[6];
  655. equations
  656. effort = [0;0;0;0;0;-g_n*m];
  657. p.e = effort;
  658. implementation_end;
  659. InertialTensor 544 272
  660. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  661. <LibraryPath>Bond Graph\3D\I-3.emx</LibraryPath>
  662. <TimeStamp>2007-9-25 12:12:14</TimeStamp>
  663. </Description>';
  664. type 'I-3'
  665. ports
  666. power in p [6,1];
  667. signal out state [6,1];
  668. restrictions
  669. causality preferred in p;
  670. end;
  671. icon bg bottom
  672. figures
  673. text 'I' 544 272 color 0 18 bold;
  674. end;
  675. implementation eq
  676. parameters
  677. real global I[3];
  678. real global m;
  679. variables
  680. real II[6,6]; //Inertial tensor
  681. real Ia[6];
  682. initialequations
  683. Ia[1:3] = I;
  684. Ia[4:6] = m;
  685. II = diag(Ia);
  686. equations
  687. state = int(p.e); //state = generalized momentum
  688. p.f = inverse(II)*state;
  689. implementation_end;
  690. plug Hin 433.4 496;
  691. plug Hout 691.2 496;
  692. plug p 424 336;
  693. Splitter1 544 496
  694. description '<Description><Version>4.0</Version>
  695. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  696. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  697. <IsMainModel>1</IsMainModel>
  698. <KeepParameterValues>False</KeepParameterValues>
  699. </Description>';
  700. knot Splitter
  701. ports
  702. signal knot duplicatable out output [4,4];
  703. signal knot in input [4,4];
  704. end;
  705. icon bg ellipse
  706. figures
  707. ellipse 540.8 492.8 547.2 499.2 color -1 fill 0;
  708. ellipse 539.7 491.7 548.3 500.3 color -1;
  709. terminals
  710. input 544 496 fixed;
  711. end;
  712. implementation eq
  713. equations
  714. collect (output) = input;
  715. implementation_end;
  716. Ta0j 544 336
  717. description '<Description>
  718. <Version>4.0</Version>
  719. <IsMainModel>1</IsMainModel>
  720. <KeepParameterValues>False</KeepParameterValues>
  721. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  722. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  723. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  724. <Description></Description>
  725. </Description>';
  726. knot OneJunction
  727. ports
  728. power knot duplicatable none p [6,1];
  729. signal knot out flow [6,1];
  730. restrictions
  731. causality constraint one_out p;
  732. end;
  733. icon bg bottom
  734. figures
  735. text '1' 544 336 color 0 18 bold;
  736. end;
  737. implementation eq
  738. equations
  739. sum (direct (p.e)) = 0;
  740. equal (collect (p.f));
  741. flow = first (p.f);
  742. implementation_end;
  743. ZeroJunction1 480 336
  744. description '<Information>
  745. <Description>
  746. <Version>4.2</Version>
  747. <IsMainModel>1</IsMainModel>
  748. <KeepParameterValues>False</KeepParameterValues>
  749. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  750. <TimeStamp>2011-11-29 16:45:16</TimeStamp>
  751. </Description>
  752. </Information>';
  753. knot ZeroJunction
  754. ports
  755. power knot duplicatable none p [6,1];
  756. signal knot out effort [6,1];
  757. restrictions
  758. causality constraint one_in p;
  759. end;
  760. icon bg
  761. figures
  762. text '0' 480 336 color 0 18 bold;
  763. end;
  764. implementation eq
  765. equations
  766. sum (direct (p.f)) = 0;
  767. equal (collect (p.e));
  768. effort = first (p.e);
  769. implementation_end;
  770. end;
  771. connections
  772. AdHi0\p2 => Ta0j\p;
  773. Gravity\p => AdHi0\p1;
  774. Hin -> Splitter1\input;
  775. Splitter1\output -> AdHi0\H;
  776. Splitter1\output -> Hout;
  777. Ta0j\p => EJS\p1;
  778. Ta0j\p => InertialTensor\p;
  779. ZeroJunction1\p => p;
  780. ZeroJunction1\p => Ta0j\p;
  781. end;
  782. implementation_end;
  783. Integrate 184 288
  784. description '<Information>
  785. <Description>
  786. <Version>4.3</Version>
  787. <IsMainModel>1</IsMainModel>
  788. <KeepParameterValues>False</KeepParameterValues>
  789. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  790. <TimeStamp>2013-3-8 14:47:42</TimeStamp>
  791. </Description>
  792. </Information>';
  793. type Integrate
  794. ports
  795. signal in input;
  796. signal out output;
  797. end;
  798. icon bg bottom
  799. figures
  800. rectangle 168 272 200 304 color 0 fill 15132390;
  801. text '∫' 184 288.3 color 16711680 'Lucida Sans' 21 italic;
  802. end;
  803. implementation eq
  804. parameters
  805. real initial = 0; // initial value
  806. equations
  807. output = int (input, initial);
  808. implementation_end;
  809. Integrate1 520 360
  810. description '<Information>
  811. <Description>
  812. <Version>4.3</Version>
  813. <IsMainModel>1</IsMainModel>
  814. <KeepParameterValues>False</KeepParameterValues>
  815. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  816. <TimeStamp>2013-3-8 14:47:42</TimeStamp>
  817. </Description>
  818. </Information>';
  819. type Integrate
  820. ports
  821. signal in input;
  822. signal out output;
  823. end;
  824. icon bg bottom
  825. figures
  826. rectangle 504 344 536 376 color 0 fill 15132390;
  827. text '∫' 520 360.3 color 16711680 'Lucida Sans' 21 italic;
  828. end;
  829. implementation eq
  830. parameters
  831. real initial = 0; // initial value
  832. equations
  833. output = int (input, initial);
  834. implementation_end;
  835. inverse_kinematics1 272 552
  836. description '<Information>
  837. <Description>
  838. <Version>4.8</Version>
  839. <LibraryPath>SCARA\inverse_kinematics_v1.emx</LibraryPath>
  840. <IsMainModel>1</IsMainModel>
  841. <KeepParameterValues>False</KeepParameterValues>
  842. <TimeStamp>2020-7-10 12:26:18</TimeStamp>
  843. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  844. </Description>
  845. </Information>';
  846. type 'Submodel-Equation'
  847. ports
  848. signal in input [2,1] {m} ;
  849. signal out angle1 {rad} ;
  850. signal out angle2 {rad} ;
  851. signal out a {rad} ;
  852. signal out b {rad} ;
  853. signal out c {rad} ;
  854. signal out phi {rad} ;
  855. signal out abs_angle2;
  856. end;
  857. implementation eq
  858. parameters
  859. real A_length = 0.065 {m}; // length of first arm
  860. real B_length = 0.05 {m}; // length of second arm
  861. real to_rad = 1 {rad};
  862. variables
  863. real x {m}, y {m};
  864. real C_length {m}; // length to x and y.
  865. equations
  866. x = input[1];
  867. y = input[2];
  868. phi = atan2(y, x);
  869. C_length = sqrt(x^2 + y^2);
  870. a = arccos ((B_length^2 + C_length^2 - A_length^2) / (2 * B_length * C_length));
  871. b = arccos ((A_length^2 + C_length^2 - B_length^2) / (2 * A_length * C_length));
  872. c = arccos ((A_length^2 + B_length^2 - C_length^2) / (2 * A_length * B_length));
  873. angle1 = b + phi;
  874. abs_angle2 = angle1 - pi * to_rad + c;
  875. angle2 = c - pi * to_rad;
  876. implementation_end;
  877. Joint 192 120
  878. description '<Information>
  879. <Description>
  880. <Version>4.8</Version>
  881. <IsMainModel>1</IsMainModel>
  882. <LibraryPath>Bond Graph\MR\joint-v3.emx</LibraryPath>
  883. <TimeStamp>2020-7-21 12:08:53</TimeStamp>
  884. </Description>
  885. </Information>';
  886. type 'Submodel-v3'
  887. ports
  888. power in Pin [6,1];
  889. power in Pdiff [6,1];
  890. signal in Hin [4,4];
  891. signal out Hout [4,4];
  892. signal out Hdiff [4,4];
  893. power out Pout [6,1];
  894. end;
  895. icon bg bottom
  896. figures
  897. rectangle 168 88 216 152 color 0 fill 14745599;
  898. text 'Joint' 192 120 color 0 'Clear Sans' 16;
  899. terminals
  900. Pin 216 104 fixed;
  901. Hin 168 136 fixed;
  902. Hout 216 136 fixed;
  903. Pout 168 104 fixed;
  904. end;
  905. implementation bg
  906. submodels
  907. AdHji 424 424
  908. description '<Description>
  909. <Version>4.0</Version>
  910. <IsMainModel>1</IsMainModel>
  911. <KeepParameterValues>False</KeepParameterValues>
  912. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  913. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  914. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  915. </Description>';
  916. type MTF
  917. ports
  918. power out p1 [6,1];
  919. power in p2 [6,1];
  920. signal in H [4,4];
  921. restrictions
  922. causality constraint not_equal p1 p2;
  923. end;
  924. icon bg bottom
  925. figures
  926. text 'MTF' 424 424 color 0 18 bold;
  927. end;
  928. implementation eq
  929. equations
  930. p2.e = transpose(Adjoint(H)) * p1.e;
  931. p1.f = Adjoint(H) * p2.f;implementation_end;
  932. FlowSensor2 184 311.9
  933. description '<Information>
  934. <Description>
  935. <Version>4.2</Version>
  936. <IsMainModel>1</IsMainModel>
  937. <KeepParameterValues>False</KeepParameterValues>
  938. <LibraryPath>Bond Graph\FlowSensor.emx</LibraryPath>
  939. <TimeStamp>2011-11-29 15:50:53</TimeStamp>
  940. </Description>
  941. </Information>';
  942. knot FlowSensor
  943. ports
  944. power knot in p1 [6,1];
  945. power knot out p2 [6,1];
  946. signal knot out flow [6,1];
  947. restrictions
  948. causality constraint not_equal p1 p2;
  949. end;
  950. icon bg ellipse
  951. figures
  952. ellipse 177.1 304.8 190.9 319.1 color 0 fill 16777215;
  953. text 'f' 184 311.2 color 0;
  954. end;
  955. implementation eq
  956. equations
  957. p2.f = p1.f;
  958. p1.e = p2.e;
  959. flow = p1.f;
  960. implementation_end;
  961. Hmatrix 256 312
  962. description '<Information><Description><Version>4.0</Version><LibraryPath>Template\Submodel-Equation.emx</LibraryPath><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><TimeStamp>2007-11-1 22:32:1</TimeStamp><AllowLibraryUpdate>False</AllowLibraryUpdate></Description></Information>';
  963. type 'Submodel-Equation'
  964. ports
  965. signal in flow [6,1];
  966. signal out H [4,4];
  967. end;
  968. icon bg
  969. figures
  970. rectangle 224 296 288 328 color 0 fill 15132390;
  971. text 'name' 256 312 color 0 'Clear Sans' 16;
  972. end;
  973. implementation eq
  974. parameters
  975. real init[4] = [1;0;0;0];
  976. variables
  977. real q[4]; //quaternions
  978. real W[3,4]; //Quaternion Rates Matrix
  979. real R[3,3]; //Rotation Matrix
  980. real p[3]; //Position Vector
  981. real dq[4];
  982. real Wb[3,4];
  983. equations
  984. dq = transpose(Wb) * flow[1:3] ./ 2;
  985. q = int(dq,init);
  986. p = int(flow[4:6]);
  987. W = [-q[2], q[1], -q[4], q[3];
  988. -q[3], q[4], q[1], -q[2];
  989. -q[4], -q[3], q[2], q[1]];
  990. Wb = [ -q[2], q[1], q[4], -q[3];
  991. -q[3], -q[4], q[1], q[2];
  992. -q[4], q[3], -q[2], q[1]];
  993. R = [q[1]^2+q[2]^2-q[3]^2-q[4]^2, 2*(q[2]*q[3]+q[1]*q[4]), 2*(q[2]*q[4]-q[1]*q[3]);
  994. 2*(q[2]*q[3]-q[1]*q[4]), q[1]^2-q[2]^2+q[3]^2-q[4]^2, 2*(q[3]*q[4]+q[1]*q[2]);
  995. 2*(q[2]*q[4]+q[1]*q[3]), 2*(q[3]*q[4]-q[1]*q[2]), q[1]^2-q[2]^2-q[3]^2+q[4]^2];
  996. H = homogeneous(R,p);
  997. implementation_end;
  998. MatrixMul 320 576
  999. description '<Description>
  1000. <Version>4.0</Version>
  1001. <IsMainModel>1</IsMainModel>
  1002. <KeepParameterValues>False</KeepParameterValues>
  1003. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  1004. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  1005. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1006. </Description>';
  1007. type Gain
  1008. ports
  1009. signal in input1 [4,4];
  1010. signal out output [4,4];
  1011. signal in input2 [4,4];
  1012. end;
  1013. icon bg bottom
  1014. figures
  1015. rectangle 304.1 560 335.9 592 color 0 fill 15132390;
  1016. text 'X' 320 576 color 16711680 16 bold;
  1017. end;
  1018. implementation eq
  1019. equations
  1020. output = input2*input1; implementation_end;
  1021. plug Pin 492.1 424;
  1022. plug Pdiff 184 225;
  1023. plug Hin 130.8 576;
  1024. plug Hout 478.4 576;
  1025. plug Hdiff 320 222;
  1026. plug Pout 134.7 424;
  1027. Splitter2 320 312
  1028. description '<Description><Version>4.0</Version>
  1029. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  1030. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  1031. <IsMainModel>1</IsMainModel>
  1032. <KeepParameterValues>False</KeepParameterValues>
  1033. </Description>';
  1034. knot Splitter
  1035. ports
  1036. signal knot duplicatable out output [4,4];
  1037. signal knot in input [4,4];
  1038. end;
  1039. icon bg ellipse
  1040. figures
  1041. ellipse 316.8 308.8 323.2 315.2 color -1 fill 0;
  1042. ellipse 315.7 307.7 324.3 316.3 color -1;
  1043. terminals
  1044. input 320 312 fixed;
  1045. end;
  1046. implementation eq
  1047. equations
  1048. collect (output) = input;
  1049. implementation_end;
  1050. Wbai 184 424
  1051. description '<Description>
  1052. <Version>4.0</Version>
  1053. <IsMainModel>1</IsMainModel>
  1054. <KeepParameterValues>False</KeepParameterValues>
  1055. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  1056. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  1057. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1058. </Description>';
  1059. knot ZeroJunction
  1060. ports
  1061. power knot duplicatable none p [6,1];
  1062. signal knot out effort [6,1];
  1063. restrictions
  1064. causality constraint one_in p;
  1065. end;
  1066. icon bg bottom
  1067. figures
  1068. text '0' 184 424 color 0 18 bold;
  1069. end;
  1070. implementation eq
  1071. equations
  1072. sum (direct (p.f)) = 0;
  1073. equal (collect (p.e));
  1074. effort = first (p.e);
  1075. implementation_end;
  1076. end;
  1077. connections
  1078. FlowSensor2\flow -> Hmatrix\flow;
  1079. FlowSensor2\p2 => Wbai\p;
  1080. Hin -> MatrixMul\input2;
  1081. Hmatrix\H -> Splitter2\input;
  1082. MatrixMul\output -> Hout;
  1083. Pdiff => FlowSensor2\p1;
  1084. Pin => AdHji\p2;
  1085. Splitter2\output -> AdHji\H 424 312;
  1086. Splitter2\output -> Hdiff;
  1087. Splitter2\output -> MatrixMul\input1;
  1088. Wbai\p <= AdHji\p1;
  1089. Wbai\p => Pout;
  1090. end;
  1091. implementation_end;
  1092. Joint1 536 120
  1093. description '<Information>
  1094. <Description>
  1095. <Version>4.8</Version>
  1096. <IsMainModel>1</IsMainModel>
  1097. <LibraryPath>Bond Graph\MR\joint-v3.emx</LibraryPath>
  1098. <TimeStamp>2020-7-21 12:08:53</TimeStamp>
  1099. </Description>
  1100. </Information>';
  1101. type 'Submodel-v3'
  1102. ports
  1103. power in Pin [6,1];
  1104. power in Pdiff [6,1];
  1105. signal in Hin [4,4];
  1106. signal out Hout [4,4];
  1107. signal out Hdiff [4,4];
  1108. power out Pout [6,1];
  1109. end;
  1110. icon bg bottom
  1111. figures
  1112. rectangle 512 88 560 152 color 0 fill 14745599;
  1113. text 'Joint' 536 120 color 0 'Clear Sans' 16;
  1114. terminals
  1115. Pin 560 104 fixed;
  1116. Hin 512 136 fixed;
  1117. Hout 560 136 fixed;
  1118. Pout 512 104 fixed;
  1119. end;
  1120. implementation bg
  1121. submodels
  1122. AdHji 424 424
  1123. description '<Description>
  1124. <Version>4.0</Version>
  1125. <IsMainModel>1</IsMainModel>
  1126. <KeepParameterValues>False</KeepParameterValues>
  1127. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  1128. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  1129. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1130. </Description>';
  1131. type MTF
  1132. ports
  1133. power out p1 [6,1];
  1134. power in p2 [6,1];
  1135. signal in H [4,4];
  1136. restrictions
  1137. causality constraint not_equal p1 p2;
  1138. end;
  1139. icon bg bottom
  1140. figures
  1141. text 'MTF' 424 424 color 0 18 bold;
  1142. end;
  1143. implementation eq
  1144. equations
  1145. p2.e = transpose(Adjoint(H)) * p1.e;
  1146. p1.f = Adjoint(H) * p2.f;implementation_end;
  1147. FlowSensor2 184 311.9
  1148. description '<Information>
  1149. <Description>
  1150. <Version>4.2</Version>
  1151. <IsMainModel>1</IsMainModel>
  1152. <KeepParameterValues>False</KeepParameterValues>
  1153. <LibraryPath>Bond Graph\FlowSensor.emx</LibraryPath>
  1154. <TimeStamp>2011-11-29 15:50:53</TimeStamp>
  1155. </Description>
  1156. </Information>';
  1157. knot FlowSensor
  1158. ports
  1159. power knot in p1 [6,1];
  1160. power knot out p2 [6,1];
  1161. signal knot out flow [6,1];
  1162. restrictions
  1163. causality constraint not_equal p1 p2;
  1164. end;
  1165. icon bg ellipse
  1166. figures
  1167. ellipse 177.1 304.8 190.9 319.1 color 0 fill 16777215;
  1168. text 'f' 184 311.2 color 0;
  1169. end;
  1170. implementation eq
  1171. equations
  1172. p2.f = p1.f;
  1173. p1.e = p2.e;
  1174. flow = p1.f;
  1175. implementation_end;
  1176. Hmatrix 256 312
  1177. description '<Information><Description><Version>4.0</Version><LibraryPath>Template\Submodel-Equation.emx</LibraryPath><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><TimeStamp>2007-11-1 22:32:1</TimeStamp><AllowLibraryUpdate>False</AllowLibraryUpdate></Description></Information>';
  1178. type 'Submodel-Equation'
  1179. ports
  1180. signal in flow [6,1];
  1181. signal out H [4,4];
  1182. end;
  1183. icon bg
  1184. figures
  1185. rectangle 224 296 288 328 color 0 fill 15132390;
  1186. text 'name' 256 312 color 0 'Clear Sans' 16;
  1187. end;
  1188. implementation eq
  1189. parameters
  1190. real init[4] = [1;0;0;0];
  1191. variables
  1192. real q[4]; //quaternions
  1193. real W[3,4]; //Quaternion Rates Matrix
  1194. real R[3,3]; //Rotation Matrix
  1195. real p[3]; //Position Vector
  1196. real dq[4];
  1197. real Wb[3,4];
  1198. equations
  1199. dq = transpose(Wb) * flow[1:3] ./ 2;
  1200. q = int(dq,init);
  1201. p = int(flow[4:6]);
  1202. W = [-q[2], q[1], -q[4], q[3];
  1203. -q[3], q[4], q[1], -q[2];
  1204. -q[4], -q[3], q[2], q[1]];
  1205. Wb = [ -q[2], q[1], q[4], -q[3];
  1206. -q[3], -q[4], q[1], q[2];
  1207. -q[4], q[3], -q[2], q[1]];
  1208. R = [q[1]^2+q[2]^2-q[3]^2-q[4]^2, 2*(q[2]*q[3]+q[1]*q[4]), 2*(q[2]*q[4]-q[1]*q[3]);
  1209. 2*(q[2]*q[3]-q[1]*q[4]), q[1]^2-q[2]^2+q[3]^2-q[4]^2, 2*(q[3]*q[4]+q[1]*q[2]);
  1210. 2*(q[2]*q[4]+q[1]*q[3]), 2*(q[3]*q[4]-q[1]*q[2]), q[1]^2-q[2]^2-q[3]^2+q[4]^2];
  1211. H = homogeneous(R,p);
  1212. implementation_end;
  1213. MatrixMul 320 576
  1214. description '<Description>
  1215. <Version>4.0</Version>
  1216. <IsMainModel>1</IsMainModel>
  1217. <KeepParameterValues>False</KeepParameterValues>
  1218. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  1219. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  1220. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1221. </Description>';
  1222. type Gain
  1223. ports
  1224. signal in input1 [4,4];
  1225. signal out output [4,4];
  1226. signal in input2 [4,4];
  1227. end;
  1228. icon bg bottom
  1229. figures
  1230. rectangle 304.1 560 335.9 592 color 0 fill 15132390;
  1231. text 'X' 320 576 color 16711680 16 bold;
  1232. end;
  1233. implementation eq
  1234. equations
  1235. output = input2*input1; implementation_end;
  1236. plug Pin 492.1 424;
  1237. plug Pdiff 184 225;
  1238. plug Hin 130.8 576;
  1239. plug Hout 478.4 576;
  1240. plug Hdiff 320 222;
  1241. plug Pout 134.7 424;
  1242. Splitter2 320 312
  1243. description '<Description><Version>4.0</Version>
  1244. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  1245. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  1246. <IsMainModel>1</IsMainModel>
  1247. <KeepParameterValues>False</KeepParameterValues>
  1248. </Description>';
  1249. knot Splitter
  1250. ports
  1251. signal knot duplicatable out output [4,4];
  1252. signal knot in input [4,4];
  1253. end;
  1254. icon bg ellipse
  1255. figures
  1256. ellipse 316.8 308.8 323.2 315.2 color -1 fill 0;
  1257. ellipse 315.7 307.7 324.3 316.3 color -1;
  1258. terminals
  1259. input 320 312 fixed;
  1260. end;
  1261. implementation eq
  1262. equations
  1263. collect (output) = input;
  1264. implementation_end;
  1265. Wbai 184 424
  1266. description '<Description>
  1267. <Version>4.0</Version>
  1268. <IsMainModel>1</IsMainModel>
  1269. <KeepParameterValues>False</KeepParameterValues>
  1270. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  1271. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  1272. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1273. </Description>';
  1274. knot ZeroJunction
  1275. ports
  1276. power knot duplicatable none p [6,1];
  1277. signal knot out effort [6,1];
  1278. restrictions
  1279. causality constraint one_in p;
  1280. end;
  1281. icon bg bottom
  1282. figures
  1283. text '0' 184 424 color 0 18 bold;
  1284. end;
  1285. implementation eq
  1286. equations
  1287. sum (direct (p.f)) = 0;
  1288. equal (collect (p.e));
  1289. effort = first (p.e);
  1290. implementation_end;
  1291. end;
  1292. connections
  1293. FlowSensor2\flow -> Hmatrix\flow;
  1294. FlowSensor2\p2 => Wbai\p;
  1295. Hin -> MatrixMul\input2;
  1296. Hmatrix\H -> Splitter2\input;
  1297. MatrixMul\output -> Hout;
  1298. Pdiff => FlowSensor2\p1;
  1299. Pin => AdHji\p2;
  1300. Splitter2\output -> AdHji\H 424 312;
  1301. Splitter2\output -> Hdiff;
  1302. Splitter2\output -> MatrixMul\input1;
  1303. Wbai\p <= AdHji\p1;
  1304. Wbai\p => Pout;
  1305. end;
  1306. implementation_end;
  1307. Link 288 120
  1308. description '<Information>
  1309. <Description>
  1310. <Version>4.8</Version>
  1311. <LibraryPath>Bond Graph\MR\link-v3.emx</LibraryPath>
  1312. <IsMainModel>1</IsMainModel>
  1313. <KeepParameterValues>False</KeepParameterValues>
  1314. <TimeStamp>2020-7-21 11:14:41</TimeStamp>
  1315. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  1316. </Description>
  1317. </Information>';
  1318. type 'Submodel-Equation'
  1319. ports
  1320. signal in Hin [4,4];
  1321. signal out Hout [4,4];
  1322. power in Pin [6,1];
  1323. power out Pout [6,1];
  1324. restrictions
  1325. causality constraint not_equal Pin Pout;
  1326. end;
  1327. icon bg bottom
  1328. figures
  1329. rectangle 256 96 320 144 color 0 fill 8454041;
  1330. text 'Link' 288 120 color 0 'Clear Sans' 16;
  1331. terminals
  1332. Hin 256 136 fixed;
  1333. Hout 320 136 fixed;
  1334. Pin 320 104 fixed;
  1335. Pout 256 104 fixed;
  1336. end;
  1337. implementation eq
  1338. parameters
  1339. real offset[6]= [0;0;0;0;0.0325;0]; //coordinates of joint_1
  1340. variables
  1341. real Hab[4,4];
  1342. real AdHab[6,6];
  1343. real R[3,3];
  1344. real omega[3];
  1345. initialequations
  1346. omega = offset[1:3];
  1347. R = dll('EulerAngles.dll','RotationMatrixFromEulXYZs',omega);
  1348. Hab = homogeneous(R,offset[4:6]);
  1349. AdHab = Adjoint(Hab);
  1350. equations
  1351. Hout = Hin * Hab;
  1352. Pout.e = transpose(AdHab) * Pin.e;
  1353. Pin.f = AdHab * Pout.f;
  1354. implementation_end;
  1355. Link1 456 120
  1356. description '<Information>
  1357. <Description>
  1358. <Version>4.8</Version>
  1359. <LibraryPath>Bond Graph\MR\link-v3.emx</LibraryPath>
  1360. <IsMainModel>1</IsMainModel>
  1361. <KeepParameterValues>False</KeepParameterValues>
  1362. <TimeStamp>2020-7-21 11:14:41</TimeStamp>
  1363. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  1364. </Description>
  1365. </Information>';
  1366. type 'Submodel-Equation'
  1367. ports
  1368. signal in Hin [4,4];
  1369. signal out Hout [4,4];
  1370. power in Pin [6,1];
  1371. power out Pout [6,1];
  1372. restrictions
  1373. causality constraint not_equal Pin Pout;
  1374. end;
  1375. icon bg bottom
  1376. figures
  1377. rectangle 424 96 488 144 color 0 fill 8454041;
  1378. text 'Link' 456 120 color 0 'Clear Sans' 16;
  1379. terminals
  1380. Hin 424 136 fixed;
  1381. Hout 488 136 fixed;
  1382. Pin 488 104 fixed;
  1383. Pout 424 104 fixed;
  1384. end;
  1385. implementation eq
  1386. parameters
  1387. real offset[6]= [0;0;0;0;0.0325;0]; //coordinates of joint_1
  1388. variables
  1389. real Hab[4,4];
  1390. real AdHab[6,6];
  1391. real R[3,3];
  1392. real omega[3];
  1393. initialequations
  1394. omega = offset[1:3];
  1395. R = dll('EulerAngles.dll','RotationMatrixFromEulXYZr',omega);
  1396. Hab = homogeneous(R,offset[4:6]);
  1397. AdHab = Adjoint(Hab);
  1398. equations
  1399. Hout = Hin * Hab;
  1400. Pout.e = transpose(AdHab) * Pin.e;
  1401. Pin.f = AdHab * Pout.f;
  1402. implementation_end;
  1403. Link2 624 120
  1404. description '<Information>
  1405. <Description>
  1406. <Version>4.8</Version>
  1407. <LibraryPath>Bond Graph\MR\link-v3.emx</LibraryPath>
  1408. <IsMainModel>1</IsMainModel>
  1409. <KeepParameterValues>False</KeepParameterValues>
  1410. <TimeStamp>2020-7-19 15:22:34</TimeStamp>
  1411. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  1412. </Description>
  1413. </Information>';
  1414. type 'Submodel-Equation'
  1415. ports
  1416. signal in Hin [4,4];
  1417. signal out Hout [4,4];
  1418. power in Pin [6,1];
  1419. power out Pout [6,1];
  1420. restrictions
  1421. causality constraint not_equal Pin Pout;
  1422. end;
  1423. icon bg bottom
  1424. figures
  1425. rectangle 592 96 656 144 color 0 fill 8454041;
  1426. text 'Link' 624 120 color 0 'Clear Sans' 16;
  1427. terminals
  1428. Hin 592 136 fixed;
  1429. Hout 656 136 fixed;
  1430. Pin 656 104 fixed;
  1431. Pout 592 104 fixed;
  1432. end;
  1433. implementation eq
  1434. parameters
  1435. real offset[3]= [0;0.025;0]; //coordinates of joint_1
  1436. variables
  1437. real Hab[4,4];
  1438. real AdHab[6,6];
  1439. equations
  1440. Hab = homogeneous(eye(3),offset);
  1441. AdHab = Adjoint(eye(3),offset);
  1442. Hout = Hin * Hab;
  1443. Pout.e = transpose(AdHab) * Pin.e;
  1444. Pin.f = AdHab * Pout.f;
  1445. implementation_end;
  1446. Link3 800 120
  1447. description '<Information>
  1448. <Description>
  1449. <Version>4.8</Version>
  1450. <LibraryPath>Bond Graph\MR\link-v3.emx</LibraryPath>
  1451. <IsMainModel>1</IsMainModel>
  1452. <KeepParameterValues>False</KeepParameterValues>
  1453. <TimeStamp>2020-7-19 15:22:34</TimeStamp>
  1454. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  1455. </Description>
  1456. </Information>';
  1457. type 'Submodel-Equation'
  1458. ports
  1459. signal in Hin [4,4];
  1460. signal out Hout [4,4];
  1461. power in Pin [6,1];
  1462. power out Pout [6,1];
  1463. restrictions
  1464. causality constraint not_equal Pin Pout;
  1465. end;
  1466. icon bg bottom
  1467. figures
  1468. rectangle 768 96 832 144 color 0 fill 8454041;
  1469. text 'Link' 800 120 color 0 'Clear Sans' 16;
  1470. terminals
  1471. Hin 768 136 fixed;
  1472. Hout 832 136 fixed;
  1473. Pin 832 104 fixed;
  1474. Pout 768 104 fixed;
  1475. end;
  1476. implementation eq
  1477. parameters
  1478. real offset[3]= [0;0.025;0]; //coordinates of joint_1
  1479. variables
  1480. real Hab[4,4];
  1481. real AdHab[6,6];
  1482. equations
  1483. Hab = homogeneous(eye(3),offset);
  1484. AdHab = Adjoint(eye(3),offset);
  1485. Hout = Hin * Hab;
  1486. Pout.e = transpose(AdHab) * Pin.e;
  1487. Pin.f = AdHab * Pout.f;
  1488. implementation_end;
  1489. motor_joint1 112 384
  1490. description '<Description>
  1491. <Version>4.8</Version>
  1492. <IsMainModel>1</IsMainModel>
  1493. </Description>';
  1494. type Submodel
  1495. ports
  1496. signal in input;
  1497. power out p2;
  1498. end;
  1499. implementation bg
  1500. submodels
  1501. Gain1 552 88
  1502. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1503. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  1504. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  1505. </Description>';
  1506. type Gain
  1507. ports
  1508. signal in input;
  1509. signal out output;
  1510. end;
  1511. icon bg bottom
  1512. figures
  1513. rectangle 536.1 72 567.9 104 color 0 fill 15132390;
  1514. text 'K' 552 88 color 16711680 16 bold;
  1515. end;
  1516. implementation eq
  1517. parameters
  1518. real K = 12.0; // gain
  1519. equations
  1520. output = K * input;
  1521. implementation_end;
  1522. GY 624 208
  1523. description '<Information>
  1524. <Description>
  1525. <Version>4.2</Version>
  1526. <IsMainModel>1</IsMainModel>
  1527. <KeepParameterValues>False</KeepParameterValues>
  1528. <LibraryPath>Bond Graph\GY.emx</LibraryPath>
  1529. <TimeStamp>2011-11-29 15:53:45</TimeStamp>
  1530. </Description>
  1531. </Information>';
  1532. type GY
  1533. ports
  1534. power in p1;
  1535. power out p2;
  1536. restrictions
  1537. causality constraint equal p1 p2;
  1538. end;
  1539. icon bg bottom
  1540. figures
  1541. text 'GY' 624 208 color 0 18 bold;
  1542. end;
  1543. implementation eq
  1544. parameters
  1545. real r = 0.127;
  1546. equations
  1547. p1.e = r * p2.f;
  1548. p2.e = r * p1.f;
  1549. implementation_end;
  1550. MSe 624 88
  1551. description '<Information>
  1552. <Description>
  1553. <Version>4.2</Version>
  1554. <IsMainModel>1</IsMainModel>
  1555. <KeepParameterValues>False</KeepParameterValues>
  1556. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  1557. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  1558. </Description>
  1559. </Information>';
  1560. type MSe
  1561. ports
  1562. power out p;
  1563. signal in effort;
  1564. restrictions
  1565. causality fixed out p;
  1566. end;
  1567. icon bg bottom
  1568. figures
  1569. text 'MSe' 624 88 color 0 18 bold;
  1570. end;
  1571. implementation eq
  1572. variables
  1573. real flow;
  1574. equations
  1575. p.e = effort;
  1576. flow = p.f;
  1577. implementation_end;
  1578. plug input 424 88;
  1579. plug p2 624 296;
  1580. OneJunction2 624 136
  1581. description '<Information>
  1582. <Description>
  1583. <Version>4.2</Version>
  1584. <IsMainModel>1</IsMainModel>
  1585. <KeepParameterValues>False</KeepParameterValues>
  1586. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  1587. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  1588. </Description>
  1589. </Information>';
  1590. knot OneJunction
  1591. ports
  1592. power knot duplicatable none p [1];
  1593. signal knot out flow [1];
  1594. restrictions
  1595. causality constraint one_out p;
  1596. end;
  1597. icon bg
  1598. figures
  1599. text '1' 624 136 color 0 18 bold;
  1600. end;
  1601. implementation eq
  1602. equations
  1603. sum (direct (p.e)) = 0;
  1604. equal (collect (p.f));
  1605. flow = first (p.f);
  1606. implementation_end;
  1607. R 680 136
  1608. description '<Information>
  1609. <Description>
  1610. <Version>4.2</Version>
  1611. <IsMainModel>1</IsMainModel>
  1612. <KeepParameterValues>False</KeepParameterValues>
  1613. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  1614. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  1615. </Description>
  1616. </Information>';
  1617. type R
  1618. ports
  1619. power in p;
  1620. end;
  1621. icon bg bottom
  1622. figures
  1623. text 'R' 680 136 color 0 18 bold;
  1624. end;
  1625. implementation eq
  1626. parameters
  1627. real r = 2;
  1628. equations
  1629. p.e = r * p.f;
  1630. implementation_end;
  1631. SignalLimiter2 488 88
  1632. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1633. <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
  1634. <TimeStamp>2007-9-26 12:47:40</TimeStamp>
  1635. </Description>';
  1636. type 'SignalLimiter-Limit'
  1637. ports
  1638. signal in input;
  1639. signal out output;
  1640. end;
  1641. icon bg bottom
  1642. figures
  1643. group
  1644. rectangle 472 72 504 104 color 0 fill 15132390;
  1645. line 487.9 76.5 487.9 101 color 0 fill 15132390;
  1646. line 475 88.2 500.7 88.2 color 0 fill 15132390;
  1647. spline 481.9 95.1 493.9 81.4 color 16711680 fill 15132390 width 2;
  1648. spline 493.3 82.2 501.9 81.8 color 16711680 fill 15132390 width 2;
  1649. spline 475 95.6 481.9 95.1 color 16711680 fill 15132390 width 2;
  1650. end;
  1651. end;
  1652. implementation eq
  1653. parameters
  1654. real maximum = 1;
  1655. real minimum = -1;
  1656. equations
  1657. output = limit (input, minimum, maximum);
  1658. implementation_end;
  1659. end;
  1660. connections
  1661. Gain1\output -> MSe\effort;
  1662. GY\p2 => p2;
  1663. input -> SignalLimiter2\input;
  1664. MSe\p => OneJunction2\p;
  1665. OneJunction2\p => GY\p1;
  1666. R\p <= OneJunction2\p;
  1667. SignalLimiter2\output -> Gain1\input;
  1668. end;
  1669. implementation_end;
  1670. motor_joint2 680 432
  1671. description '<Description>
  1672. <Version>4.8</Version>
  1673. <IsMainModel>1</IsMainModel>
  1674. </Description>';
  1675. type Submodel
  1676. ports
  1677. signal in input;
  1678. power out p2;
  1679. end;
  1680. implementation bg
  1681. submodels
  1682. Gain1 552 88
  1683. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1684. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  1685. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  1686. </Description>';
  1687. type Gain
  1688. ports
  1689. signal in input;
  1690. signal out output;
  1691. end;
  1692. icon bg bottom
  1693. figures
  1694. rectangle 536.1 72 567.9 104 color 0 fill 15132390;
  1695. text 'K' 552 88 color 16711680 16 bold;
  1696. end;
  1697. implementation eq
  1698. parameters
  1699. real K = 12.0; // gain
  1700. equations
  1701. output = K * input;
  1702. implementation_end;
  1703. GY 624 200
  1704. description '<Information>
  1705. <Description>
  1706. <Version>4.2</Version>
  1707. <IsMainModel>1</IsMainModel>
  1708. <KeepParameterValues>False</KeepParameterValues>
  1709. <LibraryPath>Bond Graph\GY.emx</LibraryPath>
  1710. <TimeStamp>2011-11-29 15:53:45</TimeStamp>
  1711. </Description>
  1712. </Information>';
  1713. type GY
  1714. ports
  1715. power in p1;
  1716. power out p2;
  1717. restrictions
  1718. causality constraint equal p1 p2;
  1719. end;
  1720. icon bg bottom
  1721. figures
  1722. text 'GY' 624 200 color 0 18 bold;
  1723. end;
  1724. implementation eq
  1725. parameters
  1726. real r = 0.127;
  1727. equations
  1728. p1.e = r * p2.f;
  1729. p2.e = r * p1.f;
  1730. implementation_end;
  1731. MSe 624 88
  1732. description '<Information>
  1733. <Description>
  1734. <Version>4.2</Version>
  1735. <IsMainModel>1</IsMainModel>
  1736. <KeepParameterValues>False</KeepParameterValues>
  1737. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  1738. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  1739. </Description>
  1740. </Information>';
  1741. type MSe
  1742. ports
  1743. power out p;
  1744. signal in effort;
  1745. restrictions
  1746. causality fixed out p;
  1747. end;
  1748. icon bg bottom
  1749. figures
  1750. text 'MSe' 624 88 color 0 18 bold;
  1751. end;
  1752. implementation eq
  1753. variables
  1754. real flow;
  1755. equations
  1756. p.e = effort;
  1757. flow = p.f;
  1758. implementation_end;
  1759. plug input 424 88;
  1760. plug p2 624 256;
  1761. OneJunction2 624 136
  1762. description '<Information>
  1763. <Description>
  1764. <Version>4.2</Version>
  1765. <IsMainModel>1</IsMainModel>
  1766. <KeepParameterValues>False</KeepParameterValues>
  1767. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  1768. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  1769. </Description>
  1770. </Information>';
  1771. knot OneJunction
  1772. ports
  1773. power knot duplicatable none p [1];
  1774. signal knot out flow [1];
  1775. restrictions
  1776. causality constraint one_out p;
  1777. end;
  1778. icon bg
  1779. figures
  1780. text '1' 624 136 color 0 18 bold;
  1781. end;
  1782. implementation eq
  1783. equations
  1784. sum (direct (p.e)) = 0;
  1785. equal (collect (p.f));
  1786. flow = first (p.f);
  1787. implementation_end;
  1788. R 664 136
  1789. description '<Information>
  1790. <Description>
  1791. <Version>4.2</Version>
  1792. <IsMainModel>1</IsMainModel>
  1793. <KeepParameterValues>False</KeepParameterValues>
  1794. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  1795. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  1796. </Description>
  1797. </Information>';
  1798. type R
  1799. ports
  1800. power in p;
  1801. end;
  1802. icon bg bottom
  1803. figures
  1804. text 'R' 664 136 color 0 18 bold;
  1805. end;
  1806. implementation eq
  1807. parameters
  1808. real r = 2;
  1809. equations
  1810. p.e = r * p.f;
  1811. implementation_end;
  1812. SignalLimiter2 488 88
  1813. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1814. <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
  1815. <TimeStamp>2007-9-26 12:47:40</TimeStamp>
  1816. </Description>';
  1817. type 'SignalLimiter-Limit'
  1818. ports
  1819. signal in input;
  1820. signal out output;
  1821. end;
  1822. icon bg bottom
  1823. figures
  1824. group
  1825. rectangle 472 72 504 104 color 0 fill 15132390;
  1826. line 487.9 76.5 487.9 101 color 0 fill 15132390;
  1827. line 475 88.2 500.7 88.2 color 0 fill 15132390;
  1828. spline 481.9 95.1 493.9 81.4 color 16711680 fill 15132390 width 2;
  1829. spline 493.3 82.2 501.9 81.8 color 16711680 fill 15132390 width 2;
  1830. spline 475 95.6 481.9 95.1 color 16711680 fill 15132390 width 2;
  1831. end;
  1832. end;
  1833. implementation eq
  1834. parameters
  1835. real maximum = 1;
  1836. real minimum = -1;
  1837. equations
  1838. output = limit (input, minimum, maximum);
  1839. implementation_end;
  1840. end;
  1841. connections
  1842. Gain1\output -> MSe\effort;
  1843. GY\p2 => p2;
  1844. input -> SignalLimiter2\input;
  1845. MSe\p => OneJunction2\p;
  1846. OneJunction2\p => GY\p1;
  1847. R\p <= OneJunction2\p;
  1848. SignalLimiter2\output -> Gain1\input;
  1849. end;
  1850. implementation_end;
  1851. Negate1 272 448
  1852. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1853. <LibraryPath>Signal\Block Diagram\Negate.emx</LibraryPath>
  1854. <TimeStamp>2007-9-26 12:14:11</TimeStamp>
  1855. </Description>';
  1856. type Negate
  1857. ports
  1858. signal in input;
  1859. signal out output;
  1860. end;
  1861. icon bg bottom
  1862. figures
  1863. rectangle 256 432 288 464 color 0 fill 15132390;
  1864. text '-1' 272 448 color 16711680 16 bold;
  1865. end;
  1866. implementation eq
  1867. equations
  1868. output = - input;
  1869. implementation_end;
  1870. Negate2 520 552
  1871. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1872. <LibraryPath>Signal\Block Diagram\Negate.emx</LibraryPath>
  1873. <TimeStamp>2007-9-26 12:14:11</TimeStamp>
  1874. </Description>';
  1875. type Negate
  1876. ports
  1877. signal in input;
  1878. signal out output;
  1879. end;
  1880. icon bg bottom
  1881. figures
  1882. rectangle 504 536 536 568 color 0 fill 15132390;
  1883. text '-1' 520 552 color 16711680 16 bold;
  1884. end;
  1885. implementation eq
  1886. equations
  1887. output = - input;
  1888. implementation_end;
  1889. new_joint1 376 280
  1890. description '<Description><Version>4.0</Version>
  1891. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  1892. <IsMainModel>1</IsMainModel>
  1893. <KeepParameterValues>False</KeepParameterValues>
  1894. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  1895. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  1896. </Description>';
  1897. type 'Submodel-Equation'
  1898. ports
  1899. signal in input [4,4];
  1900. end;
  1901. implementation eq
  1902. variables
  1903. real position[3];
  1904. real rotation[3];
  1905. real R[3,3];
  1906. equations
  1907. position = input[1:3,4];
  1908. rotation = dll('EulerAngles.dll','EulXYZsFromHMatrix',input);
  1909. //[input[3,2];input[1,3];input[2,1]];
  1910. R = input[1:3,1:3];implementation_end;
  1911. new_joint2 720 256
  1912. description '<Description><Version>4.0</Version>
  1913. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  1914. <IsMainModel>1</IsMainModel>
  1915. <KeepParameterValues>False</KeepParameterValues>
  1916. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  1917. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  1918. </Description>';
  1919. type 'Submodel-Equation'
  1920. ports
  1921. signal in input [4,4];
  1922. end;
  1923. implementation eq
  1924. variables
  1925. real position[3];
  1926. real rotation[3];
  1927. real R[3,3];
  1928. equations
  1929. // start typing here
  1930. position = input[1:3,4];
  1931. rotation = [input[3,2];input[1,3];input[2,1]];
  1932. R = input[1:3,1:3];implementation_end;
  1933. new_joint3 1016 184
  1934. description '<Description><Version>4.0</Version>
  1935. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  1936. <IsMainModel>1</IsMainModel>
  1937. <KeepParameterValues>False</KeepParameterValues>
  1938. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  1939. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  1940. </Description>';
  1941. type 'Submodel-Equation'
  1942. ports
  1943. signal in input [4,4];
  1944. end;
  1945. implementation eq
  1946. variables
  1947. real position[3];
  1948. real rotation[3];
  1949. real R[3,3];
  1950. equations
  1951. position = input[1:3,4];
  1952. rotation = [input[3,2];input[1,3];input[2,1]];
  1953. R = input[1:3,1:3];implementation_end;
  1954. OneJunction1 360 104
  1955. description '<Information>
  1956. <Description>
  1957. <Version>4.2</Version>
  1958. <IsMainModel>1</IsMainModel>
  1959. <KeepParameterValues>False</KeepParameterValues>
  1960. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  1961. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  1962. </Description>
  1963. </Information>';
  1964. knot OneJunction
  1965. ports
  1966. power knot duplicatable none p [6,1];
  1967. signal knot out flow [6,1];
  1968. restrictions
  1969. causality constraint one_out p;
  1970. end;
  1971. icon bg
  1972. figures
  1973. text '1' 360 104 color 0 18 bold;
  1974. end;
  1975. implementation eq
  1976. equations
  1977. sum (direct (p.e)) = 0;
  1978. equal (collect (p.f));
  1979. flow = first (p.f);
  1980. implementation_end;
  1981. OneJunction12 888 104
  1982. description '<Information>
  1983. <Description>
  1984. <Version>4.2</Version>
  1985. <IsMainModel>1</IsMainModel>
  1986. <KeepParameterValues>False</KeepParameterValues>
  1987. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  1988. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  1989. </Description>
  1990. </Information>';
  1991. knot OneJunction
  1992. ports
  1993. power knot duplicatable none p [6,1];
  1994. signal knot out flow [6,1];
  1995. restrictions
  1996. causality constraint one_out p;
  1997. end;
  1998. icon bg
  1999. figures
  2000. text '1' 888 104 color 0 18 bold;
  2001. end;
  2002. implementation eq
  2003. equations
  2004. sum (direct (p.e)) = 0;
  2005. equal (collect (p.f));
  2006. flow = first (p.f);
  2007. implementation_end;
  2008. OneJunction17 520 288
  2009. description '<Information>
  2010. <Description>
  2011. <Version>4.2</Version>
  2012. <IsMainModel>1</IsMainModel>
  2013. <KeepParameterValues>False</KeepParameterValues>
  2014. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2015. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2016. </Description>
  2017. </Information>';
  2018. knot OneJunction
  2019. ports
  2020. power knot duplicatable none p [1];
  2021. signal knot out flow [1];
  2022. restrictions
  2023. causality constraint one_out p;
  2024. end;
  2025. icon bg
  2026. figures
  2027. text '1' 520 288 color 0 18 bold;
  2028. end;
  2029. implementation eq
  2030. equations
  2031. sum (direct (p.e)) = 0;
  2032. equal (collect (p.f));
  2033. flow = first (p.f);
  2034. implementation_end;
  2035. OneJunction2 120 104
  2036. description '<Information>
  2037. <Description>
  2038. <Version>4.2</Version>
  2039. <IsMainModel>1</IsMainModel>
  2040. <KeepParameterValues>False</KeepParameterValues>
  2041. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2042. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2043. </Description>
  2044. </Information>';
  2045. knot OneJunction
  2046. ports
  2047. power knot duplicatable none p [6,1];
  2048. signal knot out flow [6,1];
  2049. restrictions
  2050. causality constraint one_out p;
  2051. end;
  2052. icon bg
  2053. figures
  2054. text '1' 120 104 color 0 18 bold;
  2055. end;
  2056. implementation eq
  2057. equations
  2058. sum (direct (p.e)) = 0;
  2059. equal (collect (p.f));
  2060. flow = first (p.f);
  2061. implementation_end;
  2062. OneJunction3 704 104
  2063. description '<Information>
  2064. <Description>
  2065. <Version>4.2</Version>
  2066. <IsMainModel>1</IsMainModel>
  2067. <KeepParameterValues>False</KeepParameterValues>
  2068. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2069. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2070. </Description>
  2071. </Information>';
  2072. knot OneJunction
  2073. ports
  2074. power knot duplicatable none p [6,1];
  2075. signal knot out flow [6,1];
  2076. restrictions
  2077. causality constraint one_out p;
  2078. end;
  2079. icon bg
  2080. figures
  2081. text '1' 704 104 color 0 18 bold;
  2082. end;
  2083. implementation eq
  2084. equations
  2085. sum (direct (p.e)) = 0;
  2086. equal (collect (p.f));
  2087. flow = first (p.f);
  2088. implementation_end;
  2089. OneJunction4 593 232
  2090. description '<Information>
  2091. <Description>
  2092. <Version>4.2</Version>
  2093. <IsMainModel>1</IsMainModel>
  2094. <KeepParameterValues>False</KeepParameterValues>
  2095. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2096. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2097. </Description>
  2098. </Information>';
  2099. knot OneJunction
  2100. ports
  2101. power knot duplicatable none p [2,1];
  2102. signal knot out flow [2,1];
  2103. restrictions
  2104. causality constraint one_out p;
  2105. end;
  2106. icon bg
  2107. figures
  2108. text '1' 593 232 color 0 18 bold;
  2109. end;
  2110. implementation eq
  2111. equations
  2112. sum (direct (p.e)) = 0;
  2113. equal (collect (p.f));
  2114. flow = first (p.f);
  2115. implementation_end;
  2116. OneJunction5 257 240
  2117. description '<Information>
  2118. <Description>
  2119. <Version>4.2</Version>
  2120. <IsMainModel>1</IsMainModel>
  2121. <KeepParameterValues>False</KeepParameterValues>
  2122. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2123. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2124. </Description>
  2125. </Information>';
  2126. knot OneJunction
  2127. ports
  2128. power knot duplicatable none p [2,1];
  2129. signal knot out flow [2,1];
  2130. restrictions
  2131. causality constraint one_out p;
  2132. end;
  2133. icon bg
  2134. figures
  2135. text '1' 257 240 color 0 18 bold;
  2136. end;
  2137. implementation eq
  2138. equations
  2139. sum (direct (p.e)) = 0;
  2140. equal (collect (p.f));
  2141. flow = first (p.f);
  2142. implementation_end;
  2143. OneJunction6 257 256
  2144. description '<Information>
  2145. <Description>
  2146. <Version>4.2</Version>
  2147. <IsMainModel>1</IsMainModel>
  2148. <KeepParameterValues>False</KeepParameterValues>
  2149. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2150. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2151. </Description>
  2152. </Information>';
  2153. knot OneJunction
  2154. ports
  2155. power knot duplicatable none p [3,1];
  2156. signal knot out flow [3,1];
  2157. restrictions
  2158. causality constraint one_out p;
  2159. end;
  2160. icon bg
  2161. figures
  2162. text '1' 257 256 color 0 18 bold;
  2163. end;
  2164. implementation eq
  2165. equations
  2166. sum (direct (p.e)) = 0;
  2167. equal (collect (p.f));
  2168. flow = first (p.f);
  2169. implementation_end;
  2170. OneJunction7 593 248
  2171. description '<Information>
  2172. <Description>
  2173. <Version>4.2</Version>
  2174. <IsMainModel>1</IsMainModel>
  2175. <KeepParameterValues>False</KeepParameterValues>
  2176. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2177. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2178. </Description>
  2179. </Information>';
  2180. knot OneJunction
  2181. ports
  2182. power knot duplicatable none p [3,1];
  2183. signal knot out flow [3,1];
  2184. restrictions
  2185. causality constraint one_out p;
  2186. end;
  2187. icon bg
  2188. figures
  2189. text '1' 593 248 color 0 18 bold;
  2190. end;
  2191. implementation eq
  2192. equations
  2193. sum (direct (p.e)) = 0;
  2194. equal (collect (p.f));
  2195. flow = first (p.f);
  2196. implementation_end;
  2197. PID1 584 432
  2198. description '<Description>
  2199. <Version>4.0</Version>
  2200. <IsMainModel>1</IsMainModel>
  2201. <KeepParameterValues>False</KeepParameterValues>
  2202. <LibraryPath>Signal\Control\PID Control\Continuous\PD.emx</LibraryPath>
  2203. <TimeStamp>2008-1-17 10:49:7</TimeStamp>
  2204. </Description>';
  2205. type PD
  2206. ports
  2207. signal in error;
  2208. signal out output;
  2209. end;
  2210. icon bg bottom
  2211. figures
  2212. rectangle 568 416 600 448 color 0 fill 15132390;
  2213. text 'PD' 584.5 432.1 color 16711680 18 bold;
  2214. end;
  2215. implementation eq
  2216. parameters
  2217. real kp = 2 {}; // Proportional gain
  2218. real tauD = 0.6 {s}; // Derivative time constant: tauD > 0
  2219. real beta = 0.2{}; // Tameness constant: 0 < beta << 1
  2220. variables
  2221. real state, rate;
  2222. equations
  2223. rate = (kp * error - output) / (beta * tauD);
  2224. state = int (rate);
  2225. output = state + kp * error / beta;
  2226. implementation_end;
  2227. PID2 200 384
  2228. description '<Description>
  2229. <Version>4.0</Version>
  2230. <IsMainModel>1</IsMainModel>
  2231. <KeepParameterValues>False</KeepParameterValues>
  2232. <LibraryPath>Signal\Control\PID Control\Continuous\PD.emx</LibraryPath>
  2233. <TimeStamp>2008-1-17 10:49:7</TimeStamp>
  2234. </Description>';
  2235. type PD
  2236. ports
  2237. signal in error;
  2238. signal out output;
  2239. end;
  2240. icon bg bottom
  2241. figures
  2242. rectangle 184 368 216 400 color 0 fill 15132390;
  2243. text 'PD' 200.5 384.1 color 16711680 18 bold;
  2244. end;
  2245. implementation eq
  2246. parameters
  2247. real kp = 2 {}; // Proportional gain
  2248. real tauD = 0.6 {s}; // Derivative time constant: tauD > 0
  2249. real beta = 0.2{}; // Tameness constant: 0 < beta << 1
  2250. variables
  2251. real state, rate;
  2252. equations
  2253. rate = (kp * error - output) / (beta * tauD);
  2254. state = int (rate);
  2255. output = state + kp * error / beta;
  2256. implementation_end;
  2257. PlusMinus4 272 384
  2258. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2259. <LibraryPath>Signal\Block Diagram\PlusMinus.emx</LibraryPath>
  2260. <TimeStamp>2007-9-27 10:15:13</TimeStamp>
  2261. </Description>';
  2262. knot PlusMinus
  2263. ports
  2264. signal knot duplicatable in plus [1];
  2265. signal knot duplicatable in minus [1];
  2266. signal knot out output [1];
  2267. end;
  2268. icon bg ellipse
  2269. figures
  2270. ellipse 264 376 280 392 color 0 fill 16777215;
  2271. end;
  2272. implementation eq
  2273. equations
  2274. output = sum (collect (plus)) - sum (collect (minus));
  2275. implementation_end;
  2276. PlusMinus5 520 432
  2277. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2278. <LibraryPath>Signal\Block Diagram\PlusMinus.emx</LibraryPath>
  2279. <TimeStamp>2007-9-27 10:15:13</TimeStamp>
  2280. </Description>';
  2281. knot PlusMinus
  2282. ports
  2283. signal knot duplicatable in plus [1];
  2284. signal knot duplicatable in minus [1];
  2285. signal knot out output [1];
  2286. end;
  2287. icon bg ellipse
  2288. figures
  2289. ellipse 512 424 528 440 color 0 fill 16777215;
  2290. end;
  2291. implementation eq
  2292. equations
  2293. output = sum (collect (plus)) - sum (collect (minus));
  2294. implementation_end;
  2295. PowerMux 192 214
  2296. specifications active 'rot_x'
  2297. specification 'rot_x'
  2298. description '<Information>
  2299. <Description>
  2300. <Version>4.8</Version>
  2301. <LibraryPath>Bond Graph\MR\PowerMux-Rotation.emx</LibraryPath>
  2302. <TimeStamp>2020-7-20 14:35:23</TimeStamp>
  2303. <IsMainModel>1</IsMainModel>
  2304. <KeepParameterValues>False</KeepParameterValues>
  2305. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2306. </Description>
  2307. </Information>';
  2308. type 'PowerMux-Rotation'
  2309. ports
  2310. power in input;
  2311. power out output [6,1];
  2312. power in input_rot2 [2,1];
  2313. power in input_pos3 [3,1];
  2314. restrictions
  2315. causality constraint not_equal input output;
  2316. causality constraint not_equal input_rot2 output;
  2317. causality constraint not_equal input_pos3 output;
  2318. end;
  2319. icon bg bottom
  2320. figures
  2321. line 168 216 216 216 color 0 width 2;
  2322. rectangle 168 208 216 220 color -1;
  2323. text '1' 186 211 color 8421504 8;
  2324. terminals
  2325. input 176 216 fixed;
  2326. output 192 216 fixed;
  2327. input_rot2 208 216 fixed;
  2328. input_pos3 192 216 fixed;
  2329. end;
  2330. implementation eq
  2331. equations
  2332. output.e[1] = input.e;
  2333. output.e[2:3] = input_rot2.e;
  2334. output.e[4:6] = input_pos3.e;
  2335. output.f[1] = input.f;
  2336. output.f[2:3] = input_rot2.f;
  2337. output.f[4:6] = input_pos3.f;implementation_end;
  2338. specification_end;
  2339. specification 'rot_y'
  2340. description '<Description>
  2341. <Version>4.1</Version>
  2342. <LibraryPath>Bond Graph\PowerMux.emx</LibraryPath>
  2343. <TimeStamp>2011-3-4 15:12:50</TimeStamp>
  2344. <IsMainModel>1</IsMainModel>
  2345. <KeepParameterValues>False</KeepParameterValues>
  2346. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2347. </Description>';
  2348. type PowerMux
  2349. ports
  2350. power in input;
  2351. power out output [6,1];
  2352. power in input_rot2 [2,1];
  2353. power in input_pos3 [3,1];
  2354. restrictions
  2355. causality constraint not_equal input output;
  2356. end;
  2357. icon bg bottom
  2358. figures
  2359. line 808 216 808 264 color 0 width 2;
  2360. rectangle 804 216 816 264 color -1;
  2361. text '1' 813 234 color 8421504 8;
  2362. terminals
  2363. input 808 224 fixed;
  2364. output 808 240 fixed;
  2365. input_rot2 808 256 fixed;
  2366. input_pos3 808 240 fixed;
  2367. end;
  2368. implementation eq
  2369. equations
  2370. output.e[1] = input_rot2.e[1];
  2371. output.e[2] = input.e;
  2372. output.e[3] = input_rot2.e[2];
  2373. output.e[4:6] = input_pos3.e;
  2374. output.f[1] = input_rot2.f[1];
  2375. output.f[2] = input.f;
  2376. output.f[3] = input_rot2.f[2];
  2377. output.f[4:6] = input_pos3.f;implementation_end;
  2378. specification_end;
  2379. specification 'rot_z'
  2380. description '<Description>
  2381. <Version>4.1</Version>
  2382. <LibraryPath>Bond Graph\PowerMux.emx</LibraryPath>
  2383. <TimeStamp>2011-3-4 15:12:50</TimeStamp>
  2384. <IsMainModel>1</IsMainModel>
  2385. <KeepParameterValues>False</KeepParameterValues>
  2386. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2387. </Description>';
  2388. type PowerMux
  2389. ports
  2390. power in input;
  2391. power out output [6,1];
  2392. power in input_rot2 [2,1];
  2393. power in input_pos3 [3,1];
  2394. restrictions
  2395. causality constraint not_equal input output;
  2396. end;
  2397. icon bg bottom
  2398. figures
  2399. line 808 216 808 264 color 0 width 2;
  2400. rectangle 804 216 816 264 color -1;
  2401. text '1' 813 234 color 8421504 8;
  2402. terminals
  2403. input 808 224 fixed;
  2404. output 808 240 fixed;
  2405. input_rot2 808 256 fixed;
  2406. input_pos3 808 240 fixed;
  2407. end;
  2408. implementation eq
  2409. equations
  2410. output.e[3] = input.e;
  2411. output.e[1:2] = input_rot2.e;
  2412. output.e[4:6] = input_pos3.e;
  2413. output.f[3] = input.f;
  2414. output.f[1:2] = input_rot2.f;
  2415. output.f[4:6] = input_pos3.f;implementation_end;
  2416. specification_end;
  2417. end;
  2418. PowerMux1 536 206
  2419. specifications active 'rot_x'
  2420. specification 'rot_x'
  2421. description '<Information>
  2422. <Description>
  2423. <Version>4.8</Version>
  2424. <LibraryPath>Bond Graph\MR\PowerMux-Rotation.emx</LibraryPath>
  2425. <TimeStamp>2020-7-20 14:35:23</TimeStamp>
  2426. <IsMainModel>1</IsMainModel>
  2427. <KeepParameterValues>False</KeepParameterValues>
  2428. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2429. </Description>
  2430. </Information>';
  2431. type 'PowerMux-Rotation'
  2432. ports
  2433. power in input;
  2434. power out output [6,1];
  2435. power in input_rot2 [2,1];
  2436. power in input_pos3 [3,1];
  2437. restrictions
  2438. causality constraint not_equal input output;
  2439. causality constraint not_equal input_rot2 output;
  2440. causality constraint not_equal input_pos3 output;
  2441. end;
  2442. icon bg bottom
  2443. figures
  2444. line 512 208 560 208 color 0 width 2;
  2445. rectangle 512 200 560 212 color -1;
  2446. text '1' 530 203 color 8421504 8;
  2447. terminals
  2448. input 520 208 fixed;
  2449. output 536 208 fixed;
  2450. input_rot2 552 208 fixed;
  2451. input_pos3 536 208 fixed;
  2452. end;
  2453. implementation eq
  2454. equations
  2455. output.e[1] = input.e;
  2456. output.e[2:3] = input_rot2.e;
  2457. output.e[4:6] = input_pos3.e;
  2458. output.f[1] = input.f;
  2459. output.f[2:3] = input_rot2.f;
  2460. output.f[4:6] = input_pos3.f;implementation_end;
  2461. specification_end;
  2462. specification 'rot_y'
  2463. description '<Description>
  2464. <Version>4.1</Version>
  2465. <LibraryPath>Bond Graph\PowerMux.emx</LibraryPath>
  2466. <TimeStamp>2011-3-4 15:12:50</TimeStamp>
  2467. <IsMainModel>1</IsMainModel>
  2468. <KeepParameterValues>False</KeepParameterValues>
  2469. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2470. </Description>';
  2471. type PowerMux
  2472. ports
  2473. power in input;
  2474. power out output [6,1];
  2475. power in input_rot2 [2,1];
  2476. power in input_pos3 [3,1];
  2477. restrictions
  2478. causality constraint not_equal input output;
  2479. end;
  2480. icon bg bottom
  2481. figures
  2482. line 808 216 808 264 color 0 width 2;
  2483. rectangle 804 216 816 264 color -1;
  2484. text '1' 813 234 color 8421504 8;
  2485. terminals
  2486. input 808 224 fixed;
  2487. output 808 240 fixed;
  2488. input_rot2 808 256 fixed;
  2489. input_pos3 808 240 fixed;
  2490. end;
  2491. implementation eq
  2492. equations
  2493. output.e[1] = input_rot2.e[1];
  2494. output.e[2] = input.e;
  2495. output.e[3] = input_rot2.e[2];
  2496. output.e[4:6] = input_pos3.e;
  2497. output.f[1] = input_rot2.f[1];
  2498. output.f[2] = input.f;
  2499. output.f[3] = input_rot2.f[2];
  2500. output.f[4:6] = input_pos3.f;implementation_end;
  2501. specification_end;
  2502. specification 'rot_z'
  2503. description '<Description>
  2504. <Version>4.1</Version>
  2505. <LibraryPath>Bond Graph\PowerMux.emx</LibraryPath>
  2506. <TimeStamp>2011-3-4 15:12:50</TimeStamp>
  2507. <IsMainModel>1</IsMainModel>
  2508. <KeepParameterValues>False</KeepParameterValues>
  2509. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2510. </Description>';
  2511. type PowerMux
  2512. ports
  2513. power in input;
  2514. power out output [6,1];
  2515. power in input_rot2 [2,1];
  2516. power in input_pos3 [3,1];
  2517. restrictions
  2518. causality constraint not_equal input output;
  2519. end;
  2520. icon bg bottom
  2521. figures
  2522. line 808 216 808 264 color 0 width 2;
  2523. rectangle 804 216 816 264 color -1;
  2524. text '1' 813 234 color 8421504 8;
  2525. terminals
  2526. input 808 224 fixed;
  2527. output 808 240 fixed;
  2528. input_rot2 808 256 fixed;
  2529. input_pos3 808 240 fixed;
  2530. end;
  2531. implementation eq
  2532. equations
  2533. output.e[3] = input.e;
  2534. output.e[1:2] = input_rot2.e;
  2535. output.e[4:6] = input_pos3.e;
  2536. output.f[3] = input.f;
  2537. output.f[1:2] = input_rot2.f;
  2538. output.f[4:6] = input_pos3.f;implementation_end;
  2539. specification_end;
  2540. end;
  2541. R1 472 288
  2542. description '<Information>
  2543. <Description>
  2544. <Version>4.2</Version>
  2545. <IsMainModel>1</IsMainModel>
  2546. <KeepParameterValues>False</KeepParameterValues>
  2547. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  2548. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  2549. </Description>
  2550. </Information>';
  2551. type R
  2552. ports
  2553. power in p;
  2554. end;
  2555. icon bg bottom
  2556. figures
  2557. text 'R' 472 288 color 0 18 bold;
  2558. end;
  2559. implementation eq
  2560. parameters
  2561. real r = 0.0001;
  2562. equations
  2563. p.e = r * p.f;
  2564. implementation_end;
  2565. R2 257 184
  2566. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2567. <LibraryPath>Bond Graph\2D\R-2.emx</LibraryPath>
  2568. <TimeStamp>2007-9-25 12:6:54</TimeStamp>
  2569. </Description>';
  2570. type 'R-2'
  2571. ports
  2572. power in p [2,1];
  2573. end;
  2574. icon bg bottom
  2575. figures
  2576. text 'R' 257 184 color 0 18 bold;
  2577. end;
  2578. implementation eq
  2579. parameters
  2580. real r[2,2] = [1.0, 0.0; 0.0, 1.0] {kN.m.s/rad};
  2581. equations
  2582. p.e = r * p.f;
  2583. implementation_end;
  2584. R3 257 312
  2585. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2586. <LibraryPath>Bond Graph\3D\R-3.emx</LibraryPath>
  2587. <TimeStamp>2007-9-25 12:11:54</TimeStamp>
  2588. </Description>';
  2589. type 'R-3'
  2590. ports
  2591. power in p [3,1];
  2592. end;
  2593. icon bg bottom
  2594. figures
  2595. text 'R' 257 312 color 0 18 bold;
  2596. end;
  2597. implementation eq
  2598. parameters
  2599. real r[3,3] = [1.0, 0.0, 0.0; 0.0, 1.0, 0.0; 0.0, 0.0, 1.0] {kN.s/m};
  2600. equations
  2601. p.e = r * p.f;
  2602. implementation_end;
  2603. R4 593 176
  2604. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2605. <LibraryPath>Bond Graph\2D\R-2.emx</LibraryPath>
  2606. <TimeStamp>2007-9-25 12:6:54</TimeStamp>
  2607. </Description>';
  2608. type 'R-2'
  2609. ports
  2610. power in p [2,1];
  2611. end;
  2612. icon bg bottom
  2613. figures
  2614. text 'R' 593 176 color 0 18 bold;
  2615. end;
  2616. implementation eq
  2617. parameters
  2618. real r[2,2] = [1.0, 0.0; 0.0, 1.0] {kN.m.s/rad};
  2619. equations
  2620. p.e = r * p.f;
  2621. implementation_end;
  2622. R5 593 304
  2623. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2624. <LibraryPath>Bond Graph\3D\R-3.emx</LibraryPath>
  2625. <TimeStamp>2007-9-25 12:11:54</TimeStamp>
  2626. </Description>';
  2627. type 'R-3'
  2628. ports
  2629. power in p [3,1];
  2630. end;
  2631. icon bg bottom
  2632. figures
  2633. text 'R' 593 304 color 0 18 bold;
  2634. end;
  2635. implementation eq
  2636. parameters
  2637. real r[3,3] = [1.0, 0.0, 0.0; 0.0, 1.0, 0.0; 0.0, 0.0, 1.0] {kN.s/m};
  2638. equations
  2639. p.e = r * p.f;
  2640. implementation_end;
  2641. R7 56 288
  2642. description '<Information>
  2643. <Description>
  2644. <Version>4.2</Version>
  2645. <IsMainModel>1</IsMainModel>
  2646. <KeepParameterValues>False</KeepParameterValues>
  2647. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  2648. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  2649. </Description>
  2650. </Information>';
  2651. type R
  2652. ports
  2653. power in p;
  2654. end;
  2655. icon bg bottom
  2656. figures
  2657. text 'R' 56 288 color 0 18 bold;
  2658. end;
  2659. implementation eq
  2660. parameters
  2661. real r = 0.0001;
  2662. equations
  2663. p.e = r * p.f;
  2664. implementation_end;
  2665. rectanglepath 104 552
  2666. description '<Information>
  2667. <Description>
  2668. <Version>4.8</Version>
  2669. <LibraryPath>setpoint\rectanglepath.emx</LibraryPath>
  2670. <IsMainModel>1</IsMainModel>
  2671. <KeepParameterValues>False</KeepParameterValues>
  2672. <TimeStamp>2020-7-10 12:30:38</TimeStamp>
  2673. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  2674. </Description>
  2675. </Information>';
  2676. type 'Submodel-Equation'
  2677. ports
  2678. signal out output [2,1];
  2679. end;
  2680. implementation eq
  2681. /*
  2682. This will generate coordinates for the box that has to be drawn
  2683. */
  2684. parameters
  2685. real w = 0.07{m} ;
  2686. real h = 0.05 {m};
  2687. real t = 0.5 {s};
  2688. real origin[2] = [0.01,0.03]{m};
  2689. variables
  2690. real v {m/s};
  2691. real t_w {s};
  2692. real t_h {s};
  2693. real period {s};
  2694. initialequations
  2695. v = (2*w + 2*h)/t;
  2696. t_w = w / v;
  2697. t_h = h / v;
  2698. equations
  2699. period = floor(time / t) * t;
  2700. output[1] = v*(ramp(period+t_h) - ramp(period + t_w+t_h) - ramp(period + t_w + t_h + t_h)) + origin[1];
  2701. output[2] = v*(ramp(period) - ramp(period + t_h) - ramp(period + t_h + t_w) + ramp(period + 2 * t_h + t_w))+ origin[2];
  2702. implementation_end;
  2703. rectanglepath1 272 656
  2704. description '<Information>
  2705. <Description>
  2706. <Version>4.8</Version>
  2707. <LibraryPath>setpoint\rectanglepath.emx</LibraryPath>
  2708. <IsMainModel>1</IsMainModel>
  2709. <KeepParameterValues>False</KeepParameterValues>
  2710. <TimeStamp>2020-7-10 12:30:38</TimeStamp>
  2711. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  2712. </Description>
  2713. </Information>';
  2714. type 'Submodel-Equation'
  2715. ports
  2716. signal out output [2,1];
  2717. end;
  2718. icon bg
  2719. figures
  2720. rectangle 216 640 328 672 color 0 fill 15132390;
  2721. text 'name' 272 656 color 0 'Clear Sans' 16;
  2722. end;
  2723. implementation eq
  2724. /*
  2725. This will generate coordinates for the box that has to be drawn
  2726. */
  2727. parameters
  2728. real w = 0.07{m} ;
  2729. real h = 0.05 {m};
  2730. real t = 0.5 {s};
  2731. real origin[2] = [0.01,0.03]{m};
  2732. variables
  2733. real v {m/s};
  2734. real t_w {s};
  2735. real t_h {s};
  2736. real period {s};
  2737. boolean y;
  2738. initialequations
  2739. v = (2*w + 2*h)/t;
  2740. t_w = w / v;
  2741. t_h = h / v;
  2742. code
  2743. y = frequencyevent (t,0);
  2744. period = time - floor(time / t) * t;
  2745. if period < t_w or time < 2 then
  2746. output = origin;
  2747. else
  2748. if period < t_w + t_h then
  2749. output = origin + [w;0];
  2750. else
  2751. if period < 2 * t_w + t_h then
  2752. output = origin + [w;h];
  2753. else
  2754. output = origin + [0;h];
  2755. end;
  2756. end;
  2757. end;
  2758. //output[1] = v*(ramp(period+t_h) - ramp(period + t_w+t_h) - ramp(period + t_w + t_h + t_h)) + origin[1];
  2759. //output[2] = v*(ramp(period) - ramp(period + t_h) - ramp(period + t_h + t_w) + ramp(period + 2 * t_h + t_w))+ origin[2];
  2760. implementation_end;
  2761. Sf2 64 104
  2762. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2763. <LibraryPath>Bond Graph\2D\Sf-2.emx</LibraryPath>
  2764. <TimeStamp>2007-9-25 12:7:5</TimeStamp>
  2765. </Description>';
  2766. type 'Sf-2'
  2767. ports
  2768. power out p [6,1];
  2769. restrictions
  2770. causality fixed in p;
  2771. end;
  2772. icon bg bottom
  2773. figures
  2774. text 'Sf' 64 104 color 0 18 bold;
  2775. end;
  2776. implementation eq
  2777. parameters
  2778. real flow[6,1] = 0;
  2779. variables
  2780. real effort [6];
  2781. equations
  2782. p.f = flow;
  2783. effort = p.e;
  2784. implementation_end;
  2785. Splitter1 392 136
  2786. description '<Description><Version>4.0</Version>
  2787. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  2788. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  2789. <IsMainModel>1</IsMainModel>
  2790. <KeepParameterValues>False</KeepParameterValues>
  2791. </Description>';
  2792. knot Splitter
  2793. ports
  2794. signal knot duplicatable out output [4,4];
  2795. signal knot in input [4,4];
  2796. end;
  2797. icon bg ellipse
  2798. figures
  2799. ellipse 388.8 132.8 395.2 139.2 color -1 fill 0;
  2800. ellipse 387.7 131.7 396.3 140.3 color -1;
  2801. terminals
  2802. input 392 136 fixed;
  2803. end;
  2804. implementation eq
  2805. equations
  2806. collect (output) = input;
  2807. implementation_end;
  2808. Splitter2 736 136
  2809. description '<Description><Version>4.0</Version>
  2810. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  2811. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  2812. <IsMainModel>1</IsMainModel>
  2813. <KeepParameterValues>False</KeepParameterValues>
  2814. </Description>';
  2815. knot Splitter
  2816. ports
  2817. signal knot duplicatable out output [4,4];
  2818. signal knot in input [4,4];
  2819. end;
  2820. icon bg ellipse
  2821. figures
  2822. ellipse 732.8 132.8 739.2 139.2 color -1 fill 0;
  2823. ellipse 731.7 131.7 740.3 140.3 color -1;
  2824. terminals
  2825. input 736 136 fixed;
  2826. end;
  2827. implementation eq
  2828. equations
  2829. collect (output) = input;
  2830. implementation_end;
  2831. Zero 112 136
  2832. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2833. <LibraryPath>Signal\Sources\Zero.emx</LibraryPath>
  2834. <TimeStamp>2007-9-27 15:54:36</TimeStamp>
  2835. </Description>
  2836. ';
  2837. type Zero
  2838. ports
  2839. signal out output [4,4];
  2840. end;
  2841. icon bg bottom
  2842. figures
  2843. rectangle 96.1 120 127.9 152 color 0 fill 15132390;
  2844. text '0' 112 136 color 16711680 18 bold;
  2845. end;
  2846. implementation eq
  2847. equations
  2848. output = eye(4);implementation_end;
  2849. ZeroJunction1 112 328
  2850. description '<Information>
  2851. <Description>
  2852. <Version>4.2</Version>
  2853. <IsMainModel>1</IsMainModel>
  2854. <KeepParameterValues>False</KeepParameterValues>
  2855. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2856. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2857. </Description>
  2858. </Information>';
  2859. knot OneJunction
  2860. ports
  2861. power knot duplicatable none p [1];
  2862. signal knot out flow [1];
  2863. restrictions
  2864. causality constraint one_out p;
  2865. end;
  2866. icon bg
  2867. figures
  2868. text '1' 112 328 color 0 18 bold;
  2869. end;
  2870. implementation eq
  2871. equations
  2872. sum (direct (p.e)) = 0;
  2873. equal (collect (p.f));
  2874. flow = first (p.f);
  2875. implementation_end;
  2876. ZeroJunction2 656 368
  2877. description '<Information>
  2878. <Description>
  2879. <Version>4.2</Version>
  2880. <IsMainModel>1</IsMainModel>
  2881. <KeepParameterValues>False</KeepParameterValues>
  2882. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2883. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2884. </Description>
  2885. </Information>';
  2886. knot OneJunction
  2887. ports
  2888. power knot duplicatable none p [1];
  2889. signal knot out flow [1];
  2890. restrictions
  2891. causality constraint one_out p;
  2892. end;
  2893. icon bg
  2894. figures
  2895. text '1' 656 368 color 0 18 bold;
  2896. end;
  2897. implementation eq
  2898. equations
  2899. sum (direct (p.e)) = 0;
  2900. equal (collect (p.f));
  2901. flow = first (p.f);
  2902. implementation_end;
  2903. ZeroJunction7 112 288
  2904. description '<Information>
  2905. <Description>
  2906. <Version>4.2</Version>
  2907. <IsMainModel>1</IsMainModel>
  2908. <KeepParameterValues>False</KeepParameterValues>
  2909. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2910. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  2911. </Description>
  2912. </Information>';
  2913. knot OneJunction
  2914. ports
  2915. power knot duplicatable none p [1];
  2916. signal knot out flow [1];
  2917. restrictions
  2918. causality constraint one_out p;
  2919. end;
  2920. icon bg
  2921. figures
  2922. text '1' 112 288 color 0 18 bold;
  2923. end;
  2924. implementation eq
  2925. equations
  2926. sum (direct (p.e)) = 0;
  2927. equal (collect (p.f));
  2928. flow = first (p.f);
  2929. implementation_end;
  2930. end;
  2931. connections
  2932. C1\p <= OneJunction7\p;
  2933. C2\p <= OneJunction6\p;
  2934. COM\Hout -> new_joint1\input;
  2935. COM1\Hout -> new_joint2\input;
  2936. COM2\Hin <- Link3\Hout 920 136;
  2937. COM2\Hout -> new_joint3\input;
  2938. COM2\p => OneJunction12\p;
  2939. Integrate\input <- ZeroJunction7\flow;
  2940. Integrate\output -> PlusMinus4\minus;
  2941. Integrate1\output -> PlusMinus5\minus;
  2942. inverse_kinematics1\angle1 -> Negate1\input;
  2943. inverse_kinematics1\angle2 -> Negate2\input;
  2944. Joint\Hout -> Link\Hin;
  2945. Joint\Pdiff <= PowerMux\output;
  2946. Joint\Pin <= Link\Pout;
  2947. Joint\Pout => OneJunction2\p;
  2948. Link\Pin <= OneJunction1\p;
  2949. Link1\Hout -> Joint1\Hin;
  2950. Link1\Pin <= Joint1\Pout;
  2951. Link1\Pout => OneJunction1\p;
  2952. Link2\Hin <- Joint1\Hout;
  2953. Link2\Hout -> Splitter2\input;
  2954. Link2\Pin <= OneJunction3\p;
  2955. Link2\Pout => Joint1\Pin;
  2956. Link3\Pin <= OneJunction12\p;
  2957. Link3\Pout => OneJunction3\p;
  2958. motor_joint1\p2 => ZeroJunction1\p;
  2959. motor_joint2\p2 => ZeroJunction2\p;
  2960. Negate1\output -> PlusMinus4\plus;
  2961. Negate2\output -> PlusMinus5\plus;
  2962. OneJunction1\p <= COM\p;
  2963. OneJunction17\flow -> Integrate1\input;
  2964. OneJunction3\p <= COM1\p;
  2965. OneJunction4\p => C4\p;
  2966. OneJunction4\p => R4\p;
  2967. OneJunction5\p => C3\p;
  2968. OneJunction5\p => R2\p;
  2969. OneJunction6\p => R3\p;
  2970. OneJunction7\p => R5\p;
  2971. PID1\error <- PlusMinus5\output;
  2972. PID1\output -> motor_joint2\input;
  2973. PID2\output -> motor_joint1\input;
  2974. PlusMinus4\output -> PID2\error;
  2975. PowerMux\input_pos3 <= OneJunction6\p;
  2976. PowerMux\input_rot2 <= OneJunction5\p;
  2977. PowerMux1\input <= OneJunction17\p;
  2978. PowerMux1\input_pos3 <= OneJunction7\p;
  2979. PowerMux1\input_rot2 <= OneJunction4\p;
  2980. PowerMux1\output => Joint1\Pdiff;
  2981. R1\p <= OneJunction17\p;
  2982. R7\p <= ZeroJunction7\p;
  2983. rectanglepath1\output -> inverse_kinematics1\input;
  2984. Sf2\p => OneJunction2\p;
  2985. Splitter1\input <- Link\Hout;
  2986. Splitter1\output -> COM\Hin;
  2987. Splitter1\output -> Link1\Hin;
  2988. Splitter2\output -> COM1\Hin;
  2989. Splitter2\output -> Link3\Hin;
  2990. Zero\output -> Joint\Hin;
  2991. ZeroJunction1\p => ZeroJunction7\p;
  2992. ZeroJunction2\p => OneJunction17\p;
  2993. ZeroJunction7\p => PowerMux\input;
  2994. end;
  2995. implementation_end;
  2996. ]]>
  2997. </Sidops>
  2998. </Model>
  2999. <Experiments>
  3000. <DefaultExperiment><![CDATA[Experiment 1]]>
  3001. </DefaultExperiment>
  3002. <Experiment>
  3003. <Name>Experiment 1</Name>
  3004. <CreatedBy></CreatedBy>
  3005. <Info></Info>
  3006. <ExpData>
  3007. <VersionNumber>4.8</VersionNumber>
  3008. <ModelProperties>
  3009. <ModelProperty section="GenSimProps" entry="ClearVarsAtStart" value="1"/>
  3010. </ModelProperties>
  3011. <Variables>
  3012. <Constants>
  3013. </Constants>
  3014. <Parameters>
  3015. </Parameters>
  3016. <Initials>
  3017. <Variable>
  3018. <Name>C1\state_initial</Name>
  3019. <Rows>3</Rows>
  3020. <Columns>1</Columns>
  3021. <Value>0 0 0</Value>
  3022. </Variable>
  3023. <Variable>
  3024. <Name>C2\state_initial</Name>
  3025. <Rows>3</Rows>
  3026. <Columns>1</Columns>
  3027. <Value>0 0 0</Value>
  3028. </Variable>
  3029. <Variable>
  3030. <Name>C3\state_initial</Name>
  3031. <Rows>2</Rows>
  3032. <Columns>1</Columns>
  3033. <Value>0 0</Value>
  3034. </Variable>
  3035. <Variable>
  3036. <Name>C4\state_initial</Name>
  3037. <Rows>2</Rows>
  3038. <Columns>1</Columns>
  3039. <Value>0 0</Value>
  3040. </Variable>
  3041. <Variable>
  3042. <Name>COM1\InertialTensor\state_initial</Name>
  3043. <Rows>6</Rows>
  3044. <Columns>1</Columns>
  3045. <Value>0 0 0 0 0 0</Value>
  3046. </Variable>
  3047. <Variable>
  3048. <Name>COM\InertialTensor\state_initial</Name>
  3049. <Rows>6</Rows>
  3050. <Columns>1</Columns>
  3051. <Value>0 0 0 0 0 0</Value>
  3052. </Variable>
  3053. <Variable>
  3054. <Name>Joint1\Hmatrix\p_initial</Name>
  3055. <Rows>3</Rows>
  3056. <Columns>1</Columns>
  3057. <Value>0 0 0</Value>
  3058. </Variable>
  3059. <Variable>
  3060. <Name>Joint\Hmatrix\p_initial</Name>
  3061. <Rows>3</Rows>
  3062. <Columns>1</Columns>
  3063. <Value>0 0 0</Value>
  3064. </Variable>
  3065. <Variable>
  3066. <Name>PID1\state_initial</Name>
  3067. <Value>0</Value>
  3068. </Variable>
  3069. <Variable>
  3070. <Name>PID2\state_initial</Name>
  3071. <Value>0</Value>
  3072. </Variable>
  3073. <Variable>
  3074. <Name>COM2\InertialTensor\p.e_initial</Name>
  3075. <Rows>6</Rows>
  3076. <Columns>1</Columns>
  3077. <Value>0 0 0 0 0 0</Value>
  3078. </Variable>
  3079. </Initials>
  3080. </Variables>
  3081. <PlotSpecs>
  3082. <VarNames>
  3083. <VarName>time</VarName>
  3084. <VarName>new_joint1\position[1]</VarName>
  3085. <VarName>new_joint1\position[2]</VarName>
  3086. <VarName>new_joint1\position[3]</VarName>
  3087. <VarName>new_joint1\R[1,3]</VarName>
  3088. <VarName>new_joint1\R[2,3]</VarName>
  3089. <VarName>new_joint1\R[3,3]</VarName>
  3090. <VarName>new_joint1\R[1,2]</VarName>
  3091. <VarName>new_joint1\R[2,2]</VarName>
  3092. <VarName>new_joint1\R[3,2]</VarName>
  3093. <VarName>new_joint2\R[1,3]</VarName>
  3094. <VarName>new_joint2\R[2,3]</VarName>
  3095. <VarName>new_joint2\R[3,3]</VarName>
  3096. <VarName>new_joint2\R[1,2]</VarName>
  3097. <VarName>new_joint2\R[2,2]</VarName>
  3098. <VarName>new_joint2\R[3,2]</VarName>
  3099. <VarName>new_joint2\position[1]</VarName>
  3100. <VarName>new_joint2\position[2]</VarName>
  3101. <VarName>new_joint2\position[3]</VarName>
  3102. <VarName>new_joint3\position[3]</VarName>
  3103. <VarName>new_joint3\position[2]</VarName>
  3104. <VarName>rectanglepath1\output[2]</VarName>
  3105. <VarName>rectanglepath1\output[1]</VarName>
  3106. <VarName>Integrate1\output</VarName>
  3107. <VarName>motor_joint2\SignalLimiter2\output</VarName>
  3108. <VarName>Submodel3\dimension[1]</VarName>
  3109. <VarName>Submodel3\dimension[2]</VarName>
  3110. <VarName>Submodel3\dimension[3]</VarName>
  3111. <VarName>Submodel4\dimension[1]</VarName>
  3112. <VarName>Submodel4\dimension[2]</VarName>
  3113. <VarName>Submodel4\dimension[3]</VarName>
  3114. <VarName>Step\output</VarName>
  3115. <VarName>motor_joint1\p2.e</VarName>
  3116. <VarName>motor_joint2\p2.e</VarName>
  3117. </VarNames>
  3118. <Plots>
  3119. <Plot>
  3120. <PlotType>D3DPlot</PlotType>
  3121. <BasePlot>
  3122. <PlotId>1</PlotId>
  3123. <UseWindowsBGColor>false</UseWindowsBGColor>
  3124. <BGColor>16777215</BGColor>
  3125. <PlotIsVisible>true</PlotIsVisible>
  3126. </BasePlot>
  3127. <PlotTitle>3D Animation</PlotTitle>
  3128. <RenderQuality>137</RenderQuality>
  3129. <ShowGrid>true</ShowGrid>
  3130. <ShowFPS>false</ShowFPS>
  3131. <BackgroundColor>4294967295</BackgroundColor>
  3132. <SceneBackgroundImage>Gradients\BlueWhite.png</SceneBackgroundImage>
  3133. <ApplyTextureBackground>true</ApplyTextureBackground>
  3134. <FrameScale>1.0</FrameScale>
  3135. <FrameThickness>1.0</FrameThickness>
  3136. <MainFrame>
  3137. <Frame>
  3138. <ScaleValue>
  3139. <X>
  3140. <Value>1</Value>
  3141. </X>
  3142. <Y>
  3143. <Value>1</Value>
  3144. </Y>
  3145. <Z>
  3146. <Value>1</Value>
  3147. </Z>
  3148. </ScaleValue>
  3149. <ShowReferenceFrame>true</ShowReferenceFrame>
  3150. <Name>Reference Frame</Name>
  3151. <Position>
  3152. </Position>
  3153. <Orientation>
  3154. <Angles>
  3155. </Angles>
  3156. <OrientationType>Bryant</OrientationType>
  3157. </Orientation>
  3158. <LockX>false</LockX>
  3159. <LockY>false</LockY>
  3160. <LockZ>false</LockZ>
  3161. <LockXPitch>false</LockXPitch>
  3162. <LockYYaw>false</LockYYaw>
  3163. <LockZRoll>false</LockZRoll>
  3164. <Childs>
  3165. <Frame>
  3166. <ScaleValue>
  3167. <X>
  3168. <Value>1</Value>
  3169. </X>
  3170. <Y>
  3171. <Value>1</Value>
  3172. </Y>
  3173. <Z>
  3174. <Value>1</Value>
  3175. </Z>
  3176. </ScaleValue>
  3177. <ShowReferenceFrame>false</ShowReferenceFrame>
  3178. <Name>Default Lights and Cameras</Name>
  3179. <Position>
  3180. </Position>
  3181. <Orientation>
  3182. <Angles>
  3183. </Angles>
  3184. <OrientationType>Bryant</OrientationType>
  3185. </Orientation>
  3186. <LockX>false</LockX>
  3187. <LockY>false</LockY>
  3188. <LockZ>false</LockZ>
  3189. <LockXPitch>false</LockXPitch>
  3190. <LockYYaw>false</LockYYaw>
  3191. <LockZRoll>false</LockZRoll>
  3192. <Childs>
  3193. <Light>
  3194. <ShowReferenceFrame>false</ShowReferenceFrame>
  3195. <Name>Ambient</Name>
  3196. <Position>
  3197. </Position>
  3198. <Orientation>
  3199. <ZAxis>
  3200. <Z>
  3201. <Value>1</Value>
  3202. </Z>
  3203. </ZAxis>
  3204. <YAxis>
  3205. <Y>
  3206. <Value>1</Value>
  3207. </Y>
  3208. </YAxis>
  3209. <OrientationType>Direct3D</OrientationType>
  3210. </Orientation>
  3211. <LockX>false</LockX>
  3212. <LockY>false</LockY>
  3213. <LockZ>false</LockZ>
  3214. <LockXPitch>false</LockXPitch>
  3215. <LockYYaw>false</LockYYaw>
  3216. <LockZRoll>false</LockZRoll>
  3217. <Childs>
  3218. </Childs>
  3219. <LightType>0</LightType>
  3220. <LightColor>
  3221. <Color>
  3222. <X>
  3223. <Value>0.3</Value>
  3224. </X>
  3225. <Y>
  3226. <Value>0.3</Value>
  3227. </Y>
  3228. <Z>
  3229. <Value>0.3</Value>
  3230. </Z>
  3231. </Color>
  3232. <Offset>
  3233. </Offset>
  3234. <Multipliers>
  3235. <X>
  3236. <Value>1</Value>
  3237. </X>
  3238. <Y>
  3239. <Value>1</Value>
  3240. </Y>
  3241. <Z>
  3242. <Value>1</Value>
  3243. </Z>
  3244. </Multipliers>
  3245. <Direct3DColorRange>true</Direct3DColorRange>
  3246. </LightColor>
  3247. <AmbientLight>
  3248. <Color>
  3249. <X>
  3250. <Value>0.3</Value>
  3251. </X>
  3252. <Y>
  3253. <Value>0.3</Value>
  3254. </Y>
  3255. <Z>
  3256. <Value>0.3</Value>
  3257. </Z>
  3258. </Color>
  3259. <Offset>
  3260. </Offset>
  3261. <Multipliers>
  3262. <X>
  3263. <Value>1</Value>
  3264. </X>
  3265. <Y>
  3266. <Value>1</Value>
  3267. </Y>
  3268. <Z>
  3269. <Value>1</Value>
  3270. </Z>
  3271. </Multipliers>
  3272. <Direct3DColorRange>true</Direct3DColorRange>
  3273. </AmbientLight>
  3274. <AmbientOn>true</AmbientOn>
  3275. <DiffuseOn>false</DiffuseOn>
  3276. <SpecularOn>false</SpecularOn>
  3277. </Light>
  3278. <Light>
  3279. <ShowReferenceFrame>false</ShowReferenceFrame>
  3280. <Name>Parallel</Name>
  3281. <Position>
  3282. <X>
  3283. <Value>-3</Value>
  3284. </X>
  3285. <Y>
  3286. <Value>5</Value>
  3287. </Y>
  3288. <Z>
  3289. <Value>3</Value>
  3290. </Z>
  3291. </Position>
  3292. <Orientation>
  3293. <ZAxis>
  3294. <X>
  3295. <Value>0.457495710997814</Value>
  3296. </X>
  3297. <Y>
  3298. <Value>-0.762492851663023</Value>
  3299. </Y>
  3300. <Z>
  3301. <Value>-0.457495710997814</Value>
  3302. </Z>
  3303. </ZAxis>
  3304. <YAxis>
  3305. <X>
  3306. <Value>0.235379601434674</Value>
  3307. </X>
  3308. <Y>
  3309. <Value>-0.392299335724456</Value>
  3310. </Y>
  3311. <Z>
  3312. <Value>0.889211827642101</Value>
  3313. </Z>
  3314. </YAxis>
  3315. <OrientationType>Direct3D</OrientationType>
  3316. </Orientation>
  3317. <LockX>false</LockX>
  3318. <LockY>false</LockY>
  3319. <LockZ>false</LockZ>
  3320. <LockXPitch>false</LockXPitch>
  3321. <LockYYaw>false</LockYYaw>
  3322. <LockZRoll>false</LockZRoll>
  3323. <Childs>
  3324. </Childs>
  3325. <LightType>3</LightType>
  3326. <LightColor>
  3327. <Color>
  3328. <X>
  3329. <Value>0.5</Value>
  3330. </X>
  3331. <Y>
  3332. <Value>0.5</Value>
  3333. </Y>
  3334. <Z>
  3335. <Value>0.5</Value>
  3336. </Z>
  3337. </Color>
  3338. <Offset>
  3339. </Offset>
  3340. <Multipliers>
  3341. <X>
  3342. <Value>1</Value>
  3343. </X>
  3344. <Y>
  3345. <Value>1</Value>
  3346. </Y>
  3347. <Z>
  3348. <Value>1</Value>
  3349. </Z>
  3350. </Multipliers>
  3351. <Direct3DColorRange>true</Direct3DColorRange>
  3352. </LightColor>
  3353. <Attenuation>
  3354. <Constant>
  3355. <Value>1.0</Value>
  3356. </Constant>
  3357. <Linear>
  3358. <Value>0.0</Value>
  3359. </Linear>
  3360. <Quadratic>
  3361. <Value>0.0</Value>
  3362. </Quadratic>
  3363. </Attenuation>
  3364. <DiffuseLight>
  3365. <Color>
  3366. <X>
  3367. <Value>0.5</Value>
  3368. </X>
  3369. <Y>
  3370. <Value>0.5</Value>
  3371. </Y>
  3372. <Z>
  3373. <Value>0.5</Value>
  3374. </Z>
  3375. </Color>
  3376. <Offset>
  3377. </Offset>
  3378. <Multipliers>
  3379. <X>
  3380. <Value>1</Value>
  3381. </X>
  3382. <Y>
  3383. <Value>1</Value>
  3384. </Y>
  3385. <Z>
  3386. <Value>1</Value>
  3387. </Z>
  3388. </Multipliers>
  3389. <Direct3DColorRange>true</Direct3DColorRange>
  3390. </DiffuseLight>
  3391. <SpecularLight>
  3392. <Color>
  3393. <X>
  3394. <Value>0.5</Value>
  3395. </X>
  3396. <Y>
  3397. <Value>0.5</Value>
  3398. </Y>
  3399. <Z>
  3400. <Value>0.5</Value>
  3401. </Z>
  3402. </Color>
  3403. <Offset>
  3404. </Offset>
  3405. <Multipliers>
  3406. <X>
  3407. <Value>1</Value>
  3408. </X>
  3409. <Y>
  3410. <Value>1</Value>
  3411. </Y>
  3412. <Z>
  3413. <Value>1</Value>
  3414. </Z>
  3415. </Multipliers>
  3416. <Direct3DColorRange>true</Direct3DColorRange>
  3417. </SpecularLight>
  3418. <AmbientOn>false</AmbientOn>
  3419. <DiffuseOn>true</DiffuseOn>
  3420. <SpecularOn>true</SpecularOn>
  3421. </Light>
  3422. <Light>
  3423. <ShowReferenceFrame>false</ShowReferenceFrame>
  3424. <Name>Spot Light 1</Name>
  3425. <Position>
  3426. <X>
  3427. <Value>-3</Value>
  3428. </X>
  3429. <Y>
  3430. <Value>-5</Value>
  3431. </Y>
  3432. <Z>
  3433. <Value>1</Value>
  3434. </Z>
  3435. </Position>
  3436. <Orientation>
  3437. <ZAxis>
  3438. <X>
  3439. <Value>0.50709255283711</Value>
  3440. </X>
  3441. <Y>
  3442. <Value>0.845154254728517</Value>
  3443. </Y>
  3444. <Z>
  3445. <Value>-0.169030850945703</Value>
  3446. </Z>
  3447. </ZAxis>
  3448. <YAxis>
  3449. <X>
  3450. <Value>0.0869656553478673</Value>
  3451. </X>
  3452. <Y>
  3453. <Value>0.144942758913112</Value>
  3454. </Y>
  3455. <Z>
  3456. <Value>0.985610760609162</Value>
  3457. </Z>
  3458. </YAxis>
  3459. <OrientationType>Direct3D</OrientationType>
  3460. </Orientation>
  3461. <LockX>false</LockX>
  3462. <LockY>false</LockY>
  3463. <LockZ>false</LockZ>
  3464. <LockXPitch>false</LockXPitch>
  3465. <LockYYaw>false</LockYYaw>
  3466. <LockZRoll>false</LockZRoll>
  3467. <Childs>
  3468. </Childs>
  3469. <LightType>2</LightType>
  3470. <LightColor>
  3471. <Color>
  3472. <X>
  3473. <Value>0.5</Value>
  3474. </X>
  3475. <Y>
  3476. <Value>0.5</Value>
  3477. </Y>
  3478. <Z>
  3479. <Value>0.5</Value>
  3480. </Z>
  3481. </Color>
  3482. <Offset>
  3483. </Offset>
  3484. <Multipliers>
  3485. <X>
  3486. <Value>1</Value>
  3487. </X>
  3488. <Y>
  3489. <Value>1</Value>
  3490. </Y>
  3491. <Z>
  3492. <Value>1</Value>
  3493. </Z>
  3494. </Multipliers>
  3495. <Direct3DColorRange>true</Direct3DColorRange>
  3496. </LightColor>
  3497. <Attenuation>
  3498. <Constant>
  3499. <Value>1.0</Value>
  3500. </Constant>
  3501. <Linear>
  3502. <Value>0.05</Value>
  3503. </Linear>
  3504. <Quadratic>
  3505. <Value>0.05</Value>
  3506. </Quadratic>
  3507. </Attenuation>
  3508. <Umbra>
  3509. <Value>1.0471975511965976</Value>
  3510. </Umbra>
  3511. <Penumbra>
  3512. <Value>1.0471975511965976</Value>
  3513. </Penumbra>
  3514. <SpotExponent>0.0</SpotExponent>
  3515. <DiffuseLight>
  3516. <Color>
  3517. <X>
  3518. <Value>0.5</Value>
  3519. </X>
  3520. <Y>
  3521. <Value>0.5</Value>
  3522. </Y>
  3523. <Z>
  3524. <Value>0.5</Value>
  3525. </Z>
  3526. </Color>
  3527. <Offset>
  3528. </Offset>
  3529. <Multipliers>
  3530. <X>
  3531. <Value>1</Value>
  3532. </X>
  3533. <Y>
  3534. <Value>1</Value>
  3535. </Y>
  3536. <Z>
  3537. <Value>1</Value>
  3538. </Z>
  3539. </Multipliers>
  3540. <Direct3DColorRange>true</Direct3DColorRange>
  3541. </DiffuseLight>
  3542. <SpecularLight>
  3543. <Color>
  3544. <X>
  3545. <Value>0.5</Value>
  3546. </X>
  3547. <Y>
  3548. <Value>0.5</Value>
  3549. </Y>
  3550. <Z>
  3551. <Value>0.5</Value>
  3552. </Z>
  3553. </Color>
  3554. <Offset>
  3555. </Offset>
  3556. <Multipliers>
  3557. <X>
  3558. <Value>1</Value>
  3559. </X>
  3560. <Y>
  3561. <Value>1</Value>
  3562. </Y>
  3563. <Z>
  3564. <Value>1</Value>
  3565. </Z>
  3566. </Multipliers>
  3567. <Direct3DColorRange>true</Direct3DColorRange>
  3568. </SpecularLight>
  3569. <AmbientOn>false</AmbientOn>
  3570. <DiffuseOn>true</DiffuseOn>
  3571. <SpecularOn>true</SpecularOn>
  3572. </Light>
  3573. <Light>
  3574. <ShowReferenceFrame>false</ShowReferenceFrame>
  3575. <Name>Spot Light 2</Name>
  3576. <Position>
  3577. <X>
  3578. <Value>2</Value>
  3579. </X>
  3580. <Y>
  3581. <Value>-3</Value>
  3582. </Y>
  3583. <Z>
  3584. <Value>-1</Value>
  3585. </Z>
  3586. </Position>
  3587. <Orientation>
  3588. <ZAxis>
  3589. <X>
  3590. <Value>-0.534522483824849</Value>
  3591. </X>
  3592. <Y>
  3593. <Value>0.801783725737273</Value>
  3594. </Y>
  3595. <Z>
  3596. <Value>0.267261241912424</Value>
  3597. </Z>
  3598. </ZAxis>
  3599. <YAxis>
  3600. <X>
  3601. <Value>0.14824986333222</Value>
  3602. </X>
  3603. <Y>
  3604. <Value>-0.22237479499833</Value>
  3605. </Y>
  3606. <Z>
  3607. <Value>0.963624111659432</Value>
  3608. </Z>
  3609. </YAxis>
  3610. <OrientationType>Direct3D</OrientationType>
  3611. </Orientation>
  3612. <LockX>false</LockX>
  3613. <LockY>false</LockY>
  3614. <LockZ>false</LockZ>
  3615. <LockXPitch>false</LockXPitch>
  3616. <LockYYaw>false</LockYYaw>
  3617. <LockZRoll>false</LockZRoll>
  3618. <Childs>
  3619. </Childs>
  3620. <LightType>2</LightType>
  3621. <LightColor>
  3622. <Color>
  3623. <X>
  3624. <Value>1</Value>
  3625. </X>
  3626. <Y>
  3627. <Value>1</Value>
  3628. </Y>
  3629. <Z>
  3630. <Value>1</Value>
  3631. </Z>
  3632. </Color>
  3633. <Offset>
  3634. </Offset>
  3635. <Multipliers>
  3636. <X>
  3637. <Value>1</Value>
  3638. </X>
  3639. <Y>
  3640. <Value>1</Value>
  3641. </Y>
  3642. <Z>
  3643. <Value>1</Value>
  3644. </Z>
  3645. </Multipliers>
  3646. <Direct3DColorRange>true</Direct3DColorRange>
  3647. </LightColor>
  3648. <Attenuation>
  3649. <Constant>
  3650. <Value>1.0</Value>
  3651. </Constant>
  3652. <Linear>
  3653. <Value>0.05</Value>
  3654. </Linear>
  3655. <Quadratic>
  3656. <Value>0.05</Value>
  3657. </Quadratic>
  3658. </Attenuation>
  3659. <Umbra>
  3660. <Value>1.5707963267948966</Value>
  3661. </Umbra>
  3662. <Penumbra>
  3663. <Value>1.5707963267948966</Value>
  3664. </Penumbra>
  3665. <SpotExponent>0.0</SpotExponent>
  3666. <DiffuseLight>
  3667. <Color>
  3668. <X>
  3669. <Value>1</Value>
  3670. </X>
  3671. <Y>
  3672. <Value>1</Value>
  3673. </Y>
  3674. <Z>
  3675. <Value>1</Value>
  3676. </Z>
  3677. </Color>
  3678. <Offset>
  3679. </Offset>
  3680. <Multipliers>
  3681. <X>
  3682. <Value>1</Value>
  3683. </X>
  3684. <Y>
  3685. <Value>1</Value>
  3686. </Y>
  3687. <Z>
  3688. <Value>1</Value>
  3689. </Z>
  3690. </Multipliers>
  3691. <Direct3DColorRange>true</Direct3DColorRange>
  3692. </DiffuseLight>
  3693. <SpecularLight>
  3694. <Color>
  3695. <X>
  3696. <Value>0.5</Value>
  3697. </X>
  3698. <Y>
  3699. <Value>0.5</Value>
  3700. </Y>
  3701. <Z>
  3702. <Value>0.5</Value>
  3703. </Z>
  3704. </Color>
  3705. <Offset>
  3706. </Offset>
  3707. <Multipliers>
  3708. <X>
  3709. <Value>1</Value>
  3710. </X>
  3711. <Y>
  3712. <Value>1</Value>
  3713. </Y>
  3714. <Z>
  3715. <Value>1</Value>
  3716. </Z>
  3717. </Multipliers>
  3718. <Direct3DColorRange>true</Direct3DColorRange>
  3719. </SpecularLight>
  3720. <AmbientOn>false</AmbientOn>
  3721. <DiffuseOn>true</DiffuseOn>
  3722. <SpecularOn>true</SpecularOn>
  3723. </Light>
  3724. <Camera>
  3725. <ShowReferenceFrame>false</ShowReferenceFrame>
  3726. <Name>Camera Looking at Origin</Name>
  3727. <Position>
  3728. <X>
  3729. <Value>3.04292494817788</Value>
  3730. </X>
  3731. <Y>
  3732. <Value>-0.198158420944799</Value>
  3733. </Y>
  3734. <Z>
  3735. <Value>2.86669745787175</Value>
  3736. </Z>
  3737. </Position>
  3738. <Orientation>
  3739. <ZAxis>
  3740. <X>
  3741. <Value>-0.727053165168863</Value>
  3742. </X>
  3743. <Y>
  3744. <Value>0.0473464543511176</Value>
  3745. </Y>
  3746. <Z>
  3747. <Value>-0.684946719298893</Value>
  3748. </Z>
  3749. </ZAxis>
  3750. <YAxis>
  3751. <X>
  3752. <Value>-0.6834989786941</Value>
  3753. </X>
  3754. <Y>
  3755. <Value>0.0445101606651552</Value>
  3756. </Y>
  3757. <Z>
  3758. <Value>0.728593159260835</Value>
  3759. </Z>
  3760. </YAxis>
  3761. <OrientationType>Direct3D</OrientationType>
  3762. </Orientation>
  3763. <LockX>false</LockX>
  3764. <LockY>false</LockY>
  3765. <LockZ>false</LockZ>
  3766. <LockXPitch>false</LockXPitch>
  3767. <LockYYaw>false</LockYYaw>
  3768. <LockZRoll>false</LockZRoll>
  3769. <Childs>
  3770. </Childs>
  3771. <FrontPlane>0.01</FrontPlane>
  3772. <BackPlane>100.0</BackPlane>
  3773. <AutoFrontBack>true</AutoFrontBack>
  3774. <Field>0.003926990816987242</Field>
  3775. <Fieldy>45.0</Fieldy>
  3776. <PlaneLeft>-10.0</PlaneLeft>
  3777. <PlaneRight>10.0</PlaneRight>
  3778. <PlaneTop>10.0</PlaneTop>
  3779. <PlaneBottom>-10.0</PlaneBottom>
  3780. <UseLookatPosition>true</UseLookatPosition>
  3781. <LookatPosition>
  3782. <X>
  3783. <Value>-9.99200722162641e-016</Value>
  3784. </X>
  3785. <Y>
  3786. <Value>1.76247905159244e-015</Value>
  3787. </Y>
  3788. <Z>
  3789. <Value>-3.05678199886544e-015</Value>
  3790. </Z>
  3791. </LookatPosition>
  3792. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  3793. <LookUpVector>
  3794. <Z>
  3795. <Value>1</Value>
  3796. </Z>
  3797. </LookUpVector>
  3798. <RightHand>true</RightHand>
  3799. <Perspective>true</Perspective>
  3800. <IsSelectedCamera>true</IsSelectedCamera>
  3801. </Camera>
  3802. <Camera>
  3803. <ShowReferenceFrame>false</ShowReferenceFrame>
  3804. <Name>Front(XY)-Camera</Name>
  3805. <Position>
  3806. <Z>
  3807. <Value>10</Value>
  3808. </Z>
  3809. </Position>
  3810. <Orientation>
  3811. <ZAxis>
  3812. <Z>
  3813. <Value>-1</Value>
  3814. </Z>
  3815. </ZAxis>
  3816. <YAxis>
  3817. <Y>
  3818. <Value>1</Value>
  3819. </Y>
  3820. </YAxis>
  3821. <OrientationType>Direct3D</OrientationType>
  3822. </Orientation>
  3823. <LockX>false</LockX>
  3824. <LockY>false</LockY>
  3825. <LockZ>false</LockZ>
  3826. <LockXPitch>false</LockXPitch>
  3827. <LockYYaw>false</LockYYaw>
  3828. <LockZRoll>false</LockZRoll>
  3829. <Childs>
  3830. </Childs>
  3831. <FrontPlane>0.01</FrontPlane>
  3832. <BackPlane>100.0</BackPlane>
  3833. <AutoFrontBack>true</AutoFrontBack>
  3834. <Field>9.999999999999998</Field>
  3835. <Fieldy>45.0</Fieldy>
  3836. <PlaneLeft>-9.999999999999998</PlaneLeft>
  3837. <PlaneRight>9.999999999999998</PlaneRight>
  3838. <PlaneTop>9.999999999999998</PlaneTop>
  3839. <PlaneBottom>-9.999999999999998</PlaneBottom>
  3840. <UseLookatPosition>true</UseLookatPosition>
  3841. <LookatPosition>
  3842. </LookatPosition>
  3843. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  3844. <LookUpVector>
  3845. <Y>
  3846. <Value>1</Value>
  3847. </Y>
  3848. </LookUpVector>
  3849. <RightHand>true</RightHand>
  3850. <Perspective>false</Perspective>
  3851. <IsSelectedCamera>false</IsSelectedCamera>
  3852. </Camera>
  3853. <Camera>
  3854. <ShowReferenceFrame>false</ShowReferenceFrame>
  3855. <Name>Side(YZ)-Camera</Name>
  3856. <Position>
  3857. <X>
  3858. <Value>10</Value>
  3859. </X>
  3860. </Position>
  3861. <Orientation>
  3862. <ZAxis>
  3863. <X>
  3864. <Value>-1</Value>
  3865. </X>
  3866. </ZAxis>
  3867. <YAxis>
  3868. <Z>
  3869. <Value>1</Value>
  3870. </Z>
  3871. </YAxis>
  3872. <OrientationType>Direct3D</OrientationType>
  3873. </Orientation>
  3874. <LockX>false</LockX>
  3875. <LockY>false</LockY>
  3876. <LockZ>false</LockZ>
  3877. <LockXPitch>false</LockXPitch>
  3878. <LockYYaw>false</LockYYaw>
  3879. <LockZRoll>false</LockZRoll>
  3880. <Childs>
  3881. </Childs>
  3882. <FrontPlane>0.01</FrontPlane>
  3883. <BackPlane>100.0</BackPlane>
  3884. <AutoFrontBack>true</AutoFrontBack>
  3885. <Field>9.999999999999998</Field>
  3886. <Fieldy>45.0</Fieldy>
  3887. <PlaneLeft>-9.999999999999998</PlaneLeft>
  3888. <PlaneRight>9.999999999999998</PlaneRight>
  3889. <PlaneTop>9.999999999999998</PlaneTop>
  3890. <PlaneBottom>-9.999999999999998</PlaneBottom>
  3891. <UseLookatPosition>true</UseLookatPosition>
  3892. <LookatPosition>
  3893. </LookatPosition>
  3894. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  3895. <LookUpVector>
  3896. <Z>
  3897. <Value>1</Value>
  3898. </Z>
  3899. </LookUpVector>
  3900. <RightHand>true</RightHand>
  3901. <Perspective>false</Perspective>
  3902. <IsSelectedCamera>false</IsSelectedCamera>
  3903. </Camera>
  3904. <Camera>
  3905. <ShowReferenceFrame>false</ShowReferenceFrame>
  3906. <Name>Top(XZ)-Camera</Name>
  3907. <Position>
  3908. <Y>
  3909. <Value>10</Value>
  3910. </Y>
  3911. </Position>
  3912. <Orientation>
  3913. <ZAxis>
  3914. <Y>
  3915. <Value>-1</Value>
  3916. </Y>
  3917. </ZAxis>
  3918. <YAxis>
  3919. <X>
  3920. <Value>1</Value>
  3921. </X>
  3922. </YAxis>
  3923. <OrientationType>Direct3D</OrientationType>
  3924. </Orientation>
  3925. <LockX>false</LockX>
  3926. <LockY>false</LockY>
  3927. <LockZ>false</LockZ>
  3928. <LockXPitch>false</LockXPitch>
  3929. <LockYYaw>false</LockYYaw>
  3930. <LockZRoll>false</LockZRoll>
  3931. <Childs>
  3932. </Childs>
  3933. <FrontPlane>0.01</FrontPlane>
  3934. <BackPlane>100.0</BackPlane>
  3935. <AutoFrontBack>true</AutoFrontBack>
  3936. <Field>9.999999999999998</Field>
  3937. <Fieldy>45.0</Fieldy>
  3938. <PlaneLeft>-9.999999999999998</PlaneLeft>
  3939. <PlaneRight>9.999999999999998</PlaneRight>
  3940. <PlaneTop>9.999999999999998</PlaneTop>
  3941. <PlaneBottom>-9.999999999999998</PlaneBottom>
  3942. <UseLookatPosition>true</UseLookatPosition>
  3943. <LookatPosition>
  3944. </LookatPosition>
  3945. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  3946. <LookUpVector>
  3947. <X>
  3948. <Value>1</Value>
  3949. </X>
  3950. </LookUpVector>
  3951. <RightHand>true</RightHand>
  3952. <Perspective>false</Perspective>
  3953. <IsSelectedCamera>false</IsSelectedCamera>
  3954. </Camera>
  3955. </Childs>
  3956. </Frame>
  3957. <Frame>
  3958. <ScaleValue>
  3959. <X>
  3960. <Value>1</Value>
  3961. </X>
  3962. <Y>
  3963. <Value>1</Value>
  3964. </Y>
  3965. <Z>
  3966. <Value>1</Value>
  3967. </Z>
  3968. </ScaleValue>
  3969. <ShowReferenceFrame>false</ShowReferenceFrame>
  3970. <Name>Scenery</Name>
  3971. <Position>
  3972. </Position>
  3973. <Orientation>
  3974. <Angles>
  3975. </Angles>
  3976. <OrientationType>Bryant</OrientationType>
  3977. </Orientation>
  3978. <LockX>false</LockX>
  3979. <LockY>false</LockY>
  3980. <LockZ>false</LockZ>
  3981. <LockXPitch>false</LockXPitch>
  3982. <LockYYaw>false</LockYYaw>
  3983. <LockZRoll>false</LockZRoll>
  3984. <Childs>
  3985. <Frame>
  3986. <ScaleValue>
  3987. <X>
  3988. <Value>10</Value>
  3989. </X>
  3990. <Y>
  3991. <Value>10</Value>
  3992. </Y>
  3993. <Z>
  3994. <Value>10</Value>
  3995. </Z>
  3996. </ScaleValue>
  3997. <ShowReferenceFrame>false</ShowReferenceFrame>
  3998. <Name>Reference Frame</Name>
  3999. <Position>
  4000. </Position>
  4001. <Orientation>
  4002. <Angles>
  4003. </Angles>
  4004. <OrientationType>Bryant</OrientationType>
  4005. </Orientation>
  4006. <LockX>false</LockX>
  4007. <LockY>false</LockY>
  4008. <LockZ>false</LockZ>
  4009. <LockXPitch>false</LockXPitch>
  4010. <LockYYaw>false</LockYYaw>
  4011. <LockZRoll>false</LockZRoll>
  4012. <Childs>
  4013. <Cube>
  4014. <Center>Center</Center>
  4015. <RibLength>1.0</RibLength>
  4016. <ShowInnerSide>true</ShowInnerSide>
  4017. <Accuracy>4</Accuracy>
  4018. <ScaleValue>
  4019. <X>
  4020. <VariableName>Submodel3\dimension[1]</VariableName>
  4021. <Value>0.005</Value>
  4022. </X>
  4023. <Y>
  4024. <VariableName>Submodel3\dimension[2]</VariableName>
  4025. <Value>0.065</Value>
  4026. </Y>
  4027. <Z>
  4028. <VariableName>Submodel3\dimension[3]</VariableName>
  4029. <Value>0.01</Value>
  4030. </Z>
  4031. </ScaleValue>
  4032. <OverrideColor>true</OverrideColor>
  4033. <MeshColor>
  4034. <X>
  4035. <Value>1</Value>
  4036. </X>
  4037. <Y>
  4038. <Value>1</Value>
  4039. </Y>
  4040. <Z>
  4041. <Value>1</Value>
  4042. </Z>
  4043. </MeshColor>
  4044. <Alpha>1.0</Alpha>
  4045. <MeshColorMultipliers>
  4046. <X>
  4047. <Value>1</Value>
  4048. </X>
  4049. <Y>
  4050. <Value>1</Value>
  4051. </Y>
  4052. <Z>
  4053. <Value>1</Value>
  4054. </Z>
  4055. </MeshColorMultipliers>
  4056. <MeshColorOffsets>
  4057. </MeshColorOffsets>
  4058. <Direct3DColorRange>true</Direct3DColorRange>
  4059. <SpecularColor>
  4060. <X>
  4061. <Value>0.498039215686275</Value>
  4062. </X>
  4063. <Y>
  4064. <Value>0.498039215686275</Value>
  4065. </Y>
  4066. <Z>
  4067. <Value>0.498039215686275</Value>
  4068. </Z>
  4069. </SpecularColor>
  4070. <EmissiveColor>
  4071. </EmissiveColor>
  4072. <ShininessPower>
  4073. <Value>14.298713684082</Value>
  4074. </ShininessPower>
  4075. <OverrideQuality>false</OverrideQuality>
  4076. <ShowReferenceFrame>false</ShowReferenceFrame>
  4077. <Name>Block</Name>
  4078. <Position>
  4079. <X>
  4080. <VariableName>new_joint1\position[1]</VariableName>
  4081. <Value>0.0</Value>
  4082. </X>
  4083. <Y>
  4084. <VariableName>new_joint1\position[2]</VariableName>
  4085. <Value>0.020422348089028722</Value>
  4086. </Y>
  4087. <Z>
  4088. <VariableName>new_joint1\position[3]</VariableName>
  4089. <Value>0.025208246380074812</Value>
  4090. </Z>
  4091. </Position>
  4092. <Orientation>
  4093. <ZAxis>
  4094. <X>
  4095. <VariableName>new_joint1\R[1,3]</VariableName>
  4096. <Value>0.0</Value>
  4097. </X>
  4098. <Y>
  4099. <VariableName>new_joint1\R[2,3]</VariableName>
  4100. <Value>-0.7784945324835847</Value>
  4101. </Y>
  4102. <Z>
  4103. <VariableName>new_joint1\R[3,3]</VariableName>
  4104. <Value>0.6276513864345118</Value>
  4105. </Z>
  4106. </ZAxis>
  4107. <YAxis>
  4108. <X>
  4109. <VariableName>new_joint1\R[1,2]</VariableName>
  4110. <Value>0.0</Value>
  4111. </X>
  4112. <Y>
  4113. <VariableName>new_joint1\R[2,2]</VariableName>
  4114. <Value>0.6276513864345118</Value>
  4115. </Y>
  4116. <Z>
  4117. <VariableName>new_joint1\R[3,2]</VariableName>
  4118. <Value>0.7784945324835847</Value>
  4119. </Z>
  4120. </YAxis>
  4121. <OrientationType>Matrix</OrientationType>
  4122. </Orientation>
  4123. <LockX>false</LockX>
  4124. <LockY>false</LockY>
  4125. <LockZ>false</LockZ>
  4126. <LockXPitch>false</LockXPitch>
  4127. <LockYYaw>false</LockYYaw>
  4128. <LockZRoll>false</LockZRoll>
  4129. <Childs>
  4130. </Childs>
  4131. </Cube>
  4132. <Cube>
  4133. <Center>Center</Center>
  4134. <RibLength>1.0</RibLength>
  4135. <ShowInnerSide>true</ShowInnerSide>
  4136. <Accuracy>4</Accuracy>
  4137. <ScaleValue>
  4138. <X>
  4139. <VariableName>Submodel4\dimension[1]</VariableName>
  4140. <Value>0.005</Value>
  4141. </X>
  4142. <Y>
  4143. <VariableName>Submodel4\dimension[2]</VariableName>
  4144. <Value>0.05</Value>
  4145. </Y>
  4146. <Z>
  4147. <VariableName>Submodel4\dimension[3]</VariableName>
  4148. <Value>0.01</Value>
  4149. </Z>
  4150. </ScaleValue>
  4151. <OverrideColor>true</OverrideColor>
  4152. <MeshColor>
  4153. <X>
  4154. <Value>1</Value>
  4155. </X>
  4156. <Y>
  4157. <Value>1</Value>
  4158. </Y>
  4159. <Z>
  4160. <Value>1</Value>
  4161. </Z>
  4162. </MeshColor>
  4163. <Alpha>1.0</Alpha>
  4164. <MeshColorMultipliers>
  4165. <X>
  4166. <Value>1</Value>
  4167. </X>
  4168. <Y>
  4169. <Value>1</Value>
  4170. </Y>
  4171. <Z>
  4172. <Value>1</Value>
  4173. </Z>
  4174. </MeshColorMultipliers>
  4175. <MeshColorOffsets>
  4176. </MeshColorOffsets>
  4177. <Direct3DColorRange>true</Direct3DColorRange>
  4178. <SpecularColor>
  4179. <X>
  4180. <Value>0.5</Value>
  4181. </X>
  4182. <Y>
  4183. <Value>0.5</Value>
  4184. </Y>
  4185. <Z>
  4186. <Value>0.5</Value>
  4187. </Z>
  4188. </SpecularColor>
  4189. <EmissiveColor>
  4190. </EmissiveColor>
  4191. <ShininessPower>
  4192. <Value>15</Value>
  4193. </ShininessPower>
  4194. <OverrideQuality>false</OverrideQuality>
  4195. <ShowReferenceFrame>false</ShowReferenceFrame>
  4196. <Name>Block</Name>
  4197. <Position>
  4198. <X>
  4199. <VariableName>new_joint2\position[1]</VariableName>
  4200. <Value>0.0</Value>
  4201. </X>
  4202. <Y>
  4203. <VariableName>new_joint2\position[2]</VariableName>
  4204. <Value>0.06513631397406291</Value>
  4205. </Y>
  4206. <Z>
  4207. <VariableName>new_joint2\position[3]</VariableName>
  4208. <Value>0.05636470076043039</Value>
  4209. </Z>
  4210. </Position>
  4211. <Orientation>
  4212. <ZAxis>
  4213. <X>
  4214. <VariableName>new_joint2\R[1,3]</VariableName>
  4215. <Value>0.0</Value>
  4216. </X>
  4217. <Y>
  4218. <VariableName>new_joint2\R[2,3]</VariableName>
  4219. <Value>-0.23653295603011926</Value>
  4220. </Y>
  4221. <Z>
  4222. <VariableName>new_joint2\R[3,3]</VariableName>
  4223. <Value>0.971623466529938</Value>
  4224. </Z>
  4225. </ZAxis>
  4226. <YAxis>
  4227. <X>
  4228. <VariableName>new_joint2\R[1,2]</VariableName>
  4229. <Value>0.0</Value>
  4230. </X>
  4231. <Y>
  4232. <VariableName>new_joint2\R[2,2]</VariableName>
  4233. <Value>0.971623466529938</Value>
  4234. </Y>
  4235. <Z>
  4236. <VariableName>new_joint2\R[3,2]</VariableName>
  4237. <Value>0.23653295603011926</Value>
  4238. </Z>
  4239. </YAxis>
  4240. <OrientationType>Matrix</OrientationType>
  4241. </Orientation>
  4242. <LockX>false</LockX>
  4243. <LockY>false</LockY>
  4244. <LockZ>false</LockZ>
  4245. <LockXPitch>false</LockXPitch>
  4246. <LockYYaw>false</LockYYaw>
  4247. <LockZRoll>false</LockZRoll>
  4248. <Childs>
  4249. </Childs>
  4250. </Cube>
  4251. </Childs>
  4252. </Frame>
  4253. </Childs>
  4254. </Frame>
  4255. </Childs>
  4256. </Frame>
  4257. </MainFrame>
  4258. </Plot>
  4259. <Plot>
  4260. <PlotType>GraphPlot</PlotType>
  4261. <BasePlot>
  4262. <PlotId>2</PlotId>
  4263. <UseWindowsBGColor>false</UseWindowsBGColor>
  4264. <BGColor>16777215</BGColor>
  4265. <PlotIsVisible>true</PlotIsVisible>
  4266. </BasePlot>
  4267. <Grid>
  4268. <DrawGrid>true</DrawGrid>
  4269. <GridColor>15780518</GridColor>
  4270. <GridBorderLineColor>12624260</GridBorderLineColor>
  4271. <GridZeroLineColor>0</GridZeroLineColor>
  4272. <XTicks>10</XTicks>
  4273. <YTicks>10</YTicks>
  4274. <ZTicks>10</ZTicks>
  4275. <Use3DLook>false</Use3DLook>
  4276. </Grid>
  4277. <PlotBGColor>16777215</PlotBGColor>
  4278. <ShowPlotTitle>true</ShowPlotTitle>
  4279. <TitlePosition>1</TitlePosition>
  4280. <PlotTitle>model(2)</PlotTitle>
  4281. <ShowXValues>true</ShowXValues>
  4282. <Fonts>
  4283. <TitleFont>
  4284. <Name>Arial</Name>
  4285. <Height>12</Height>
  4286. <PitchFamily>34</PitchFamily>
  4287. <Weight>400</Weight>
  4288. <Italic>0</Italic>
  4289. <UnderLine>0</UnderLine>
  4290. <StrikeOut>0</StrikeOut>
  4291. <Color>0</Color>
  4292. </TitleFont>
  4293. <LabelFont>
  4294. <Name>Arial</Name>
  4295. <Height>12</Height>
  4296. <PitchFamily>34</PitchFamily>
  4297. <Weight>400</Weight>
  4298. <Italic>0</Italic>
  4299. <UnderLine>0</UnderLine>
  4300. <StrikeOut>0</StrikeOut>
  4301. <Color>0</Color>
  4302. </LabelFont>
  4303. <ValuesFont>
  4304. <Name>Arial</Name>
  4305. <Height>10</Height>
  4306. <PitchFamily>34</PitchFamily>
  4307. <Weight>400</Weight>
  4308. <Italic>0</Italic>
  4309. <UnderLine>0</UnderLine>
  4310. <StrikeOut>0</StrikeOut>
  4311. <Color>0</Color>
  4312. </ValuesFont>
  4313. <LegendFont>
  4314. <Name>Arial</Name>
  4315. <Height>12</Height>
  4316. <PitchFamily>34</PitchFamily>
  4317. <Weight>400</Weight>
  4318. <Italic>0</Italic>
  4319. <UnderLine>0</UnderLine>
  4320. <StrikeOut>0</StrikeOut>
  4321. <Color>0</Color>
  4322. </LegendFont>
  4323. </Fonts>
  4324. <SharedXAxis>true</SharedXAxis>
  4325. <SharedYAxis>true</SharedYAxis>
  4326. <SharedZAxis>false</SharedZAxis>
  4327. <XAxes>
  4328. <Axis>
  4329. <Minimum>-0.04000000000000001</Minimum>
  4330. <Maximum>0.15999999999999998</Maximum>
  4331. <Linear>true</Linear>
  4332. <Scaling>1</Scaling>
  4333. <Label>position[2]</Label>
  4334. </Axis>
  4335. </XAxes>
  4336. <YAxes>
  4337. <Axis>
  4338. <Minimum>-0.06</Minimum>
  4339. <Maximum>0.14</Maximum>
  4340. <Linear>true</Linear>
  4341. <Scaling>1</Scaling>
  4342. <Label>Simulated path</Label>
  4343. </Axis>
  4344. <Axis>
  4345. <Minimum>-0.06</Minimum>
  4346. <Maximum>0.14</Maximum>
  4347. <Linear>true</Linear>
  4348. <Scaling>1</Scaling>
  4349. <Label>Given Path</Label>
  4350. </Axis>
  4351. </YAxes>
  4352. <ZAxes>
  4353. </ZAxes>
  4354. <Curves>
  4355. <Curve>
  4356. <LineColor>3355111</LineColor>
  4357. <LineStyle>1</LineStyle>
  4358. <TickColor>3355111</TickColor>
  4359. <TickStyle>0</TickStyle>
  4360. <CurveVisible>true</CurveVisible>
  4361. <PixelThresshold>1</PixelThresshold>
  4362. <LineThickness>1</LineThickness>
  4363. <LineOrder>1</LineOrder>
  4364. <ShowYValues>true</ShowYValues>
  4365. <XCurveData>
  4366. <ShowUnit>true</ShowUnit>
  4367. <VarName>new_joint3\position[2]</VarName>
  4368. </XCurveData>
  4369. <YCurveData>
  4370. <ShowUnit>true</ShowUnit>
  4371. <VarName>new_joint3\position[3]</VarName>
  4372. </YCurveData>
  4373. </Curve>
  4374. <Curve>
  4375. <LineColor>6076255</LineColor>
  4376. <LineStyle>1</LineStyle>
  4377. <TickColor>6076255</TickColor>
  4378. <TickStyle>0</TickStyle>
  4379. <CurveVisible>true</CurveVisible>
  4380. <PixelThresshold>1</PixelThresshold>
  4381. <LineThickness>1</LineThickness>
  4382. <LineOrder>1</LineOrder>
  4383. <ShowYValues>true</ShowYValues>
  4384. <XCurveData>
  4385. <ShowUnit>true</ShowUnit>
  4386. <VarName>rectanglepath1\output[1]</VarName>
  4387. </XCurveData>
  4388. <YCurveData>
  4389. <ShowUnit>true</ShowUnit>
  4390. <VarName>rectanglepath1\output[2]</VarName>
  4391. </YCurveData>
  4392. </Curve>
  4393. </Curves>
  4394. <Legenda>
  4395. <ShowLegenda>true</ShowLegenda>
  4396. <BorderPenColor>0</BorderPenColor>
  4397. <BackgroundColor>16777215</BackgroundColor>
  4398. </Legenda>
  4399. </Plot>
  4400. <Plot>
  4401. <PlotType>GraphPlot</PlotType>
  4402. <BasePlot>
  4403. <PlotId>3</PlotId>
  4404. <UseWindowsBGColor>false</UseWindowsBGColor>
  4405. <BGColor>16777215</BGColor>
  4406. <PlotIsVisible>true</PlotIsVisible>
  4407. </BasePlot>
  4408. <Grid>
  4409. <DrawGrid>true</DrawGrid>
  4410. <GridColor>15780518</GridColor>
  4411. <GridBorderLineColor>12624260</GridBorderLineColor>
  4412. <GridZeroLineColor>0</GridZeroLineColor>
  4413. <XTicks>10</XTicks>
  4414. <YTicks>10</YTicks>
  4415. <ZTicks>10</ZTicks>
  4416. <Use3DLook>false</Use3DLook>
  4417. </Grid>
  4418. <PlotBGColor>16777215</PlotBGColor>
  4419. <ShowPlotTitle>true</ShowPlotTitle>
  4420. <TitlePosition>1</TitlePosition>
  4421. <PlotTitle>Plot</PlotTitle>
  4422. <ShowXValues>true</ShowXValues>
  4423. <Fonts>
  4424. <TitleFont>
  4425. <Name>Arial</Name>
  4426. <Height>12</Height>
  4427. <PitchFamily>34</PitchFamily>
  4428. <Weight>400</Weight>
  4429. <Italic>0</Italic>
  4430. <UnderLine>0</UnderLine>
  4431. <StrikeOut>0</StrikeOut>
  4432. <Color>0</Color>
  4433. </TitleFont>
  4434. <LabelFont>
  4435. <Name>Arial</Name>
  4436. <Height>12</Height>
  4437. <PitchFamily>34</PitchFamily>
  4438. <Weight>400</Weight>
  4439. <Italic>0</Italic>
  4440. <UnderLine>0</UnderLine>
  4441. <StrikeOut>0</StrikeOut>
  4442. <Color>0</Color>
  4443. </LabelFont>
  4444. <ValuesFont>
  4445. <Name>Arial</Name>
  4446. <Height>10</Height>
  4447. <PitchFamily>34</PitchFamily>
  4448. <Weight>400</Weight>
  4449. <Italic>0</Italic>
  4450. <UnderLine>0</UnderLine>
  4451. <StrikeOut>0</StrikeOut>
  4452. <Color>0</Color>
  4453. </ValuesFont>
  4454. <LegendFont>
  4455. <Name>Arial</Name>
  4456. <Height>12</Height>
  4457. <PitchFamily>34</PitchFamily>
  4458. <Weight>400</Weight>
  4459. <Italic>0</Italic>
  4460. <UnderLine>0</UnderLine>
  4461. <StrikeOut>0</StrikeOut>
  4462. <Color>0</Color>
  4463. </LegendFont>
  4464. </Fonts>
  4465. <SharedXAxis>true</SharedXAxis>
  4466. <SharedYAxis>true</SharedYAxis>
  4467. <SharedZAxis>false</SharedZAxis>
  4468. <XAxes>
  4469. <Axis>
  4470. <Minimum>0.0</Minimum>
  4471. <Maximum>3.0</Maximum>
  4472. <Linear>true</Linear>
  4473. <Scaling>3</Scaling>
  4474. <Label>time</Label>
  4475. </Axis>
  4476. </XAxes>
  4477. <YAxes>
  4478. <Axis>
  4479. <Minimum>-2.5</Minimum>
  4480. <Maximum>2.5</Maximum>
  4481. <Linear>true</Linear>
  4482. <Scaling>1</Scaling>
  4483. <Label>Joint 1 Torque</Label>
  4484. </Axis>
  4485. <Axis>
  4486. <Minimum>0.0</Minimum>
  4487. <Maximum>5.71937518881079</Maximum>
  4488. <Linear>true</Linear>
  4489. <Scaling>1</Scaling>
  4490. <Label>Joint 2 Torque</Label>
  4491. </Axis>
  4492. </YAxes>
  4493. <ZAxes>
  4494. </ZAxes>
  4495. <Curves>
  4496. <Curve>
  4497. <LineColor>3355111</LineColor>
  4498. <LineStyle>1</LineStyle>
  4499. <TickColor>3355111</TickColor>
  4500. <TickStyle>0</TickStyle>
  4501. <CurveVisible>true</CurveVisible>
  4502. <PixelThresshold>1</PixelThresshold>
  4503. <LineThickness>1</LineThickness>
  4504. <LineOrder>1</LineOrder>
  4505. <ShowYValues>true</ShowYValues>
  4506. <XCurveData>
  4507. <ShowUnit>true</ShowUnit>
  4508. <VarName>time</VarName>
  4509. </XCurveData>
  4510. <YCurveData>
  4511. <ShowUnit>true</ShowUnit>
  4512. <VarName>motor_joint1\p2.e</VarName>
  4513. </YCurveData>
  4514. </Curve>
  4515. <Curve>
  4516. <LineColor>6076255</LineColor>
  4517. <LineStyle>1</LineStyle>
  4518. <TickColor>6076255</TickColor>
  4519. <TickStyle>0</TickStyle>
  4520. <CurveVisible>true</CurveVisible>
  4521. <PixelThresshold>1</PixelThresshold>
  4522. <LineThickness>1</LineThickness>
  4523. <LineOrder>1</LineOrder>
  4524. <ShowYValues>true</ShowYValues>
  4525. <XCurveData>
  4526. <ShowUnit>true</ShowUnit>
  4527. <VarName>time</VarName>
  4528. </XCurveData>
  4529. <YCurveData>
  4530. <ShowUnit>true</ShowUnit>
  4531. <VarName>motor_joint2\p2.e</VarName>
  4532. </YCurveData>
  4533. </Curve>
  4534. </Curves>
  4535. <Legenda>
  4536. <ShowLegenda>true</ShowLegenda>
  4537. <BorderPenColor>0</BorderPenColor>
  4538. <BackgroundColor>16777215</BackgroundColor>
  4539. </Legenda>
  4540. </Plot>
  4541. <Plot>
  4542. <PlotType>GraphPlot</PlotType>
  4543. <BasePlot>
  4544. <PlotId>4</PlotId>
  4545. <UseWindowsBGColor>false</UseWindowsBGColor>
  4546. <BGColor>16777215</BGColor>
  4547. <PlotIsVisible>true</PlotIsVisible>
  4548. </BasePlot>
  4549. <Grid>
  4550. <DrawGrid>true</DrawGrid>
  4551. <GridColor>15780518</GridColor>
  4552. <GridBorderLineColor>12624260</GridBorderLineColor>
  4553. <GridZeroLineColor>0</GridZeroLineColor>
  4554. <XTicks>10</XTicks>
  4555. <YTicks>10</YTicks>
  4556. <ZTicks>10</ZTicks>
  4557. <Use3DLook>false</Use3DLook>
  4558. </Grid>
  4559. <PlotBGColor>16777215</PlotBGColor>
  4560. <ShowPlotTitle>true</ShowPlotTitle>
  4561. <TitlePosition>1</TitlePosition>
  4562. <PlotTitle>model</PlotTitle>
  4563. <ShowXValues>true</ShowXValues>
  4564. <Fonts>
  4565. <TitleFont>
  4566. <Name>Arial</Name>
  4567. <Height>12</Height>
  4568. <PitchFamily>34</PitchFamily>
  4569. <Weight>400</Weight>
  4570. <Italic>0</Italic>
  4571. <UnderLine>0</UnderLine>
  4572. <StrikeOut>0</StrikeOut>
  4573. <Color>0</Color>
  4574. </TitleFont>
  4575. <LabelFont>
  4576. <Name>Arial</Name>
  4577. <Height>12</Height>
  4578. <PitchFamily>34</PitchFamily>
  4579. <Weight>400</Weight>
  4580. <Italic>0</Italic>
  4581. <UnderLine>0</UnderLine>
  4582. <StrikeOut>0</StrikeOut>
  4583. <Color>0</Color>
  4584. </LabelFont>
  4585. <ValuesFont>
  4586. <Name>Arial</Name>
  4587. <Height>10</Height>
  4588. <PitchFamily>34</PitchFamily>
  4589. <Weight>400</Weight>
  4590. <Italic>0</Italic>
  4591. <UnderLine>0</UnderLine>
  4592. <StrikeOut>0</StrikeOut>
  4593. <Color>0</Color>
  4594. </ValuesFont>
  4595. <LegendFont>
  4596. <Name>Arial</Name>
  4597. <Height>12</Height>
  4598. <PitchFamily>34</PitchFamily>
  4599. <Weight>400</Weight>
  4600. <Italic>0</Italic>
  4601. <UnderLine>0</UnderLine>
  4602. <StrikeOut>0</StrikeOut>
  4603. <Color>0</Color>
  4604. </LegendFont>
  4605. </Fonts>
  4606. <SharedXAxis>true</SharedXAxis>
  4607. <SharedYAxis>true</SharedYAxis>
  4608. <SharedZAxis>false</SharedZAxis>
  4609. <XAxes>
  4610. <Axis>
  4611. <Minimum>0.8</Minimum>
  4612. <Maximum>1.5</Maximum>
  4613. <Linear>true</Linear>
  4614. <Scaling>0</Scaling>
  4615. <Label>time</Label>
  4616. </Axis>
  4617. </XAxes>
  4618. <YAxes>
  4619. <Axis>
  4620. <Minimum>-2.5</Minimum>
  4621. <Maximum>2.5</Maximum>
  4622. <Linear>true</Linear>
  4623. <Scaling>1</Scaling>
  4624. <Label>output</Label>
  4625. </Axis>
  4626. <Axis>
  4627. <Minimum>-2.5</Minimum>
  4628. <Maximum>2.5</Maximum>
  4629. <Linear>true</Linear>
  4630. <Scaling>1</Scaling>
  4631. <Label>output</Label>
  4632. </Axis>
  4633. <Axis>
  4634. <Minimum>-2.5</Minimum>
  4635. <Maximum>2.5</Maximum>
  4636. <Linear>true</Linear>
  4637. <Scaling>1</Scaling>
  4638. <Label>output</Label>
  4639. </Axis>
  4640. </YAxes>
  4641. <ZAxes>
  4642. </ZAxes>
  4643. <Curves>
  4644. <Curve>
  4645. <LineColor>3355111</LineColor>
  4646. <LineStyle>1</LineStyle>
  4647. <TickColor>3355111</TickColor>
  4648. <TickStyle>0</TickStyle>
  4649. <CurveVisible>true</CurveVisible>
  4650. <PixelThresshold>1</PixelThresshold>
  4651. <LineThickness>1</LineThickness>
  4652. <LineOrder>1</LineOrder>
  4653. <ShowYValues>true</ShowYValues>
  4654. <XCurveData>
  4655. <ShowUnit>true</ShowUnit>
  4656. <VarName>time</VarName>
  4657. </XCurveData>
  4658. <YCurveData>
  4659. <ShowUnit>true</ShowUnit>
  4660. <VarName>Step\output</VarName>
  4661. </YCurveData>
  4662. </Curve>
  4663. <Curve>
  4664. <LineColor>6076255</LineColor>
  4665. <LineStyle>1</LineStyle>
  4666. <TickColor>6076255</TickColor>
  4667. <TickStyle>0</TickStyle>
  4668. <CurveVisible>true</CurveVisible>
  4669. <PixelThresshold>1</PixelThresshold>
  4670. <LineThickness>1</LineThickness>
  4671. <LineOrder>1</LineOrder>
  4672. <ShowYValues>true</ShowYValues>
  4673. <XCurveData>
  4674. <ShowUnit>true</ShowUnit>
  4675. <VarName>time</VarName>
  4676. </XCurveData>
  4677. <YCurveData>
  4678. <ShowUnit>true</ShowUnit>
  4679. <VarName>Integrate1\output</VarName>
  4680. <MulOffsetMValue>-1.0</MulOffsetMValue>
  4681. </YCurveData>
  4682. </Curve>
  4683. <Curve>
  4684. <LineColor>12553035</LineColor>
  4685. <LineStyle>1</LineStyle>
  4686. <TickColor>12553035</TickColor>
  4687. <TickStyle>0</TickStyle>
  4688. <CurveVisible>true</CurveVisible>
  4689. <PixelThresshold>1</PixelThresshold>
  4690. <LineThickness>1</LineThickness>
  4691. <LineOrder>1</LineOrder>
  4692. <ShowYValues>true</ShowYValues>
  4693. <XCurveData>
  4694. <ShowUnit>true</ShowUnit>
  4695. <VarName>time</VarName>
  4696. </XCurveData>
  4697. <YCurveData>
  4698. <ShowUnit>true</ShowUnit>
  4699. <VarName>motor_joint2\SignalLimiter2\output</VarName>
  4700. </YCurveData>
  4701. </Curve>
  4702. </Curves>
  4703. <Legenda>
  4704. <ShowLegenda>true</ShowLegenda>
  4705. <Position>
  4706. <X>0.9365808823529411</X>
  4707. <Y>0.0811764705882353</Y>
  4708. </Position>
  4709. <BorderPenColor>0</BorderPenColor>
  4710. <BackgroundColor>16777215</BackgroundColor>
  4711. </Legenda>
  4712. </Plot>
  4713. </Plots>
  4714. <PlotPanels>
  4715. <PlotPanel>
  4716. <PlotPanelId>1</PlotPanelId>
  4717. <PlotPanelVisible>true</PlotPanelVisible>
  4718. <Name>Window 1</Name>
  4719. <Tiling>0</Tiling>
  4720. <PlotIds>
  4721. <PlotId>2</PlotId>
  4722. <PlotId>4</PlotId>
  4723. </PlotIds>
  4724. <ToggleState>Base</ToggleState>
  4725. </PlotPanel>
  4726. <PlotPanel>
  4727. <PlotPanelId>2</PlotPanelId>
  4728. <PlotPanelVisible>true</PlotPanelVisible>
  4729. <Name>Window 2</Name>
  4730. <Tiling>0</Tiling>
  4731. <PlotIds>
  4732. <PlotId>1</PlotId>
  4733. </PlotIds>
  4734. <ToggleState>Base</ToggleState>
  4735. </PlotPanel>
  4736. <PlotPanel>
  4737. <PlotPanelId>3</PlotPanelId>
  4738. <PlotPanelVisible>true</PlotPanelVisible>
  4739. <Name>Window 3</Name>
  4740. <Tiling>0</Tiling>
  4741. <PlotIds>
  4742. <PlotId>3</PlotId>
  4743. </PlotIds>
  4744. <ToggleState>Base</ToggleState>
  4745. </PlotPanel>
  4746. </PlotPanels>
  4747. <WindowRectangles virtualDesktopWidth="5760" virtualDesktopHeight="1080">
  4748. <WindowRectangle monitor="2" left="1920" top="0" right="3840" bottom="1080" plotpanelid="1">
  4749. 0.0651042 0.0583333 0.876042 0.85
  4750. </WindowRectangle>
  4751. <WindowRectangle monitor="1" left="-1920" top="0" right="0" bottom="1080" plotpanelid="2">
  4752. 0.130729 0.0842593 0.846354 0.864815
  4753. </WindowRectangle>
  4754. <WindowRectangle monitor="2" left="1920" top="0" right="3840" bottom="1080" plotpanelid="3">
  4755. 0.109896 0.175926 0.50625 0.613889
  4756. </WindowRectangle>
  4757. </WindowRectangles>
  4758. </PlotSpecs>
  4759. <RunSpecs>
  4760. <SimulatorSettings>
  4761. <StartTime>0.0</StartTime>
  4762. <FinishTime>3.0</FinishTime>
  4763. <AllowPassFinishTime>false</AllowPassFinishTime>
  4764. <Warp>false</Warp>
  4765. <FPGonio>false</FPGonio>
  4766. <UseOutputAfterEach>false</UseOutputAfterEach>
  4767. <OutputAfterEach>0.1</OutputAfterEach>
  4768. <EventEpsilon>1.0e-6</EventEpsilon>
  4769. <AlgebraicTolerance>1.0e-7</AlgebraicTolerance>
  4770. <SteadyStateAnalysis>false</SteadyStateAnalysis>
  4771. <UpdateHoldInstructions>true</UpdateHoldInstructions>
  4772. </SimulatorSettings>
  4773. <IntegrationMethods>
  4774. <IntegrationMethod>
  4775. <Name>Euler</Name>
  4776. <StepSize>0.01</StepSize>
  4777. <AutoStepSize>false</AutoStepSize>
  4778. </IntegrationMethod>
  4779. <IntegrationMethod>
  4780. <Name>BackwardEuler</Name>
  4781. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  4782. <RelativeTolerance>1.0e-5</RelativeTolerance>
  4783. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  4784. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  4785. <StepSize>0.01</StepSize>
  4786. <Alpha>1.0</Alpha>
  4787. </IntegrationMethod>
  4788. <IntegrationMethod>
  4789. <Name>AdamsBashforth</Name>
  4790. <StepSize>0.01</StepSize>
  4791. <AutoStepSize>false</AutoStepSize>
  4792. </IntegrationMethod>
  4793. <IntegrationMethod>
  4794. <Name>RungeKutta2</Name>
  4795. <StepSize>0.01</StepSize>
  4796. <AutoStepSize>false</AutoStepSize>
  4797. </IntegrationMethod>
  4798. <IntegrationMethod>
  4799. <Name>RungeKutta4</Name>
  4800. <StepSize>0.01</StepSize>
  4801. <AutoStepSize>false</AutoStepSize>
  4802. </IntegrationMethod>
  4803. <IntegrationMethod>
  4804. <Name>RungeKutta8</Name>
  4805. <UseInitialStepSize>false</UseInitialStepSize>
  4806. <InitialStepSize>0.0</InitialStepSize>
  4807. <UseMaximumStepSize>false</UseMaximumStepSize>
  4808. <MaximumStepSize>0.0</MaximumStepSize>
  4809. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  4810. <RelativeTolerance>1.0e-6</RelativeTolerance>
  4811. <SafetyFactor>0.9</SafetyFactor>
  4812. <Factor1>0.33</Factor1>
  4813. <Factor2>6.0</Factor2>
  4814. <Beta>0.0</Beta>
  4815. <UseMaxNrSteps>false</UseMaxNrSteps>
  4816. <MaxNrSteps>100000</MaxNrSteps>
  4817. <UseStiffDetection>false</UseStiffDetection>
  4818. <MaxNrStiffnessSteps>1000</MaxNrStiffnessSteps>
  4819. </IntegrationMethod>
  4820. <IntegrationMethod>
  4821. <Name>RungeKuttaFehlberg</Name>
  4822. <UseInitialStepSize>false</UseInitialStepSize>
  4823. <InitialStepSize>0.0</InitialStepSize>
  4824. <UseMaximumStepSize>false</UseMaximumStepSize>
  4825. <MaximumStepSize>0.0</MaximumStepSize>
  4826. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  4827. <RelativeTolerance>1.0e-6</RelativeTolerance>
  4828. </IntegrationMethod>
  4829. <IntegrationMethod>
  4830. <Name>VodeAdams</Name>
  4831. <UseInitialStepSize>false</UseInitialStepSize>
  4832. <InitialStepSize>0.0</InitialStepSize>
  4833. <UseMaximumStepSize>false</UseMaximumStepSize>
  4834. <MaximumStepSize>0.0</MaximumStepSize>
  4835. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  4836. <RelativeTolerance>1.0e-6</RelativeTolerance>
  4837. <VodeUseBDF>true</VodeUseBDF>
  4838. <VodeUseNewton>true</VodeUseNewton>
  4839. </IntegrationMethod>
  4840. <IntegrationMethod>
  4841. <Name>BDFMethod</Name>
  4842. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  4843. <RelativeTolerance>1.0e-5</RelativeTolerance>
  4844. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  4845. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  4846. <UseInitialStepSize>false</UseInitialStepSize>
  4847. <InitialStepSize>0.0</InitialStepSize>
  4848. <UseMaximumStepSize>false</UseMaximumStepSize>
  4849. <MaximumStepSize>0.0</MaximumStepSize>
  4850. </IntegrationMethod>
  4851. <IntegrationMethod>
  4852. <Name>MeBDFiMethod</Name>
  4853. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  4854. <RelativeTolerance>1.0e-5</RelativeTolerance>
  4855. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  4856. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  4857. <UseInitialStepSize>false</UseInitialStepSize>
  4858. <InitialStepSize>0.0</InitialStepSize>
  4859. <UseMaximumStepSize>false</UseMaximumStepSize>
  4860. <MaximumStepSize>0.0</MaximumStepSize>
  4861. </IntegrationMethod>
  4862. <SelectedIntegrationMethod>8</SelectedIntegrationMethod>
  4863. </IntegrationMethods>
  4864. </RunSpecs>
  4865. <MultipleRun>
  4866. <NrSteps>10</NrSteps>
  4867. <CopyFromStates>false</CopyFromStates>
  4868. <JoinParameterVariation>true</JoinParameterVariation>
  4869. <ClearAfterRun>true</ClearAfterRun>
  4870. <RedrawAfterRun>false</RedrawAfterRun>
  4871. <DrawDuringSimulation>true</DrawDuringSimulation>
  4872. <ActionBeforeOptimization>0</ActionBeforeOptimization>
  4873. <CompareValue>0.0</CompareValue>
  4874. <UseCompareValue>true</UseCompareValue>
  4875. <MultipleRunType>MultipleRun</MultipleRunType>
  4876. <Minimize>true</Minimize>
  4877. <OptimizationVariable></OptimizationVariable>
  4878. <ResulVarUsage>UseEndValue</ResulVarUsage>
  4879. <Tolerance>0.001</Tolerance>
  4880. <OptimizationMethod>BroydonFletcherGoldfarbShanno</OptimizationMethod>
  4881. <MultipleRunVariables>
  4882. </MultipleRunVariables>
  4883. </MultipleRun>
  4884. <ExportData>
  4885. <WriteAsText>true</WriteAsText>
  4886. <ReadAsText>true</ReadAsText>
  4887. <WriteHeader>true</WriteHeader>
  4888. <ReadHeader>true</ReadHeader>
  4889. <ReadFilename></ReadFilename>
  4890. <WriteFilename></WriteFilename>
  4891. <DoWrite>false</DoWrite>
  4892. <ExportVariables>
  4893. </ExportVariables>
  4894. <ImportVariables>
  4895. </ImportVariables>
  4896. </ExportData>
  4897. <BreakPoints>
  4898. </BreakPoints>
  4899. <AnimationPlayback>
  4900. <PlaybackSpeed>1.0</PlaybackSpeed>
  4901. </AnimationPlayback>
  4902. </ExpData>
  4903. </Experiment>
  4904. </Experiments>
  4905. </Document>