You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4881 lines
134KB

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