25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6252 lines
173KB

  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\MR_dynamics2.emx</LibraryPath>
  11. <TimeStamp>2020-7-17 15:47:18</TimeStamp>
  12. </Description>
  13. </Information>';
  14. type Mainmodel
  15. end;
  16. implementation bg
  17. submodels
  18. Base 392 296
  19. description '<Information>
  20. <Description>
  21. <Version>4.8</Version>
  22. <IsMainModel>1</IsMainModel>
  23. <KeepParameterValues>False</KeepParameterValues>
  24. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  25. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\MR\link.emx</LibraryPath>
  26. <TimeStamp>2020-7-16 14:21:54</TimeStamp>
  27. <Description>Base</Description>
  28. </Description>
  29. </Information>';
  30. type Submodel
  31. ports
  32. power out p [6,1];
  33. signal in Hin [4,4];
  34. power in p1 [6,1];
  35. signal out Hout [4,4];
  36. parameters
  37. real I[3,1] = [1.6399999999999998e-6; 4.7e-8; 1.61e-6] {N.m.s};
  38. real m = 0.00455 {kg};
  39. real COMdim[3,1] = [0.0; 0.0325; 0.0] {m};
  40. real dim[3,1] = [0.0; 0.065; 0.0] {m};
  41. end;
  42. icon bg bottom
  43. figures
  44. rectangle 360 224 424 368 color 0 fill 10025880;
  45. text 'Link' 392 296 color 0;
  46. terminals
  47. p 360 256 fixed;
  48. Hin 360 336 fixed;
  49. p1 424 256 fixed;
  50. Hout 424 336 fixed;
  51. end;
  52. implementation bg
  53. submodels
  54. AdHi0 544 416
  55. description '<Description>
  56. <Version>4.0</Version>
  57. <IsMainModel>1</IsMainModel>
  58. <KeepParameterValues>False</KeepParameterValues>
  59. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  60. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  61. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  62. </Description>';
  63. type MTF
  64. ports
  65. power in p1 [6,1];
  66. power out p2 [6,1];
  67. signal in H [4,4];
  68. restrictions
  69. causality constraint not_equal p1 p2;
  70. end;
  71. icon bg left
  72. figures
  73. text 'MTF' 544 416 color 0 18 bold;
  74. end;
  75. implementation eq
  76. variables
  77. real onlyRotH[4,4];
  78. code
  79. //Only rotations with respect to the inertial system matter!
  80. onlyRotH = H;
  81. onlyRotH[1,4] = 0;
  82. onlyRotH[2,4] = 0;
  83. onlyRotH[3,4] = 0;
  84. p2.e = transpose(Adjoint(onlyRotH)) * p1.e;
  85. p1.f = Adjoint(onlyRotH) * p2.f;
  86. implementation_end;
  87. AdHij 864 304
  88. description '<Description>
  89. <Version>4.0</Version>
  90. <IsMainModel>1</IsMainModel>
  91. <KeepParameterValues>False</KeepParameterValues>
  92. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  93. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  94. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  95. </Description>';
  96. type MTF
  97. ports
  98. power out p1 [6,1];
  99. power in p2 [6,1];
  100. signal in H [4,4];
  101. restrictions
  102. causality constraint not_equal p1 p2;
  103. end;
  104. icon bg top
  105. figures
  106. text 'MTF' 864 304 color 0 18 bold;
  107. end;
  108. implementation eq
  109. equations
  110. //Only rotations with respect to the inertial system matter!
  111. p1.e = transpose(Adjoint(H)) * p2.e;
  112. p2.f = Adjoint(H) * p1.f;
  113. implementation_end;
  114. AdHik 544 248
  115. description '<Description>
  116. <Version>4.0</Version>
  117. <IsMainModel>1</IsMainModel>
  118. <KeepParameterValues>False</KeepParameterValues>
  119. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  120. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  121. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  122. </Description>';
  123. type TF
  124. ports
  125. power in p1 [6,1];
  126. power out p2 [6,1];
  127. restrictions
  128. causality constraint not_equal p1 p2;
  129. parameters
  130. real COMdim[3,1] = [0.0; 0.0325; 0.0];
  131. end;
  132. icon bg left
  133. figures
  134. text 'TF' 544 248 color 0 18 bold;
  135. end;
  136. implementation eq
  137. //Frame in joint connected to port 1
  138. //Principal inertial frame connected in port 2
  139. variables
  140. real d[3]; //distance between frames
  141. real R[3,3]; //rotation between frames
  142. real H[4,4]; //homogeneous matrix
  143. real AdH[6,6]; //Adjoint of homogeneous matrix
  144. equations
  145. d = COMdim; //distance of 1 in z direction of frames
  146. R = eye(3); //no rotation
  147. H = homogeneous(R,d);
  148. AdH = Adjoint(H);
  149. p1.f = AdH * p2.f;
  150. p2.e = transpose(AdH) * p1.e;
  151. implementation_end;
  152. AdHik1 544 360
  153. description '<Description>
  154. <Version>4.0</Version>
  155. <IsMainModel>1</IsMainModel>
  156. <KeepParameterValues>False</KeepParameterValues>
  157. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  158. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  159. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  160. </Description>';
  161. type TF
  162. ports
  163. power in p1 [6,1];
  164. power out p2 [6,1];
  165. restrictions
  166. causality constraint not_equal p1 p2;
  167. parameters
  168. real COMdim[3,1] = [0.0; 0.0325; 0.0];
  169. end;
  170. icon bg left
  171. figures
  172. text 'TF' 544 360 color 0 18 bold;
  173. end;
  174. implementation eq
  175. //Frame in joint connected to port 1
  176. //Principal inertial frame connected in port 2
  177. variables
  178. real d[3]; //distance between frames
  179. real R[3,3]; //rotation between frames
  180. real H[4,4]; //homogeneous matrix
  181. real AdH[6,6]; //Adjoint of homogeneous matrix
  182. equations
  183. d = COMdim; //distance of 1 in z direction of frames
  184. R = eye(3); //no rotation
  185. H = homogeneous(R,d);
  186. AdH = Adjoint(H);
  187. p1.f = AdH * p2.f;
  188. p2.e = transpose(AdH) * p1.e;
  189. implementation_end;
  190. EJS 608 184
  191. description '<Description>
  192. <Version>4.0</Version>
  193. <IsMainModel>1</IsMainModel>
  194. <KeepParameterValues>False</KeepParameterValues>
  195. <LibraryPath>Bond Graph\MGY.emx</LibraryPath>
  196. <TimeStamp>2007-10-31 11:43:6</TimeStamp>
  197. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  198. </Description>';
  199. type MGY
  200. ports
  201. power in p1 [6,1];
  202. parameters
  203. real I[3,1] = [1.6399999999999998e-6; 4.7e-8; 1.61e-6];
  204. real m = 0.00455;
  205. end;
  206. icon bg top
  207. figures
  208. text 'MGY' 608 184 color 0 18 bold;
  209. end;
  210. implementation eq
  211. //EJS / Gyroscopic effects
  212. variables
  213. real II[6,6]; //Inertial tensor
  214. real Q[6,6];
  215. real QI[6,6];
  216. real v[3];
  217. real omega[3];
  218. equations
  219. II = [ I[1],0, 0, 0, 0, 0;
  220. 0, I[2],0, 0, 0, 0;
  221. 0, 0, I[3],0, 0, 0;
  222. 0, 0, 0, m, 0, 0;
  223. 0, 0, 0, 0, m, 0;
  224. 0, 0, 0, 0, 0, m];
  225. v[1:3] = p1.f[4:6];
  226. omega[1:3] = p1.f[1:3];
  227. Q[1:3,1:3] = -skew(omega);
  228. Q[1:3,4:6] = -skew(v);
  229. Q[4:6,1:3] = [0,0,0;0,0,0;0,0,0];//matrix filled with zeros
  230. Q[4:6,4:6] = -skew(omega);
  231. QI = Q*II;
  232. p1.e = QI*p1.f;implementation_end;
  233. Gravity 656 416
  234. description '<Description>
  235. <Version>4.0</Version>
  236. <IsMainModel>1</IsMainModel>
  237. <KeepParameterValues>False</KeepParameterValues>
  238. <LibraryPath>Bond Graph\Se.emx</LibraryPath>
  239. <TimeStamp>2007-9-25 12:3:26</TimeStamp>
  240. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  241. </Description>';
  242. type Se
  243. ports
  244. power out p [6,1];
  245. restrictions
  246. causality fixed out p;
  247. parameters
  248. real m = 0.00455;
  249. end;
  250. icon bg bottom
  251. figures
  252. text 'Se' 656 416 color 0 18 bold;
  253. end;
  254. implementation eq
  255. variables
  256. real effort[6];
  257. equations
  258. effort = [0;0;0;0;0;-9.8*m];
  259. p.e = effort;
  260. implementation_end;
  261. Hij 864 496
  262. description '<Description>
  263. <Version>4.1</Version>
  264. <IsMainModel>1</IsMainModel>
  265. <KeepParameterValues>False</KeepParameterValues>
  266. <LibraryPath>H.emx</LibraryPath>
  267. <TimeStamp>2010-9-21 15:03:50</TimeStamp>
  268. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  269. </Description>';
  270. type Gain
  271. ports
  272. signal in input [4,4];
  273. signal out output [4,4];
  274. signal out Hab [4,4];
  275. parameters
  276. real dim[3,1] = [0.0; 0.065; 0.0];
  277. end;
  278. icon bg bottom
  279. figures
  280. rectangle 848.1 480 879.9 512 color 0 fill 15132390;
  281. text 'H' 864 496 color 16711680 16 bold;
  282. end;
  283. implementation eq
  284. equations
  285. Hab = homogeneous(eye(3),dim);
  286. output = input * Hab;
  287. implementation_end;
  288. InertialTensor 480 184
  289. description '<Description>
  290. <Version>4.0</Version>
  291. <IsMainModel>1</IsMainModel>
  292. <KeepParameterValues>False</KeepParameterValues>
  293. <LibraryPath>Bond Graph\I.emx</LibraryPath>
  294. <TimeStamp>2007-9-25 12:2:12</TimeStamp>
  295. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  296. </Description>';
  297. type I
  298. ports
  299. power in p [6,1];
  300. signal out state [6,1];
  301. restrictions
  302. causality preferred in p;
  303. parameters
  304. real m = 0.00455;
  305. real I[3,1] = [1.6399999999999998e-6; 4.7e-8; 1.61e-6];
  306. end;
  307. icon bg top
  308. figures
  309. text 'I' 480 184 color 0 18 bold;
  310. end;
  311. implementation eq
  312. variables
  313. real II[6,6]; //Inertial tensor
  314. equations
  315. II = [I[1],0, 0, 0, 0, 0;
  316. 0, I[2],0, 0, 0, 0;
  317. 0, 0, I[3],0, 0, 0;
  318. 0, 0, 0, m, 0, 0;
  319. 0, 0, 0, 0, m, 0;
  320. 0, 0, 0, 0, 0, m];
  321. state = int(p.e); //state = generalized momentum
  322. p.f = inverse(II)*state;
  323. implementation_end;
  324. plug Hout 984 496;
  325. plug p1 984 304;
  326. plug Hin 472 496;
  327. plug p 472 304;
  328. Splitter1 544 496
  329. description '<Description><Version>4.0</Version>
  330. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  331. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  332. <IsMainModel>1</IsMainModel>
  333. <KeepParameterValues>False</KeepParameterValues>
  334. </Description>';
  335. knot Splitter
  336. ports
  337. signal knot duplicatable out output [4,4];
  338. signal knot in input [4,4];
  339. end;
  340. icon bg ellipse
  341. figures
  342. ellipse 540.8 492.8 547.2 499.2 color -1 fill 0;
  343. ellipse 539.7 491.7 548.3 500.3 color -1;
  344. terminals
  345. input 544 496 fixed;
  346. end;
  347. implementation eq
  348. equations
  349. collect (output) = input;
  350. implementation_end;
  351. Ta00 600 416
  352. description '<Description>
  353. <Version>4.0</Version>
  354. <IsMainModel>1</IsMainModel>
  355. <KeepParameterValues>False</KeepParameterValues>
  356. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  357. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  358. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  359. </Description>';
  360. knot OneJunction
  361. ports
  362. power knot duplicatable none p [6,1];
  363. signal knot out flow [6,1];
  364. restrictions
  365. causality constraint one_out p;
  366. end;
  367. icon bg bottom
  368. figures
  369. text '1' 600 416 color 0 18 bold;
  370. end;
  371. implementation eq
  372. equations
  373. sum (direct (p.e)) = 0;
  374. equal (collect (p.f));
  375. flow = first (p.f);
  376. implementation_end;
  377. Ta0j 544 304
  378. description '<Description>
  379. <Version>4.0</Version>
  380. <IsMainModel>1</IsMainModel>
  381. <KeepParameterValues>False</KeepParameterValues>
  382. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  383. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  384. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  385. <Description></Description>
  386. </Description>';
  387. knot OneJunction
  388. ports
  389. power knot duplicatable none p [6,1];
  390. signal knot out flow [6,1];
  391. restrictions
  392. causality constraint one_out p;
  393. end;
  394. icon bg bottom
  395. figures
  396. text '1' 544 304 color 0 18 bold;
  397. end;
  398. implementation eq
  399. equations
  400. sum (direct (p.e)) = 0;
  401. equal (collect (p.f));
  402. flow = first (p.f);
  403. implementation_end;
  404. Ta0k 544 184
  405. description '<Description>
  406. <Version>4.0</Version>
  407. <IsMainModel>1</IsMainModel>
  408. <KeepParameterValues>False</KeepParameterValues>
  409. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  410. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  411. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  412. <Description></Description>
  413. </Description>';
  414. knot OneJunction
  415. ports
  416. power knot duplicatable none p [6,1];
  417. signal knot out flow [6,1];
  418. restrictions
  419. causality constraint one_out p;
  420. end;
  421. icon bg top
  422. figures
  423. text '1' 544 184 color 0 18 bold;
  424. end;
  425. implementation eq
  426. equations
  427. sum (direct (p.e)) = 0;
  428. equal (collect (p.f));
  429. flow = first (p.f);
  430. implementation_end;
  431. end;
  432. connections
  433. AdHi0\p2 => AdHik1\p1;
  434. AdHij\p1 => Ta0j\p;
  435. AdHik\p2 => Ta0k\p;
  436. AdHik1\p2 => Ta0j\p;
  437. Gravity\p => Ta00\p;
  438. Hij\Hab -> AdHij\H;
  439. Hij\output -> Hout;
  440. Hin -> Splitter1\input;
  441. p <= Ta0j\p;
  442. p1 => AdHij\p2;
  443. Splitter1\output -> AdHi0\H;
  444. Splitter1\output -> Hij\input;
  445. Ta00\p => AdHi0\p1;
  446. Ta0j\p => AdHik\p1;
  447. Ta0k\p => EJS\p1;
  448. Ta0k\p => InertialTensor\p;
  449. end;
  450. parameterrelations
  451. InertialTensor\I = I;
  452. InterialTensor\m = m;
  453. EJS\I = I;
  454. EJS\m = m;
  455. AdHik\COMdim = COMdim;
  456. AdHik1\COMdim = COMdim;
  457. Hij\dim = dim;
  458. Gravity\m=m;parameterrelations_end;
  459. figures
  460. text 'b = current link (body)
  461. a = previous link (body)
  462. i = Body fixed frame, fixed in joint with previous link
  463. j = Body fixed frame, fixed in joint with next link
  464. k = Body fixed frame, principal inertial frame
  465. 0 = inertial system
  466. ' 288 280 color 0;
  467. implementation_end;
  468. Base1 584 296
  469. description '<Information>
  470. <Description>
  471. <Version>4.8</Version>
  472. <IsMainModel>1</IsMainModel>
  473. <KeepParameterValues>False</KeepParameterValues>
  474. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  475. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\MR\link.emx</LibraryPath>
  476. <TimeStamp>2020-7-16 14:21:54</TimeStamp>
  477. <Description>Base</Description>
  478. </Description>
  479. </Information>';
  480. type Submodel
  481. ports
  482. power out p [6,1];
  483. signal in Hin [4,4];
  484. power in p1 [6,1];
  485. signal out Hout [4,4];
  486. parameters
  487. real I[3,1] = [1.6399999999999998e-6; 4.7e-8; 1.61e-6] {N.m.s};
  488. real m = 0.00455 {kg};
  489. real COMdim[3,1] = [0.0; 0.025; 0.0] {m};
  490. real dim[3,1] = [0.0; 0.05; 0.0] {m};
  491. end;
  492. icon bg bottom
  493. figures
  494. rectangle 552 224 616 368 color 0 fill 10025880;
  495. text 'Link' 584 296 color 0;
  496. terminals
  497. p 552 256 fixed;
  498. Hin 552 336 fixed;
  499. p1 616 256 fixed;
  500. Hout 616 336 fixed;
  501. end;
  502. implementation bg
  503. submodels
  504. AdHi0 664 416
  505. description '<Description>
  506. <Version>4.0</Version>
  507. <IsMainModel>1</IsMainModel>
  508. <KeepParameterValues>False</KeepParameterValues>
  509. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  510. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  511. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  512. </Description>';
  513. type MTF
  514. ports
  515. power in p1 [6,1];
  516. power out p2 [6,1];
  517. signal in H [4,4];
  518. restrictions
  519. causality constraint not_equal p1 p2;
  520. end;
  521. icon bg left
  522. figures
  523. text 'MTF' 664 416 color 0 18 bold;
  524. end;
  525. implementation eq
  526. variables
  527. real onlyRotH[4,4];
  528. code
  529. //Only rotations with respect to the inertial system matter!
  530. onlyRotH = H;
  531. onlyRotH[1,4] = 0;
  532. onlyRotH[2,4] = 0;
  533. onlyRotH[3,4] = 0;
  534. p2.e = transpose(Adjoint(onlyRotH)) * p1.e;
  535. p1.f = Adjoint(onlyRotH) * p2.f;
  536. implementation_end;
  537. AdHij 816 304
  538. description '<Description>
  539. <Version>4.0</Version>
  540. <IsMainModel>1</IsMainModel>
  541. <KeepParameterValues>False</KeepParameterValues>
  542. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  543. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  544. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  545. </Description>';
  546. type MTF
  547. ports
  548. power out p1 [6,1];
  549. power in p2 [6,1];
  550. signal in H [4,4];
  551. restrictions
  552. causality constraint not_equal p1 p2;
  553. end;
  554. icon bg top
  555. figures
  556. text 'MTF' 816 304 color 0 18 bold;
  557. end;
  558. implementation eq
  559. equations
  560. //Only rotations with respect to the inertial system matter!
  561. p1.e = transpose(Adjoint(H)) * p2.e;
  562. p2.f = Adjoint(H) * p1.f;
  563. implementation_end;
  564. AdHik 664 248
  565. description '<Description>
  566. <Version>4.0</Version>
  567. <IsMainModel>1</IsMainModel>
  568. <KeepParameterValues>False</KeepParameterValues>
  569. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  570. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  571. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  572. </Description>';
  573. type TF
  574. ports
  575. power in p1 [6,1];
  576. power out p2 [6,1];
  577. restrictions
  578. causality constraint not_equal p1 p2;
  579. parameters
  580. real COMdim[3,1] = [0.0; 0.025; 0.0];
  581. end;
  582. icon bg left
  583. figures
  584. text 'TF' 664 248 color 0 18 bold;
  585. end;
  586. implementation eq
  587. //Frame in joint connected to port 1
  588. //Principal inertial frame connected in port 2
  589. variables
  590. real d[3]; //distance between frames
  591. real R[3,3]; //rotation between frames
  592. real H[4,4]; //homogeneous matrix
  593. real AdH[6,6]; //Adjoint of homogeneous matrix
  594. equations
  595. d = COMdim; //distance of 1 in z direction of frames
  596. R = eye(3); //no rotation
  597. H = homogeneous(R,d);
  598. AdH = Adjoint(H);
  599. p1.f = AdH * p2.f;
  600. p2.e = transpose(AdH) * p1.e;
  601. implementation_end;
  602. AdHik1 664 360
  603. description '<Description>
  604. <Version>4.0</Version>
  605. <IsMainModel>1</IsMainModel>
  606. <KeepParameterValues>False</KeepParameterValues>
  607. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  608. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  609. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  610. </Description>';
  611. type TF
  612. ports
  613. power out p1 [6,1];
  614. power in p2 [6,1];
  615. restrictions
  616. causality constraint not_equal p1 p2;
  617. parameters
  618. real COMdim[3,1] = [0.0; 0.025; 0.0];
  619. end;
  620. icon bg left
  621. figures
  622. text 'TF' 664 360 color 0 18 bold;
  623. end;
  624. implementation eq
  625. //Principal inertial frame connected in port 2
  626. variables
  627. real d[3]; //distance between frames
  628. real R[3,3]; //rotation between frames
  629. real H[4,4]; //homogeneous matrix
  630. real AdH[6,6]; //Adjoint of homogeneous matrix
  631. equations
  632. d = COMdim; //distance of 1 in z direction of frames
  633. R = eye(3); //no rotation
  634. H = homogeneous(R,d);
  635. AdH = Adjoint(H);
  636. p1.f = AdH * p2.f;
  637. p2.e = transpose(AdH) * p1.e;
  638. implementation_end;
  639. EJS 728 184
  640. description '<Description>
  641. <Version>4.0</Version>
  642. <IsMainModel>1</IsMainModel>
  643. <KeepParameterValues>False</KeepParameterValues>
  644. <LibraryPath>Bond Graph\MGY.emx</LibraryPath>
  645. <TimeStamp>2007-10-31 11:43:6</TimeStamp>
  646. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  647. </Description>';
  648. type MGY
  649. ports
  650. power in p1 [6,1];
  651. parameters
  652. real I[3,1] = [7.583e-7; 3.6458e-8; 7.364583e-7];
  653. real m = 0.0035;
  654. end;
  655. icon bg top
  656. figures
  657. text 'MGY' 728 184 color 0 18 bold;
  658. end;
  659. implementation eq
  660. //EJS / Gyroscopic effects
  661. variables
  662. real II[6,6]; //Inertial tensor
  663. real Q[6,6];
  664. real QI[6,6];
  665. real v[3];
  666. real omega[3];
  667. equations
  668. II = [ I[1],0, 0, 0, 0, 0;
  669. 0, I[2],0, 0, 0, 0;
  670. 0, 0, I[3],0, 0, 0;
  671. 0, 0, 0, m, 0, 0;
  672. 0, 0, 0, 0, m, 0;
  673. 0, 0, 0, 0, 0, m];
  674. v[1:3] = p1.f[4:6];
  675. omega[1:3] = p1.f[1:3];
  676. Q[1:3,1:3] = -skew(omega);
  677. Q[1:3,4:6] = -skew(v);
  678. Q[4:6,1:3] = [0,0,0;0,0,0;0,0,0];//matrix filled with zeros
  679. Q[4:6,4:6] = -skew(omega);
  680. QI = Q*II;
  681. p1.e = QI*p1.f;implementation_end;
  682. Gravity 776 416
  683. description '<Description>
  684. <Version>4.0</Version>
  685. <IsMainModel>1</IsMainModel>
  686. <KeepParameterValues>False</KeepParameterValues>
  687. <LibraryPath>Bond Graph\Se.emx</LibraryPath>
  688. <TimeStamp>2007-9-25 12:3:26</TimeStamp>
  689. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  690. </Description>';
  691. type Se
  692. ports
  693. power out p [6,1];
  694. restrictions
  695. causality fixed out p;
  696. parameters
  697. real m = 0.0035;
  698. end;
  699. icon bg bottom
  700. figures
  701. text 'Se' 776 416 color 0 18 bold;
  702. end;
  703. implementation eq
  704. variables
  705. real effort[6];
  706. equations
  707. effort = [0;0;0;0;0;-9.8*m];
  708. p.e = effort;
  709. implementation_end;
  710. Hij 816 496
  711. description '<Description>
  712. <Version>4.1</Version>
  713. <IsMainModel>1</IsMainModel>
  714. <KeepParameterValues>False</KeepParameterValues>
  715. <LibraryPath>H.emx</LibraryPath>
  716. <TimeStamp>2010-9-21 15:03:50</TimeStamp>
  717. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  718. </Description>';
  719. type Gain
  720. ports
  721. signal in input [4,4];
  722. signal out output [4,4];
  723. signal out Hab [4,4];
  724. parameters
  725. real dim[3,1] = [0.0; 0.05; 0.0];
  726. end;
  727. icon bg bottom
  728. figures
  729. rectangle 800.1 480 831.9 512 color 0 fill 15132390;
  730. text 'H' 816 496 color 16711680 16 bold;
  731. end;
  732. implementation eq
  733. equations
  734. Hab = homogeneous(eye(3),dim);
  735. output = input * Hab;
  736. implementation_end;
  737. InertialTensor 600 184
  738. description '<Description>
  739. <Version>4.0</Version>
  740. <IsMainModel>1</IsMainModel>
  741. <KeepParameterValues>False</KeepParameterValues>
  742. <LibraryPath>Bond Graph\I.emx</LibraryPath>
  743. <TimeStamp>2007-9-25 12:2:12</TimeStamp>
  744. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  745. </Description>';
  746. type I
  747. ports
  748. power in p [6,1];
  749. signal out state [6,1];
  750. restrictions
  751. causality preferred in p;
  752. parameters
  753. real m = 0.0035;
  754. real I[3,1] = [7.583e-7; 3.6458e-8; 7.364583e-7];
  755. end;
  756. icon bg top
  757. figures
  758. text 'I' 600 184 color 0 18 bold;
  759. end;
  760. implementation eq
  761. variables
  762. real II[6,6]; //Inertial tensor
  763. equations
  764. II = [I[1],0, 0, 0, 0, 0;
  765. 0, I[2],0, 0, 0, 0;
  766. 0, 0, I[3],0, 0, 0;
  767. 0, 0, 0, m, 0, 0;
  768. 0, 0, 0, 0, m, 0;
  769. 0, 0, 0, 0, 0, m];
  770. state = int(p.e); //state = generalized momentum
  771. p.f = inverse(II)*state;
  772. implementation_end;
  773. plug Hout 896 496;
  774. plug p1 904 304;
  775. plug Hin 592 496;
  776. plug p 592 304;
  777. Splitter1 664 496
  778. description '<Description><Version>4.0</Version>
  779. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  780. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  781. <IsMainModel>1</IsMainModel>
  782. <KeepParameterValues>False</KeepParameterValues>
  783. </Description>';
  784. knot Splitter
  785. ports
  786. signal knot duplicatable out output [4,4];
  787. signal knot in input [4,4];
  788. end;
  789. icon bg ellipse
  790. figures
  791. ellipse 660.8 492.8 667.2 499.2 color -1 fill 0;
  792. ellipse 659.7 491.7 668.3 500.3 color -1;
  793. terminals
  794. input 664 496 fixed;
  795. end;
  796. implementation eq
  797. equations
  798. collect (output) = input;
  799. implementation_end;
  800. Ta00 720 416
  801. description '<Description>
  802. <Version>4.0</Version>
  803. <IsMainModel>1</IsMainModel>
  804. <KeepParameterValues>False</KeepParameterValues>
  805. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  806. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  807. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  808. </Description>';
  809. knot OneJunction
  810. ports
  811. power knot duplicatable none p [6,1];
  812. signal knot out flow [6,1];
  813. restrictions
  814. causality constraint one_out p;
  815. end;
  816. icon bg bottom
  817. figures
  818. text '1' 720 416 color 0 18 bold;
  819. end;
  820. implementation eq
  821. equations
  822. sum (direct (p.e)) = 0;
  823. equal (collect (p.f));
  824. flow = first (p.f);
  825. implementation_end;
  826. Ta0j 664 304
  827. description '<Description>
  828. <Version>4.0</Version>
  829. <IsMainModel>1</IsMainModel>
  830. <KeepParameterValues>False</KeepParameterValues>
  831. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  832. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  833. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  834. <Description></Description>
  835. </Description>';
  836. knot OneJunction
  837. ports
  838. power knot duplicatable none p [6,1];
  839. signal knot out flow [6,1];
  840. restrictions
  841. causality constraint one_out p;
  842. end;
  843. icon bg bottom
  844. figures
  845. text '1' 664 304 color 0 18 bold;
  846. end;
  847. implementation eq
  848. equations
  849. sum (direct (p.e)) = 0;
  850. equal (collect (p.f));
  851. flow = first (p.f);
  852. implementation_end;
  853. Ta0k 664 184
  854. description '<Description>
  855. <Version>4.0</Version>
  856. <IsMainModel>1</IsMainModel>
  857. <KeepParameterValues>False</KeepParameterValues>
  858. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  859. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  860. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  861. <Description></Description>
  862. </Description>';
  863. knot OneJunction
  864. ports
  865. power knot duplicatable none p [6,1];
  866. signal knot out flow [6,1];
  867. restrictions
  868. causality constraint one_out p;
  869. end;
  870. icon bg top
  871. figures
  872. text '1' 664 184 color 0 18 bold;
  873. end;
  874. implementation eq
  875. equations
  876. sum (direct (p.e)) = 0;
  877. equal (collect (p.f));
  878. flow = first (p.f);
  879. implementation_end;
  880. end;
  881. connections
  882. AdHi0\p2 => AdHik1\p2;
  883. AdHik\p2 => Ta0k\p;
  884. Gravity\p => Ta00\p;
  885. Hij\Hab -> AdHij\H;
  886. Hij\output -> Hout;
  887. Hin -> Splitter1\input;
  888. p <= Ta0j\p;
  889. p1 => AdHij\p2;
  890. Splitter1\output -> AdHi0\H;
  891. Splitter1\output -> Hij\input;
  892. Ta00\p => AdHi0\p1;
  893. Ta0j\p <= AdHij\p1;
  894. Ta0j\p <= AdHik1\p1;
  895. Ta0j\p => AdHik\p1;
  896. Ta0k\p => EJS\p1;
  897. Ta0k\p => InertialTensor\p;
  898. end;
  899. parameterrelations
  900. InertialTensor\I = I;
  901. InterialTensor\m = m;
  902. EJS\I = I;
  903. EJS\m = m;
  904. AdHik\COMdim = COMdim;
  905. AdHik1\COMdim = COMdim;
  906. Hij\dim = dim;
  907. Gravity\m=m;parameterrelations_end;
  908. figures
  909. text 'b = current link (body)
  910. a = previous link (body)
  911. i = Body fixed frame, fixed in joint with previous link
  912. j = Body fixed frame, fixed in joint with next link
  913. k = Body fixed frame, principal inertial frame
  914. 0 = inertial system
  915. ' 288 280 color 0;
  916. implementation_end;
  917. Base2 888 504
  918. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><AllowLibraryUpdate>True</AllowLibraryUpdate><LibraryPath>Bond Graph\MR\center_of_mass.emx</LibraryPath><TimeStamp>2020-7-17 13:52:18</TimeStamp><Description>Base</Description></Description><Attributes><GlobalRelations>parameters
  919. real I [3,1] = [1.6399999999999998e-6; 4.7e-8; 1.61e-6] {N.m.s};
  920. real m = 0.00455 {kg};</GlobalRelations></Attributes></Information>';
  921. type Submodel
  922. ports
  923. power out p [6,1];
  924. signal in Hin [4,4];
  925. power in p1 [6,1];
  926. signal out Hout [4,4];
  927. end;
  928. icon bg bottom
  929. figures
  930. rectangle 856 464 920 544 color 0 fill 255;
  931. text 'COM' 888 488 color 0;
  932. terminals
  933. p 856 480 fixed;
  934. Hin 856 528 fixed;
  935. p1 920 480 fixed;
  936. Hout 920 528 fixed;
  937. end;
  938. implementation bg
  939. submodels
  940. AdHi0 544 400
  941. description '<Description>
  942. <Version>4.0</Version>
  943. <IsMainModel>1</IsMainModel>
  944. <KeepParameterValues>False</KeepParameterValues>
  945. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  946. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  947. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  948. </Description>';
  949. type MTF
  950. ports
  951. power in p1 [6,1];
  952. power out p2 [6,1];
  953. signal in H [4,4];
  954. restrictions
  955. causality constraint not_equal p1 p2;
  956. end;
  957. icon bg left
  958. figures
  959. text 'MTF' 544 400 color 0 18 bold;
  960. end;
  961. implementation eq
  962. variables
  963. real onlyRotH[4,4];
  964. code
  965. //Only rotations with respect to the inertial system matter!
  966. onlyRotH = H;
  967. onlyRotH[1,4] = 0;
  968. onlyRotH[2,4] = 0;
  969. onlyRotH[3,4] = 0;
  970. p2.e = transpose(Adjoint(onlyRotH)) * p1.e;
  971. p1.f = Adjoint(onlyRotH) * p2.f;
  972. implementation_end;
  973. EJS 616 256
  974. description '<Description>
  975. <Version>4.0</Version>
  976. <IsMainModel>1</IsMainModel>
  977. <KeepParameterValues>False</KeepParameterValues>
  978. <LibraryPath>Bond Graph\MGY.emx</LibraryPath>
  979. <TimeStamp>2007-10-31 11:43:6</TimeStamp>
  980. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  981. </Description>';
  982. type MGY
  983. ports
  984. power in p1 [6,1];
  985. end;
  986. icon bg top
  987. figures
  988. text 'MGY' 616 256 color 0 18 bold;
  989. end;
  990. implementation eq
  991. //EJS / Gyroscopic effects
  992. parameters
  993. real global I[3];
  994. real global m;
  995. variables
  996. real II[6,6]; //Inertial tensor
  997. real Q[6,6];
  998. real QI[6,6];
  999. real Ia[6];
  1000. initialequations
  1001. Ia[1:3] = I;
  1002. Ia[4:6] = m;
  1003. II = diag(Ia);
  1004. equations
  1005. Q = transpose(adjoint(p1.f));
  1006. QI = Q*II;
  1007. p1.e = QI*p1.f;implementation_end;
  1008. Gravity 616 400
  1009. description '<Description>
  1010. <Version>4.0</Version>
  1011. <IsMainModel>1</IsMainModel>
  1012. <KeepParameterValues>False</KeepParameterValues>
  1013. <LibraryPath>Bond Graph\Se.emx</LibraryPath>
  1014. <TimeStamp>2007-9-25 12:3:26</TimeStamp>
  1015. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1016. </Description>';
  1017. type Se
  1018. ports
  1019. power out p [6,1];
  1020. restrictions
  1021. causality fixed out p;
  1022. end;
  1023. icon bg bottom
  1024. figures
  1025. text 'Se' 616 400 color 0 18 bold;
  1026. end;
  1027. implementation eq
  1028. parameters
  1029. real global m;
  1030. variables
  1031. real effort[6];
  1032. equations
  1033. effort = [0;0;0;0;0;-g_n*m];
  1034. p.e = effort;
  1035. implementation_end;
  1036. InertialTensor 480 256
  1037. description '<Description>
  1038. <Version>4.0</Version>
  1039. <IsMainModel>1</IsMainModel>
  1040. <KeepParameterValues>False</KeepParameterValues>
  1041. <LibraryPath>Bond Graph\I.emx</LibraryPath>
  1042. <TimeStamp>2007-9-25 12:2:12</TimeStamp>
  1043. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1044. </Description>';
  1045. type I
  1046. ports
  1047. power in p [6,1];
  1048. signal out state [6,1];
  1049. restrictions
  1050. causality preferred in p;
  1051. end;
  1052. icon bg top
  1053. figures
  1054. text 'I' 480 256 color 0 18 bold;
  1055. end;
  1056. implementation eq
  1057. parameters
  1058. real global I[3];
  1059. real global m;
  1060. variables
  1061. real II[6,6]; //Inertial tensor
  1062. real Ia[6];
  1063. initialequations
  1064. Ia[1:3] = I;
  1065. Ia[4:6] = m;
  1066. II = diag(Ia);
  1067. equations
  1068. state = int(p.e); //state = generalized momentum
  1069. p.f = inverse(II)*state;
  1070. implementation_end;
  1071. plug Hin 472 496;
  1072. plug p1 752 304;
  1073. plug Hout 768 496;
  1074. plug p 472 304;
  1075. Splitter1 544 496
  1076. description '<Description><Version>4.0</Version>
  1077. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  1078. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  1079. <IsMainModel>1</IsMainModel>
  1080. <KeepParameterValues>False</KeepParameterValues>
  1081. </Description>';
  1082. knot Splitter
  1083. ports
  1084. signal knot duplicatable out output [4,4];
  1085. signal knot in input [4,4];
  1086. end;
  1087. icon bg ellipse
  1088. figures
  1089. ellipse 540.8 492.8 547.2 499.2 color -1 fill 0;
  1090. ellipse 539.7 491.7 548.3 500.3 color -1;
  1091. terminals
  1092. input 544 496 fixed;
  1093. end;
  1094. implementation eq
  1095. equations
  1096. collect (output) = input;
  1097. implementation_end;
  1098. Ta0j 544 304
  1099. description '<Description>
  1100. <Version>4.0</Version>
  1101. <IsMainModel>1</IsMainModel>
  1102. <KeepParameterValues>False</KeepParameterValues>
  1103. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  1104. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  1105. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1106. <Description></Description>
  1107. </Description>';
  1108. knot OneJunction
  1109. ports
  1110. power knot duplicatable none p [6,1];
  1111. signal knot out flow [6,1];
  1112. restrictions
  1113. causality constraint one_out p;
  1114. end;
  1115. icon bg bottom
  1116. figures
  1117. text '1' 544 304 color 0 18 bold;
  1118. end;
  1119. implementation eq
  1120. equations
  1121. sum (direct (p.e)) = 0;
  1122. equal (collect (p.f));
  1123. flow = first (p.f);
  1124. implementation_end;
  1125. Ta0k 544 256
  1126. description '<Description>
  1127. <Version>4.0</Version>
  1128. <IsMainModel>1</IsMainModel>
  1129. <KeepParameterValues>False</KeepParameterValues>
  1130. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  1131. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  1132. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1133. <Description></Description>
  1134. </Description>';
  1135. knot OneJunction
  1136. ports
  1137. power knot duplicatable none p [6,1];
  1138. signal knot out flow [6,1];
  1139. restrictions
  1140. causality constraint one_out p;
  1141. end;
  1142. icon bg top
  1143. figures
  1144. text '1' 544 256 color 0 18 bold;
  1145. end;
  1146. implementation eq
  1147. equations
  1148. sum (direct (p.e)) = 0;
  1149. equal (collect (p.f));
  1150. flow = first (p.f);
  1151. implementation_end;
  1152. end;
  1153. connections
  1154. AdHi0\p2 => Ta0j\p;
  1155. Gravity\p => AdHi0\p1;
  1156. Hin -> Splitter1\input;
  1157. p <= Ta0j\p;
  1158. p1 => Ta0j\p;
  1159. Splitter1\output -> AdHi0\H;
  1160. Splitter1\output -> Hout;
  1161. Ta0j\p => Ta0k\p;
  1162. Ta0k\p => EJS\p1;
  1163. Ta0k\p => InertialTensor\p;
  1164. end;
  1165. parameterrelations
  1166. InertialTensor\I = I;
  1167. InterialTensor\m = m;
  1168. EJS\I = I;
  1169. EJS\m = m;
  1170. AdHik\COMdim = COMdim;
  1171. AdHik1\COMdim = COMdim;
  1172. Hij\dim = dim;
  1173. Gravity\m=m;parameterrelations_end;
  1174. figures
  1175. text 'b = current link (body)
  1176. a = previous link (body)
  1177. i = Body fixed frame, fixed in joint with previous link
  1178. j = Body fixed frame, fixed in joint with next link
  1179. k = Body fixed frame, principal inertial frame
  1180. 0 = inertial system
  1181. ' 288 280 color 0;
  1182. implementation_end;
  1183. Base3 544 504
  1184. description '<Information>
  1185. <Description>
  1186. <Version>4.8</Version>
  1187. <IsMainModel>1</IsMainModel>
  1188. <KeepParameterValues>False</KeepParameterValues>
  1189. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1190. <LibraryPath>Bond Graph\MR\center_of_mass.emx</LibraryPath>
  1191. <TimeStamp>2020-7-17 13:52:18</TimeStamp>
  1192. <Description>Base</Description>
  1193. </Description>
  1194. </Information>';
  1195. type Submodel
  1196. ports
  1197. power out p [6,1];
  1198. signal in Hin [4,4];
  1199. power in p1 [6,1];
  1200. signal out Hout [4,4];
  1201. end;
  1202. icon bg bottom
  1203. figures
  1204. rectangle 512 464 576 544 color 0 fill 255;
  1205. text 'COM' 544 488 color 0;
  1206. terminals
  1207. p 512 480 fixed;
  1208. Hin 512 528 fixed;
  1209. p1 576 480 fixed;
  1210. Hout 576 528 fixed;
  1211. end;
  1212. implementation bg
  1213. submodels
  1214. AdHi0 544 400
  1215. description '<Description>
  1216. <Version>4.0</Version>
  1217. <IsMainModel>1</IsMainModel>
  1218. <KeepParameterValues>False</KeepParameterValues>
  1219. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  1220. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  1221. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1222. </Description>';
  1223. type MTF
  1224. ports
  1225. power in p1 [6,1];
  1226. power out p2 [6,1];
  1227. signal in H [4,4];
  1228. restrictions
  1229. causality constraint not_equal p1 p2;
  1230. end;
  1231. icon bg left
  1232. figures
  1233. text 'MTF' 544 400 color 0 18 bold;
  1234. end;
  1235. implementation eq
  1236. variables
  1237. real onlyRotH[4,4];
  1238. code
  1239. //Only rotations with respect to the inertial system matter!
  1240. onlyRotH = H;
  1241. onlyRotH[1,4] = 0;
  1242. onlyRotH[2,4] = 0;
  1243. onlyRotH[3,4] = 0;
  1244. p2.e = transpose(Adjoint(onlyRotH)) * p1.e;
  1245. p1.f = Adjoint(onlyRotH) * p2.f;
  1246. implementation_end;
  1247. EJS 616 256
  1248. description '<Description>
  1249. <Version>4.0</Version>
  1250. <IsMainModel>1</IsMainModel>
  1251. <KeepParameterValues>False</KeepParameterValues>
  1252. <LibraryPath>Bond Graph\MGY.emx</LibraryPath>
  1253. <TimeStamp>2007-10-31 11:43:6</TimeStamp>
  1254. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1255. </Description>';
  1256. type MGY
  1257. ports
  1258. power in p1 [6,1];
  1259. parameters
  1260. real I[3,1] = [1.6399999999999998e-6; 4.7e-8; 1.61e-6];
  1261. real m = 0.00455;
  1262. end;
  1263. icon bg top
  1264. figures
  1265. text 'MGY' 616 256 color 0 18 bold;
  1266. end;
  1267. implementation eq
  1268. //EJS / Gyroscopic effects
  1269. variables
  1270. real II[6,6]; //Inertial tensor
  1271. real Q[6,6];
  1272. real QI[6,6];
  1273. real Ia[6];
  1274. initialequations
  1275. Ia[1:3] = I;
  1276. Ia[4:6] = m;
  1277. II = diag(Ia);
  1278. equations
  1279. Q = transpose(adjoint(p1.f));
  1280. QI = Q*II;
  1281. p1.e = QI*p1.f;implementation_end;
  1282. Gravity 616 400
  1283. description '<Description>
  1284. <Version>4.0</Version>
  1285. <IsMainModel>1</IsMainModel>
  1286. <KeepParameterValues>False</KeepParameterValues>
  1287. <LibraryPath>Bond Graph\Se.emx</LibraryPath>
  1288. <TimeStamp>2007-9-25 12:3:26</TimeStamp>
  1289. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1290. </Description>';
  1291. type Se
  1292. ports
  1293. power out p [6,1];
  1294. restrictions
  1295. causality fixed out p;
  1296. parameters
  1297. real m = 0.00455;
  1298. end;
  1299. icon bg bottom
  1300. figures
  1301. text 'Se' 616 400 color 0 18 bold;
  1302. end;
  1303. implementation eq
  1304. variables
  1305. real effort[6];
  1306. equations
  1307. effort = [0;0;0;0;0;-g_n*m];
  1308. p.e = effort;
  1309. implementation_end;
  1310. InertialTensor 472 256
  1311. description '<Description>
  1312. <Version>4.0</Version>
  1313. <IsMainModel>1</IsMainModel>
  1314. <KeepParameterValues>False</KeepParameterValues>
  1315. <LibraryPath>Bond Graph\I.emx</LibraryPath>
  1316. <TimeStamp>2007-9-25 12:2:12</TimeStamp>
  1317. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1318. </Description>';
  1319. type I
  1320. ports
  1321. power in p [6,1];
  1322. signal out state [6,1];
  1323. restrictions
  1324. causality preferred in p;
  1325. parameters
  1326. real m = 0.00455;
  1327. real I[3,1] = [1.6399999999999998e-6; 4.7e-8; 1.61e-6];
  1328. end;
  1329. icon bg top
  1330. figures
  1331. text 'I' 472 256 color 0 18 bold;
  1332. end;
  1333. implementation eq
  1334. variables
  1335. real II[6,6]; //Inertial tensor
  1336. equations
  1337. II = [I[1],0, 0, 0, 0, 0;
  1338. 0, I[2],0, 0, 0, 0;
  1339. 0, 0, I[3],0, 0, 0;
  1340. 0, 0, 0, m, 0, 0;
  1341. 0, 0, 0, 0, m, 0;
  1342. 0, 0, 0, 0, 0, m];
  1343. state = int(p.e); //state = generalized momentum
  1344. p.f = inverse(II)*state;
  1345. implementation_end;
  1346. plug Hin 472 496;
  1347. plug p1 616 304;
  1348. plug Hout 616 496;
  1349. plug p 472 304;
  1350. Splitter1 544 496
  1351. description '<Description><Version>4.0</Version>
  1352. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  1353. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  1354. <IsMainModel>1</IsMainModel>
  1355. <KeepParameterValues>False</KeepParameterValues>
  1356. </Description>';
  1357. knot Splitter
  1358. ports
  1359. signal knot duplicatable out output [4,4];
  1360. signal knot in input [4,4];
  1361. end;
  1362. icon bg ellipse
  1363. figures
  1364. ellipse 540.8 492.8 547.2 499.2 color -1 fill 0;
  1365. ellipse 539.7 491.7 548.3 500.3 color -1;
  1366. terminals
  1367. input 544 496 fixed;
  1368. end;
  1369. implementation eq
  1370. equations
  1371. collect (output) = input;
  1372. implementation_end;
  1373. Ta0j 544 304
  1374. description '<Description>
  1375. <Version>4.0</Version>
  1376. <IsMainModel>1</IsMainModel>
  1377. <KeepParameterValues>False</KeepParameterValues>
  1378. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  1379. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  1380. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1381. <Description></Description>
  1382. </Description>';
  1383. knot OneJunction
  1384. ports
  1385. power knot duplicatable none p [6,1];
  1386. signal knot out flow [6,1];
  1387. restrictions
  1388. causality constraint one_out p;
  1389. end;
  1390. icon bg bottom
  1391. figures
  1392. text '1' 544 304 color 0 18 bold;
  1393. end;
  1394. implementation eq
  1395. equations
  1396. sum (direct (p.e)) = 0;
  1397. equal (collect (p.f));
  1398. flow = first (p.f);
  1399. implementation_end;
  1400. Ta0k 544 256
  1401. description '<Description>
  1402. <Version>4.0</Version>
  1403. <IsMainModel>1</IsMainModel>
  1404. <KeepParameterValues>False</KeepParameterValues>
  1405. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  1406. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  1407. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1408. <Description></Description>
  1409. </Description>';
  1410. knot OneJunction
  1411. ports
  1412. power knot duplicatable none p [6,1];
  1413. signal knot out flow [6,1];
  1414. restrictions
  1415. causality constraint one_out p;
  1416. end;
  1417. icon bg top
  1418. figures
  1419. text '1' 544 256 color 0 18 bold;
  1420. end;
  1421. implementation eq
  1422. equations
  1423. sum (direct (p.e)) = 0;
  1424. equal (collect (p.f));
  1425. flow = first (p.f);
  1426. implementation_end;
  1427. end;
  1428. connections
  1429. AdHi0\p2 => Ta0j\p;
  1430. Gravity\p => AdHi0\p1;
  1431. Hin -> Splitter1\input;
  1432. p <= Ta0j\p;
  1433. p1 => Ta0j\p;
  1434. Splitter1\output -> AdHi0\H;
  1435. Splitter1\output -> Hout;
  1436. Ta0j\p => Ta0k\p;
  1437. Ta0k\p => EJS\p1;
  1438. Ta0k\p => InertialTensor\p;
  1439. end;
  1440. parameterrelations
  1441. InertialTensor\I = I;
  1442. InterialTensor\m = m;
  1443. EJS\I = I;
  1444. EJS\m = m;
  1445. AdHik\COMdim = COMdim;
  1446. AdHik1\COMdim = COMdim;
  1447. Hij\dim = dim;
  1448. Gravity\m=m;parameterrelations_end;
  1449. figures
  1450. text 'b = current link (body)
  1451. a = previous link (body)
  1452. i = Body fixed frame, fixed in joint with previous link
  1453. j = Body fixed frame, fixed in joint with next link
  1454. k = Body fixed frame, principal inertial frame
  1455. 0 = inertial system
  1456. ' 288 280 color 0;
  1457. implementation_end;
  1458. Constant 168 336
  1459. description '<Description>
  1460. <Version>4.0</Version>
  1461. <IsMainModel>1</IsMainModel>
  1462. <KeepParameterValues>False</KeepParameterValues>
  1463. <LibraryPath>Signal\Sources\Constant.emx</LibraryPath>
  1464. <TimeStamp>2007-10-19 14:48:44</TimeStamp>
  1465. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1466. </Description>';
  1467. type Constant
  1468. ports
  1469. signal out output [4,4];
  1470. end;
  1471. icon bg bottom
  1472. figures
  1473. rectangle 152.1 320 183.9 352 color 0 fill 15132390;
  1474. line 156.9 331.6 178.9 331.6 color 16711680 width 2;
  1475. line 154.2 342.7 179.9 342.7 color 0;
  1476. line 156.5 326.7 156.5 345 color 0;
  1477. end;
  1478. implementation eq
  1479. equations
  1480. output = eye(4);
  1481. implementation_end;
  1482. Constant1 296 48
  1483. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1484. <LibraryPath>Signal\Sources\Constant.emx</LibraryPath>
  1485. <TimeStamp>2007-10-19 14:48:44</TimeStamp>
  1486. </Description>';
  1487. type Constant
  1488. ports
  1489. signal out output;
  1490. end;
  1491. icon bg bottom
  1492. figures
  1493. rectangle 280.1 32 311.9 64 color 0 fill 15132390;
  1494. line 284.9 43.6 306.9 43.6 color 16711680 width 2;
  1495. line 282.2 54.7 307.9 54.7 color 0;
  1496. line 284.5 38.7 284.5 57 color 0;
  1497. end;
  1498. implementation eq
  1499. parameters
  1500. real C = 1.0; // output value
  1501. equations
  1502. output = C;
  1503. implementation_end;
  1504. Constant2 480 688
  1505. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  1506. <LibraryPath>Signal\Sources\Constant.emx</LibraryPath>
  1507. <TimeStamp>2007-10-19 14:48:44</TimeStamp>
  1508. </Description>';
  1509. type Constant
  1510. ports
  1511. signal out output;
  1512. end;
  1513. icon bg bottom
  1514. figures
  1515. rectangle 464.1 672 495.9 704 color 0 fill 15132390;
  1516. line 468.9 683.6 490.9 683.6 color 16711680 width 2;
  1517. line 466.2 694.7 491.9 694.7 color 0;
  1518. line 468.5 678.7 468.5 697 color 0;
  1519. end;
  1520. implementation eq
  1521. parameters
  1522. real C = 1.0; // output value
  1523. equations
  1524. output = C;
  1525. implementation_end;
  1526. Joint 384.1 502
  1527. description '<Information>
  1528. <Description>
  1529. <Version>4.8</Version>
  1530. <IsMainModel>1</IsMainModel>
  1531. <KeepParameterValues>False</KeepParameterValues>
  1532. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1533. <LibraryPath>Bond Graph\MR\joint-v2.emx</LibraryPath>
  1534. <TimeStamp>2020-7-17 15:47:03</TimeStamp>
  1535. </Description>
  1536. </Information>';
  1537. type 'Submodel-rotz'
  1538. ports
  1539. power out p [6,1];
  1540. power in p1;
  1541. power in p2 [6,1];
  1542. signal in Hin [4,4];
  1543. signal out Hout [4,4];
  1544. end;
  1545. icon bg bottom
  1546. figures
  1547. rectangle 352.2 464 416 540 color 0 fill 14745599;
  1548. text 'Joint' 384 496 color 0;
  1549. terminals
  1550. p 352 480 fixed;
  1551. p1 384 464 fixed;
  1552. p2 416 480 fixed;
  1553. Hin 352 528 fixed;
  1554. Hout 416 528 fixed;
  1555. end;
  1556. implementation bg
  1557. submodels
  1558. AdHji 416 328
  1559. description '<Description>
  1560. <Version>4.0</Version>
  1561. <IsMainModel>1</IsMainModel>
  1562. <KeepParameterValues>False</KeepParameterValues>
  1563. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  1564. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  1565. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1566. </Description>';
  1567. type MTF
  1568. ports
  1569. power out p1 [6,1];
  1570. power in p2 [6,1];
  1571. signal in H [4,4];
  1572. restrictions
  1573. causality constraint not_equal p1 p2;
  1574. end;
  1575. icon bg bottom
  1576. figures
  1577. text 'MTF' 416 328 color 0 18 bold;
  1578. end;
  1579. implementation eq
  1580. equations
  1581. p2.e = transpose(Adjoint(H)) * p1.e;
  1582. p1.f = Adjoint(H) * p2.f;implementation_end;
  1583. JointType 232 216
  1584. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><AllowLibraryUpdate>True</AllowLibraryUpdate></Description><Attributes><GlobalRelations>parameters
  1585. real joint = 3;</GlobalRelations></Attributes></Information>';
  1586. type Submodel
  1587. ports
  1588. mechanical in p1;
  1589. signal out output [4,4];
  1590. power out p2 [6,1];
  1591. end;
  1592. implementation bg
  1593. submodels
  1594. Integrate 320 272
  1595. description '<Description>
  1596. <Version>4.0</Version>
  1597. <IsMainModel>1</IsMainModel>
  1598. <KeepParameterValues>False</KeepParameterValues>
  1599. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  1600. <TimeStamp>2007-9-26 12:3:23</TimeStamp>
  1601. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1602. </Description>';
  1603. type Integrate
  1604. ports
  1605. signal in input;
  1606. signal out output [4,4];
  1607. parameters
  1608. real init = -2.9496;
  1609. end;
  1610. icon bg
  1611. figures
  1612. rectangle 304 256 336 288 color 0 fill 15132390;
  1613. text 'ò' 320 269.3 color 16711680 'SymbolProp BT' 21 symbol;
  1614. end;
  1615. implementation eq
  1616. parameters
  1617. real global joint;
  1618. variables
  1619. real R[3,3];
  1620. real p[3];
  1621. real q;
  1622. real qa[6];
  1623. real temp [4,4];
  1624. initialequations
  1625. qa = 0;
  1626. equations
  1627. q = -int(input,init);
  1628. qa[joint] = q;
  1629. R = dll('EulerAngles.dll','RotationMatrixFromEulXYZs',qa);
  1630. output = homogeneous(R,qa[4:6]);implementation_end;
  1631. plug p1 240 188;
  1632. plug output 320 368;
  1633. plug p2 240 412;
  1634. OneJunction2 240 271.9
  1635. description '<Information>
  1636. <Description>
  1637. <Version>4.2</Version>
  1638. <IsMainModel>1</IsMainModel>
  1639. <KeepParameterValues>False</KeepParameterValues>
  1640. <LibraryPath>Bond Graph\FlowSensor.emx</LibraryPath>
  1641. <TimeStamp>2011-11-29 15:50:53</TimeStamp>
  1642. </Description>
  1643. </Information>';
  1644. knot FlowSensor
  1645. ports
  1646. mechanical knot in p1 [1];
  1647. power knot out p2 [1];
  1648. signal knot out flow [1];
  1649. restrictions
  1650. causality constraint not_equal p1 p2;
  1651. end;
  1652. icon bg ellipse
  1653. figures
  1654. ellipse 233.1 264.8 246.9 279.1 color 0 fill 16777215;
  1655. text 'f' 240 271.2 color 0;
  1656. end;
  1657. implementation eq
  1658. equations
  1659. p2.f = p1.f;
  1660. p1.e = p2.e;
  1661. flow = p1.f;
  1662. implementation_end;
  1663. uTbai 240 328
  1664. description '<Description>
  1665. <Version>4.0</Version>
  1666. <IsMainModel>1</IsMainModel>
  1667. <KeepParameterValues>False</KeepParameterValues>
  1668. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  1669. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  1670. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1671. </Description>';
  1672. type TF
  1673. ports
  1674. power in p1;
  1675. power out p2 [6,1];
  1676. restrictions
  1677. causality constraint not_equal p1 p2;
  1678. causality fixed in p1;
  1679. causality fixed out p2;
  1680. parameters
  1681. real Cconstraint = 1.0e-4;
  1682. real Rconstraint = 1000.0;
  1683. end;
  1684. icon bg left
  1685. figures
  1686. text 'TF' 240 328 color 0 18 bold;
  1687. end;
  1688. implementation eq
  1689. parameters
  1690. real global joint;
  1691. variables
  1692. real i;
  1693. real state[6];
  1694. equations
  1695. /*p2.e[1] = (Rconstraint*-p2.f[1] + int(-p2.f[1])/Cconstraint);
  1696. p2.e[2] = (Rconstraint*-p2.f[2] + int(-p2.f[2])/Cconstraint);
  1697. p2.e[3] = p1.e;
  1698. p2.e[4] = (Rconstraint*-p2.f[4] + int(-p2.f[4])/Cconstraint);
  1699. p2.e[5] = (Rconstraint*-p2.f[5] + int(-p2.f[5])/Cconstraint);
  1700. p2.e[6] = (Rconstraint*-p2.f[6] + int(-p2.f[6])/Cconstraint);
  1701. p1.f = p2.f[3];*/
  1702. state = int(p2.f);
  1703. for i = 1 to 6 do
  1704. if i == joint then
  1705. p1.f = p2.f[i];
  1706. p2.e[i] = p1.e;
  1707. else
  1708. p2.e[i] = (Rconstraint*-p2.f[i] + -state[i]/Cconstraint);
  1709. end;
  1710. end;
  1711. implementation_end;
  1712. end;
  1713. connections
  1714. Integrate\output -> output;
  1715. OneJunction2\flow -> Integrate\input;
  1716. OneJunction2\p2 => uTbai\p1;
  1717. p1 => OneJunction2\p1;
  1718. uTbai\p2 => p2;
  1719. end;
  1720. implementation_end;
  1721. MatrixMul 312 480
  1722. description '<Description>
  1723. <Version>4.0</Version>
  1724. <IsMainModel>1</IsMainModel>
  1725. <KeepParameterValues>False</KeepParameterValues>
  1726. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  1727. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  1728. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1729. </Description>';
  1730. type Gain
  1731. ports
  1732. signal in input1 [4,4];
  1733. signal out output [4,4];
  1734. signal in input2 [4,4];
  1735. end;
  1736. icon bg bottom
  1737. figures
  1738. rectangle 296.1 464 327.9 496 color 0 fill 15132390;
  1739. text 'X' 312 480 color 16711680 16 bold;
  1740. end;
  1741. implementation eq
  1742. variables
  1743. real temp[4,4];
  1744. equations
  1745. output = input2*input1;
  1746. temp = input2*input1; implementation_end;
  1747. plug p 104 328;
  1748. plug p1 232 88;
  1749. plug p2 488 328;
  1750. plug Hin 104 480;
  1751. plug Hout 496 480;
  1752. Splitter2 312 216
  1753. description '<Description><Version>4.0</Version>
  1754. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  1755. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  1756. <IsMainModel>1</IsMainModel>
  1757. <KeepParameterValues>False</KeepParameterValues>
  1758. </Description>';
  1759. knot Splitter
  1760. ports
  1761. signal knot duplicatable out output [4,4];
  1762. signal knot in input [4,4];
  1763. end;
  1764. icon bg ellipse
  1765. figures
  1766. ellipse 308.8 212.8 315.2 219.2 color -1 fill 0;
  1767. ellipse 307.7 211.7 316.3 220.3 color -1;
  1768. terminals
  1769. input 312 216 fixed;
  1770. end;
  1771. implementation eq
  1772. equations
  1773. collect (output) = input;
  1774. implementation_end;
  1775. Wbai 232 328
  1776. description '<Description>
  1777. <Version>4.0</Version>
  1778. <IsMainModel>1</IsMainModel>
  1779. <KeepParameterValues>False</KeepParameterValues>
  1780. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  1781. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  1782. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1783. </Description>';
  1784. knot ZeroJunction
  1785. ports
  1786. power knot duplicatable none p [6,1];
  1787. signal knot out effort [6,1];
  1788. restrictions
  1789. causality constraint one_in p;
  1790. end;
  1791. icon bg bottom
  1792. figures
  1793. text '0' 232 328 color 0 18 bold;
  1794. end;
  1795. implementation eq
  1796. equations
  1797. sum (direct (p.f)) = 0;
  1798. equal (collect (p.e));
  1799. effort = first (p.e);
  1800. implementation_end;
  1801. end;
  1802. connections
  1803. Hin -> MatrixMul\input2;
  1804. JointType\output -> Splitter2\input;
  1805. JointType\p2 => Wbai\p;
  1806. MatrixMul\output -> Hout;
  1807. p <= Wbai\p;
  1808. p1 => JointType\p1;
  1809. p2 => AdHji\p2;
  1810. Splitter2\output -> AdHji\H 416 216;
  1811. Splitter2\output -> MatrixMul\input1;
  1812. Wbai\p <= AdHji\p1;
  1813. end;
  1814. parameterrelations
  1815. EndstopMin\Rendstop = Rendstop;
  1816. EndstopMin\Cendstop = Cendstop;
  1817. EndstopMin\InitialPos = InitialPos;
  1818. EndstopMin\EndstopPos = MinEndstopPos;
  1819. EndstopMax\Rendstop = Rendstop;
  1820. EndstopMax\Cendstop = Cendstop;
  1821. EndstopMax\InitialPos = InitialPos;
  1822. EndstopMax\EndstopPos = MaxEndstopPos;
  1823. Rjoint\Rjoint= Rjoint;
  1824. Integrate\init = InitialPos;
  1825. uTbai\Rconstraint = Rconstraint;
  1826. uTbai\Cconstraint = Cconstraint;
  1827. parameterrelations_end;
  1828. figures
  1829. text 'b = next link (body)
  1830. a = previous link (body)
  1831. i = Frame fixed in previous body, fixed in joint
  1832. j = Frame fixed in next body, fixed in joint
  1833. ' 672 392 color 0;
  1834. implementation_end;
  1835. Joint1 728.1 502
  1836. description '<Information>
  1837. <Description>
  1838. <Version>4.8</Version>
  1839. <IsMainModel>1</IsMainModel>
  1840. <KeepParameterValues>False</KeepParameterValues>
  1841. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1842. <LibraryPath>Bond Graph\MR\joint-v2.emx</LibraryPath>
  1843. <TimeStamp>2020-7-17 14:55:32</TimeStamp>
  1844. </Description>
  1845. </Information>';
  1846. type 'Submodel-rotz'
  1847. ports
  1848. power out p [6,1];
  1849. power in p1;
  1850. power in p2 [6,1];
  1851. signal in Hin [4,4];
  1852. signal out Hout [4,4];
  1853. signal out q;
  1854. end;
  1855. icon bg bottom
  1856. figures
  1857. rectangle 696.2 464 760 540 color 0 fill 14745599;
  1858. text 'Joint' 728 496 color 0;
  1859. terminals
  1860. p 696 480 fixed;
  1861. p1 728 464 fixed;
  1862. p2 760 480 fixed;
  1863. Hin 696 528 fixed;
  1864. Hout 760 528 fixed;
  1865. end;
  1866. implementation bg
  1867. submodels
  1868. AdHji 424 424
  1869. description '<Description>
  1870. <Version>4.0</Version>
  1871. <IsMainModel>1</IsMainModel>
  1872. <KeepParameterValues>False</KeepParameterValues>
  1873. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  1874. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  1875. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1876. </Description>';
  1877. type MTF
  1878. ports
  1879. power out p1 [6,1];
  1880. power in p2 [6,1];
  1881. signal in H [4,4];
  1882. restrictions
  1883. causality constraint not_equal p1 p2;
  1884. end;
  1885. icon bg bottom
  1886. figures
  1887. text 'MTF' 424 424 color 0 18 bold;
  1888. end;
  1889. implementation eq
  1890. equations
  1891. p2.e = transpose(Adjoint(H)) * p1.e;
  1892. p1.f = Adjoint(H) * p2.f;implementation_end;
  1893. JointType 240 312
  1894. description '<Information><Description><Version>4.8</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues><AllowLibraryUpdate>True</AllowLibraryUpdate></Description><Attributes><GlobalRelations>parameters
  1895. real joint = 3;</GlobalRelations></Attributes></Information>';
  1896. type Submodel
  1897. ports
  1898. mechanical in p1;
  1899. signal out output [4,4];
  1900. power out p2 [6,1];
  1901. signal out q;
  1902. end;
  1903. implementation bg
  1904. submodels
  1905. Integrate 320 272
  1906. description '<Description>
  1907. <Version>4.0</Version>
  1908. <IsMainModel>1</IsMainModel>
  1909. <KeepParameterValues>False</KeepParameterValues>
  1910. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  1911. <TimeStamp>2007-9-26 12:3:23</TimeStamp>
  1912. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1913. </Description>';
  1914. type Integrate
  1915. ports
  1916. signal in input;
  1917. signal out output [4,4];
  1918. signal out q;
  1919. parameters
  1920. real init = -2.9496;
  1921. end;
  1922. icon bg
  1923. figures
  1924. rectangle 304 256 336 288 color 0 fill 15132390;
  1925. text 'ò' 320 269.3 color 16711680 'SymbolProp BT' 21 symbol;
  1926. end;
  1927. implementation eq
  1928. parameters
  1929. real global joint;
  1930. variables
  1931. real R[3,3];
  1932. real p[3];
  1933. real qa[6];
  1934. real temp [4,4];
  1935. initialequations
  1936. qa = 0;
  1937. equations
  1938. q = -int(input,init);
  1939. qa[joint] = q;
  1940. R = dll('EulerAngles.dll','RotationMatrixFromEulXYZs',qa);
  1941. output = homogeneous(R,qa[4:6]);implementation_end;
  1942. plug p1 240 188;
  1943. plug output 320 416;
  1944. plug p2 240 412;
  1945. plug q 320 184;
  1946. OneJunction2 240 271.9
  1947. description '<Information>
  1948. <Description>
  1949. <Version>4.2</Version>
  1950. <IsMainModel>1</IsMainModel>
  1951. <KeepParameterValues>False</KeepParameterValues>
  1952. <LibraryPath>Bond Graph\FlowSensor.emx</LibraryPath>
  1953. <TimeStamp>2011-11-29 15:50:53</TimeStamp>
  1954. </Description>
  1955. </Information>';
  1956. knot FlowSensor
  1957. ports
  1958. mechanical knot in p1 [1];
  1959. power knot out p2 [1];
  1960. signal knot out flow [1];
  1961. restrictions
  1962. causality constraint not_equal p1 p2;
  1963. end;
  1964. icon bg ellipse
  1965. figures
  1966. ellipse 233.1 264.8 246.9 279.1 color 0 fill 16777215;
  1967. text 'f' 240 271.2 color 0;
  1968. end;
  1969. implementation eq
  1970. equations
  1971. p2.f = p1.f;
  1972. p1.e = p2.e;
  1973. flow = p1.f;
  1974. implementation_end;
  1975. uTbai 240 328
  1976. description '<Description>
  1977. <Version>4.0</Version>
  1978. <IsMainModel>1</IsMainModel>
  1979. <KeepParameterValues>False</KeepParameterValues>
  1980. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  1981. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  1982. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  1983. </Description>';
  1984. type TF
  1985. ports
  1986. power in p1;
  1987. power out p2 [6,1];
  1988. restrictions
  1989. causality constraint not_equal p1 p2;
  1990. causality fixed in p1;
  1991. causality fixed out p2;
  1992. parameters
  1993. real Cconstraint = 1.0e-4;
  1994. real Rconstraint = 1000.0;
  1995. end;
  1996. icon bg left
  1997. figures
  1998. text 'TF' 240 328 color 0 18 bold;
  1999. end;
  2000. implementation eq
  2001. parameters
  2002. real global joint;
  2003. variables
  2004. real i;
  2005. real state[6];
  2006. equations
  2007. /*p2.e[1] = (Rconstraint*-p2.f[1] + int(-p2.f[1])/Cconstraint);
  2008. p2.e[2] = (Rconstraint*-p2.f[2] + int(-p2.f[2])/Cconstraint);
  2009. p2.e[3] = p1.e;
  2010. p2.e[4] = (Rconstraint*-p2.f[4] + int(-p2.f[4])/Cconstraint);
  2011. p2.e[5] = (Rconstraint*-p2.f[5] + int(-p2.f[5])/Cconstraint);
  2012. p2.e[6] = (Rconstraint*-p2.f[6] + int(-p2.f[6])/Cconstraint);
  2013. p1.f = p2.f[3];*/
  2014. state = int(p2.f);
  2015. for i = 1 to 6 do
  2016. if i == joint then
  2017. p1.f = p2.f[i];
  2018. p2.e[i] = p1.e;
  2019. else
  2020. p2.e[i] = (Rconstraint*-p2.f[i] + -state[i]/Cconstraint);
  2021. end;
  2022. end;
  2023. implementation_end;
  2024. end;
  2025. connections
  2026. Integrate\output -> output;
  2027. Integrate\q -> q;
  2028. OneJunction2\flow -> Integrate\input;
  2029. OneJunction2\p2 => uTbai\p1;
  2030. p1 => OneJunction2\p1;
  2031. uTbai\p2 => p2;
  2032. end;
  2033. implementation_end;
  2034. MatrixMul 320 576
  2035. description '<Description>
  2036. <Version>4.0</Version>
  2037. <IsMainModel>1</IsMainModel>
  2038. <KeepParameterValues>False</KeepParameterValues>
  2039. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  2040. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  2041. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2042. </Description>';
  2043. type Gain
  2044. ports
  2045. signal in input1 [4,4];
  2046. signal out output [4,4];
  2047. signal in input2 [4,4];
  2048. end;
  2049. icon bg bottom
  2050. figures
  2051. rectangle 304.1 560 335.9 592 color 0 fill 15132390;
  2052. text 'X' 320 576 color 16711680 16 bold;
  2053. end;
  2054. implementation eq
  2055. equations
  2056. output = input2*input1; implementation_end;
  2057. plug p 112 424;
  2058. plug p1 240 40;
  2059. plug p2 496 424;
  2060. plug Hin 112 576;
  2061. plug Hout 504 576;
  2062. plug q 112 312;
  2063. Splitter2 320 312
  2064. description '<Description><Version>4.0</Version>
  2065. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  2066. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  2067. <IsMainModel>1</IsMainModel>
  2068. <KeepParameterValues>False</KeepParameterValues>
  2069. </Description>';
  2070. knot Splitter
  2071. ports
  2072. signal knot duplicatable out output [4,4];
  2073. signal knot in input [4,4];
  2074. end;
  2075. icon bg ellipse
  2076. figures
  2077. ellipse 316.8 308.8 323.2 315.2 color -1 fill 0;
  2078. ellipse 315.7 307.7 324.3 316.3 color -1;
  2079. terminals
  2080. input 320 312 fixed;
  2081. end;
  2082. implementation eq
  2083. equations
  2084. collect (output) = input;
  2085. implementation_end;
  2086. Wbai 240 424
  2087. description '<Description>
  2088. <Version>4.0</Version>
  2089. <IsMainModel>1</IsMainModel>
  2090. <KeepParameterValues>False</KeepParameterValues>
  2091. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  2092. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  2093. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2094. </Description>';
  2095. knot ZeroJunction
  2096. ports
  2097. power knot duplicatable none p [6,1];
  2098. signal knot out effort [6,1];
  2099. restrictions
  2100. causality constraint one_in p;
  2101. end;
  2102. icon bg bottom
  2103. figures
  2104. text '0' 240 424 color 0 18 bold;
  2105. end;
  2106. implementation eq
  2107. equations
  2108. sum (direct (p.f)) = 0;
  2109. equal (collect (p.e));
  2110. effort = first (p.e);
  2111. implementation_end;
  2112. end;
  2113. connections
  2114. Hin -> MatrixMul\input2;
  2115. JointType\output -> Splitter2\input;
  2116. JointType\p1 <= p1;
  2117. JointType\p2 => Wbai\p;
  2118. JointType\q -> q;
  2119. MatrixMul\output -> Hout;
  2120. p <= Wbai\p;
  2121. p2 => AdHji\p2;
  2122. Splitter2\output -> AdHji\H 424 312;
  2123. Splitter2\output -> MatrixMul\input1;
  2124. Wbai\p <= AdHji\p1;
  2125. end;
  2126. parameterrelations
  2127. EndstopMin\Rendstop = Rendstop;
  2128. EndstopMin\Cendstop = Cendstop;
  2129. EndstopMin\InitialPos = InitialPos;
  2130. EndstopMin\EndstopPos = MinEndstopPos;
  2131. EndstopMax\Rendstop = Rendstop;
  2132. EndstopMax\Cendstop = Cendstop;
  2133. EndstopMax\InitialPos = InitialPos;
  2134. EndstopMax\EndstopPos = MaxEndstopPos;
  2135. Rjoint\Rjoint= Rjoint;
  2136. Integrate\init = InitialPos;
  2137. uTbai\Rconstraint = Rconstraint;
  2138. uTbai\Cconstraint = Cconstraint;
  2139. parameterrelations_end;
  2140. figures
  2141. text 'b = next link (body)
  2142. a = previous link (body)
  2143. i = Frame fixed in previous body, fixed in joint
  2144. j = Frame fixed in next body, fixed in joint
  2145. ' 680 488 color 0;
  2146. implementation_end;
  2147. JointBase1 488.2 296
  2148. description '<Description>
  2149. <Version>4.1</Version>
  2150. <IsMainModel>1</IsMainModel>
  2151. <KeepParameterValues>False</KeepParameterValues>
  2152. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2153. <LibraryPath>Joint-roty.emx</LibraryPath>
  2154. <TimeStamp>2011-1-18 17:30:05</TimeStamp>
  2155. </Description>';
  2156. type 'Submodel-roty'
  2157. ports
  2158. power out p [6,1];
  2159. power in p1;
  2160. power in p2 [6,1];
  2161. signal in Hin [4,4];
  2162. signal out Hout [4,4];
  2163. parameters
  2164. real Rconstraint = 1000.0;
  2165. real Cconstraint = 1.0e-4;
  2166. real Rendstop = 1000.0;
  2167. real Cendstop = 1.0e-4;
  2168. real InitialPos = -1.13;
  2169. real MaxEndstopPos = 1.57;
  2170. real MinEndstopPos = -1.131;
  2171. real Rjoint = 0.1;
  2172. end;
  2173. icon bg bottom
  2174. figures
  2175. rectangle 456.5 224 520 368 color 0 fill 14745599;
  2176. text 'Joint-roty' 488.5 299 color 0;
  2177. terminals
  2178. p 456 256 fixed;
  2179. p1 487.5 224 fixed;
  2180. p2 520 256 fixed;
  2181. Hin 456 336 fixed;
  2182. Hout 520 336 fixed;
  2183. end;
  2184. implementation bg
  2185. submodels
  2186. AdHji 424 424
  2187. description '<Description>
  2188. <Version>4.0</Version>
  2189. <IsMainModel>1</IsMainModel>
  2190. <KeepParameterValues>False</KeepParameterValues>
  2191. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  2192. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  2193. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2194. </Description>';
  2195. type MTF
  2196. ports
  2197. power out p1 [6,1];
  2198. power in p2 [6,1];
  2199. signal in H [4,4];
  2200. restrictions
  2201. causality constraint not_equal p1 p2;
  2202. end;
  2203. icon bg bottom
  2204. figures
  2205. text 'MTF' 424 424 color 0 18 bold;
  2206. end;
  2207. implementation eq
  2208. equations
  2209. p2.e = transpose(Adjoint(H)) * p1.e;
  2210. p1.f = Adjoint(H) * p2.f;implementation_end;
  2211. Integrate 320 336
  2212. description '<Description>
  2213. <Version>4.0</Version>
  2214. <IsMainModel>1</IsMainModel>
  2215. <KeepParameterValues>False</KeepParameterValues>
  2216. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  2217. <TimeStamp>2007-9-26 12:3:23</TimeStamp>
  2218. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2219. </Description>';
  2220. type Integrate
  2221. ports
  2222. signal in input;
  2223. signal out output [4,4];
  2224. parameters
  2225. real init = -2.9496;
  2226. end;
  2227. icon bg
  2228. figures
  2229. rectangle 304 320 336 352 color 0 fill 15132390;
  2230. text 'ò' 320 333.3 color 16711680 'SymbolProp BT' 21 symbol;
  2231. end;
  2232. implementation eq
  2233. variables
  2234. real R[3,3];
  2235. real p[3];
  2236. real q;
  2237. equations
  2238. q = -int(input,init);
  2239. R = [ cos(q), -sin(q), 0;
  2240. sin(q), cos(q), 0;
  2241. 0, 0, 1];
  2242. p = [0;0;0];
  2243. output = homogeneous(R,p);
  2244. implementation_end;
  2245. MatrixMul 320 496
  2246. description '<Description>
  2247. <Version>4.0</Version>
  2248. <IsMainModel>1</IsMainModel>
  2249. <KeepParameterValues>False</KeepParameterValues>
  2250. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  2251. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  2252. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2253. </Description>';
  2254. type Gain
  2255. ports
  2256. signal in input1 [4,4];
  2257. signal out output [4,4];
  2258. signal in input2 [4,4];
  2259. end;
  2260. icon bg bottom
  2261. figures
  2262. rectangle 304.1 480 335.9 512 color 0 fill 15132390;
  2263. text 'X' 320 496 color 16711680 16 bold;
  2264. end;
  2265. implementation eq
  2266. equations
  2267. output = input2*input1; implementation_end;
  2268. plug p1 240 56;
  2269. plug p2 496 424;
  2270. plug Hin 112 496;
  2271. plug Hout 504 496;
  2272. plug p 112 424;
  2273. OneJunction 240 272
  2274. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2275. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2276. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  2277. </Description>';
  2278. knot OneJunction
  2279. ports
  2280. power knot duplicatable none p [1];
  2281. signal knot out flow [1];
  2282. restrictions
  2283. causality constraint one_out p;
  2284. end;
  2285. icon bg
  2286. figures
  2287. text '1' 240 272 color 0 18 bold;
  2288. end;
  2289. implementation eq
  2290. equations
  2291. sum (direct (p.e)) = 0;
  2292. equal (collect (p.f));
  2293. flow = first (p.f);
  2294. implementation_end;
  2295. Rjoint 192 272
  2296. description '<Description>
  2297. <Version>4.0</Version>
  2298. <IsMainModel>1</IsMainModel>
  2299. <KeepParameterValues>False</KeepParameterValues>
  2300. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  2301. <TimeStamp>2007-9-25 12:3:18</TimeStamp>
  2302. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2303. </Description>';
  2304. type R
  2305. ports
  2306. power in p;
  2307. parameters
  2308. real Rjoint = 0.1;
  2309. end;
  2310. icon bg bottom
  2311. figures
  2312. text 'R' 192 272 color 0 18 bold;
  2313. end;
  2314. implementation eq
  2315. equations
  2316. p.e = Rjoint * p.f;
  2317. implementation_end;
  2318. Splitter2 320 368
  2319. description '<Description><Version>4.0</Version>
  2320. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  2321. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  2322. <IsMainModel>1</IsMainModel>
  2323. <KeepParameterValues>False</KeepParameterValues>
  2324. </Description>';
  2325. knot Splitter
  2326. ports
  2327. signal knot duplicatable out output [4,4];
  2328. signal knot in input [4,4];
  2329. end;
  2330. icon bg ellipse
  2331. figures
  2332. ellipse 316.8 364.8 323.2 371.2 color -1 fill 0;
  2333. ellipse 315.7 363.7 324.3 372.3 color -1;
  2334. terminals
  2335. input 320 368 fixed;
  2336. end;
  2337. implementation eq
  2338. equations
  2339. collect (output) = input;
  2340. implementation_end;
  2341. Tbai 240 384
  2342. description '<Description>
  2343. <Version>4.0</Version>
  2344. <IsMainModel>1</IsMainModel>
  2345. <KeepParameterValues>False</KeepParameterValues>
  2346. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2347. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  2348. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2349. </Description>';
  2350. knot OneJunction
  2351. ports
  2352. power knot duplicatable none p [6,1];
  2353. signal knot out flow [6,1];
  2354. restrictions
  2355. causality constraint one_out p;
  2356. end;
  2357. icon bg left
  2358. figures
  2359. text '1' 240 384 color 0 18 bold;
  2360. end;
  2361. implementation eq
  2362. equations
  2363. sum (direct (p.e)) = 0;
  2364. equal (collect (p.f));
  2365. flow = first (p.f);
  2366. implementation_end;
  2367. uTbai 240 328
  2368. description '<Description>
  2369. <Version>4.0</Version>
  2370. <IsMainModel>1</IsMainModel>
  2371. <KeepParameterValues>False</KeepParameterValues>
  2372. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  2373. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  2374. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2375. </Description>';
  2376. type TF
  2377. ports
  2378. power in p1;
  2379. power out p2 [6,1];
  2380. restrictions
  2381. causality constraint not_equal p1 p2;
  2382. causality fixed in p1;
  2383. causality fixed out p2;
  2384. parameters
  2385. real Cconstraint = 1.0e-4;
  2386. real Rconstraint = 1000.0;
  2387. end;
  2388. icon bg left
  2389. figures
  2390. text 'TF' 240 328 color 0 18 bold;
  2391. end;
  2392. implementation eq
  2393. equations
  2394. p2.e[1] = (Rconstraint*-p2.f[1] + int(-p2.f[1])/Cconstraint);
  2395. p2.e[2] = (Rconstraint*-p2.f[2] + int(-p2.f[2])/Cconstraint);
  2396. p2.e[3] = p1.e;
  2397. p2.e[4] = (Rconstraint*-p2.f[4] + int(-p2.f[4])/Cconstraint);
  2398. p2.e[5] = (Rconstraint*-p2.f[5] + int(-p2.f[5])/Cconstraint);
  2399. p2.e[6] = (Rconstraint*-p2.f[6] + int(-p2.f[6])/Cconstraint);
  2400. p1.f = p2.f[3];
  2401. implementation_end;
  2402. Wbai 240 424
  2403. description '<Description>
  2404. <Version>4.0</Version>
  2405. <IsMainModel>1</IsMainModel>
  2406. <KeepParameterValues>False</KeepParameterValues>
  2407. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  2408. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  2409. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2410. </Description>';
  2411. knot ZeroJunction
  2412. ports
  2413. power knot duplicatable none p [6,1];
  2414. signal knot out effort [6,1];
  2415. restrictions
  2416. causality constraint one_in p;
  2417. end;
  2418. icon bg bottom
  2419. figures
  2420. text '0' 240 424 color 0 18 bold;
  2421. end;
  2422. implementation eq
  2423. equations
  2424. sum (direct (p.f)) = 0;
  2425. equal (collect (p.e));
  2426. effort = first (p.e);
  2427. implementation_end;
  2428. ZeroJunction 240 104
  2429. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2430. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  2431. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  2432. </Description>';
  2433. knot ZeroJunction
  2434. ports
  2435. power knot duplicatable none p [1];
  2436. signal knot out effort [1];
  2437. restrictions
  2438. causality constraint one_in p;
  2439. end;
  2440. icon bg
  2441. figures
  2442. text '0' 240 104 color 0 18 bold;
  2443. end;
  2444. implementation eq
  2445. equations
  2446. sum (direct (p.f)) = 0;
  2447. equal (collect (p.e));
  2448. effort = first (p.e);
  2449. implementation_end;
  2450. end;
  2451. connections
  2452. Hin -> MatrixMul\input2;
  2453. Integrate\output -> Splitter2\input;
  2454. MatrixMul\output -> Hout;
  2455. OneJunction\flow -> Integrate\input 320 272;
  2456. OneJunction\p => Rjoint\p;
  2457. OneJunction\p => uTbai\p1;
  2458. p <= Wbai\p;
  2459. p1 => ZeroJunction\p;
  2460. p2 => AdHji\p2;
  2461. Splitter2\output -> AdHji\H 424 368;
  2462. Splitter2\output -> MatrixMul\input1;
  2463. Tbai\p => Wbai\p;
  2464. uTbai\p2 => Tbai\p;
  2465. Wbai\p <= AdHji\p1;
  2466. ZeroJunction\p => OneJunction\p;
  2467. end;
  2468. parameterrelations
  2469. EndstopMin\Rendstop = Rendstop;
  2470. EndstopMin\Cendstop = Cendstop;
  2471. EndstopMin\InitialPos = InitialPos;
  2472. EndstopMin\EndstopPos = MinEndstopPos;
  2473. EndstopMax\Rendstop = Rendstop;
  2474. EndstopMax\Cendstop = Cendstop;
  2475. EndstopMax\InitialPos = InitialPos;
  2476. EndstopMax\EndstopPos = MaxEndstopPos;
  2477. Rjoint\Rjoint= Rjoint;
  2478. Integrate\init = InitialPos;
  2479. uTbai\Rconstraint = Rconstraint;
  2480. uTbai\Cconstraint = Cconstraint;parameterrelations_end;
  2481. figures
  2482. text 'b = next link (body)
  2483. a = previous link (body)
  2484. i = Frame fixed in previous body, fixed in joint
  2485. j = Frame fixed in next body, fixed in joint
  2486. ' 744 400 color 0;
  2487. implementation_end;
  2488. JointBase2 296.2 296
  2489. description '<Description>
  2490. <Version>4.1</Version>
  2491. <IsMainModel>1</IsMainModel>
  2492. <KeepParameterValues>False</KeepParameterValues>
  2493. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2494. <LibraryPath>Joint-roty.emx</LibraryPath>
  2495. <TimeStamp>2011-1-18 17:30:05</TimeStamp>
  2496. </Description>';
  2497. type 'Submodel-roty'
  2498. ports
  2499. power out p [6,1];
  2500. power in p1;
  2501. power in p2 [6,1];
  2502. signal in Hin [4,4];
  2503. signal out Hout [4,4];
  2504. parameters
  2505. real Rconstraint = 1000.0;
  2506. real Cconstraint = 1.0e-4;
  2507. real Rendstop = 1000.0;
  2508. real Cendstop = 1.0e-4;
  2509. real InitialPos = 0.0;
  2510. real MaxEndstopPos = 1.57;
  2511. real MinEndstopPos = -1.131;
  2512. real Rjoint = 0.1;
  2513. end;
  2514. icon bg bottom
  2515. figures
  2516. rectangle 264.5 224 328 368 color 0 fill 14745599;
  2517. text 'Joint-roty' 296.5 299 color 0;
  2518. terminals
  2519. p 264 256 fixed;
  2520. p1 295.5 224 fixed;
  2521. p2 328 256 fixed;
  2522. Hin 264 336 fixed;
  2523. Hout 328 336 fixed;
  2524. end;
  2525. implementation bg
  2526. submodels
  2527. AdHji 424 424
  2528. description '<Description>
  2529. <Version>4.0</Version>
  2530. <IsMainModel>1</IsMainModel>
  2531. <KeepParameterValues>False</KeepParameterValues>
  2532. <LibraryPath>Bond Graph\MTF.emx</LibraryPath>
  2533. <TimeStamp>2007-9-25 12:3:3</TimeStamp>
  2534. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2535. </Description>';
  2536. type MTF
  2537. ports
  2538. power out p1 [6,1];
  2539. power in p2 [6,1];
  2540. signal in H [4,4];
  2541. restrictions
  2542. causality constraint not_equal p1 p2;
  2543. end;
  2544. icon bg bottom
  2545. figures
  2546. text 'MTF' 424 424 color 0 18 bold;
  2547. end;
  2548. implementation eq
  2549. equations
  2550. p2.e = transpose(Adjoint(H)) * p1.e;
  2551. p1.f = Adjoint(H) * p2.f;implementation_end;
  2552. Integrate 320 328
  2553. description '<Description>
  2554. <Version>4.0</Version>
  2555. <IsMainModel>1</IsMainModel>
  2556. <KeepParameterValues>False</KeepParameterValues>
  2557. <LibraryPath>Signal\Block Diagram\Integrate.emx</LibraryPath>
  2558. <TimeStamp>2007-9-26 12:3:23</TimeStamp>
  2559. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2560. </Description>';
  2561. type Integrate
  2562. ports
  2563. signal in input;
  2564. signal out output [4,4];
  2565. parameters
  2566. real init = -2.9496;
  2567. end;
  2568. icon bg
  2569. figures
  2570. rectangle 304 312 336 344 color 0 fill 15132390;
  2571. text 'ò' 320 325.3 color 16711680 'SymbolProp BT' 21 symbol;
  2572. end;
  2573. implementation eq
  2574. variables
  2575. real R[3,3];
  2576. real p[3];
  2577. real q;
  2578. equations
  2579. q = -int(input,init);
  2580. R = [ cos(q), -sin(q), 0;
  2581. sin(q), cos(q), 0;
  2582. 0, 0, 1];
  2583. p = [0;0;0];
  2584. output = homogeneous(R,p);
  2585. implementation_end;
  2586. MatrixMul 320 496
  2587. description '<Description>
  2588. <Version>4.0</Version>
  2589. <IsMainModel>1</IsMainModel>
  2590. <KeepParameterValues>False</KeepParameterValues>
  2591. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  2592. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  2593. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2594. </Description>';
  2595. type Gain
  2596. ports
  2597. signal in input1 [4,4];
  2598. signal out output [4,4];
  2599. signal in input2 [4,4];
  2600. end;
  2601. icon bg bottom
  2602. figures
  2603. rectangle 304.1 480 335.9 512 color 0 fill 15132390;
  2604. text 'X' 320 496 color 16711680 16 bold;
  2605. end;
  2606. implementation eq
  2607. equations
  2608. output = input2*input1; implementation_end;
  2609. plug p1 240 56;
  2610. plug p2 496 424;
  2611. plug Hin 112 496;
  2612. plug Hout 504 496;
  2613. plug p 112 424;
  2614. OneJunction 240 272
  2615. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2616. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2617. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  2618. </Description>';
  2619. knot OneJunction
  2620. ports
  2621. power knot duplicatable none p [1];
  2622. signal knot out flow [1];
  2623. restrictions
  2624. causality constraint one_out p;
  2625. end;
  2626. icon bg
  2627. figures
  2628. text '1' 240 272 color 0 18 bold;
  2629. end;
  2630. implementation eq
  2631. equations
  2632. sum (direct (p.e)) = 0;
  2633. equal (collect (p.f));
  2634. flow = first (p.f);
  2635. implementation_end;
  2636. Rjoint 192 272
  2637. description '<Description>
  2638. <Version>4.0</Version>
  2639. <IsMainModel>1</IsMainModel>
  2640. <KeepParameterValues>False</KeepParameterValues>
  2641. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  2642. <TimeStamp>2007-9-25 12:3:18</TimeStamp>
  2643. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2644. </Description>';
  2645. type R
  2646. ports
  2647. power in p;
  2648. parameters
  2649. real Rjoint = 0.1;
  2650. end;
  2651. icon bg bottom
  2652. figures
  2653. text 'R' 192 272 color 0 18 bold;
  2654. end;
  2655. implementation eq
  2656. equations
  2657. p.e = Rjoint * p.f;
  2658. implementation_end;
  2659. Splitter2 320 368
  2660. description '<Description><Version>4.0</Version>
  2661. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  2662. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  2663. <IsMainModel>1</IsMainModel>
  2664. <KeepParameterValues>False</KeepParameterValues>
  2665. </Description>';
  2666. knot Splitter
  2667. ports
  2668. signal knot duplicatable out output [4,4];
  2669. signal knot in input [4,4];
  2670. end;
  2671. icon bg ellipse
  2672. figures
  2673. ellipse 316.8 364.8 323.2 371.2 color -1 fill 0;
  2674. ellipse 315.7 363.7 324.3 372.3 color -1;
  2675. terminals
  2676. input 320 368 fixed;
  2677. end;
  2678. implementation eq
  2679. equations
  2680. collect (output) = input;
  2681. implementation_end;
  2682. Tbai 240 376
  2683. description '<Description>
  2684. <Version>4.0</Version>
  2685. <IsMainModel>1</IsMainModel>
  2686. <KeepParameterValues>False</KeepParameterValues>
  2687. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  2688. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  2689. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2690. </Description>';
  2691. knot OneJunction
  2692. ports
  2693. power knot duplicatable none p [6,1];
  2694. signal knot out flow [6,1];
  2695. restrictions
  2696. causality constraint one_out p;
  2697. end;
  2698. icon bg left
  2699. figures
  2700. text '1' 240 376 color 0 18 bold;
  2701. end;
  2702. implementation eq
  2703. equations
  2704. sum (direct (p.e)) = 0;
  2705. equal (collect (p.f));
  2706. flow = first (p.f);
  2707. implementation_end;
  2708. uTbai 240 328
  2709. description '<Description>
  2710. <Version>4.0</Version>
  2711. <IsMainModel>1</IsMainModel>
  2712. <KeepParameterValues>False</KeepParameterValues>
  2713. <LibraryPath>Bond Graph\TF.emx</LibraryPath>
  2714. <TimeStamp>2007-9-25 12:4:2</TimeStamp>
  2715. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2716. </Description>';
  2717. type TF
  2718. ports
  2719. power in p1;
  2720. power out p2 [6,1];
  2721. restrictions
  2722. causality constraint not_equal p1 p2;
  2723. causality fixed in p1;
  2724. causality fixed out p2;
  2725. parameters
  2726. real Cconstraint = 1.0e-4;
  2727. real Rconstraint = 1000.0;
  2728. end;
  2729. icon bg left
  2730. figures
  2731. text 'TF' 240 328 color 0 18 bold;
  2732. end;
  2733. implementation eq
  2734. equations
  2735. p2.e[1] = (Rconstraint*-p2.f[1] + int(-p2.f[1])/Cconstraint);
  2736. p2.e[2] = (Rconstraint*-p2.f[2] + int(-p2.f[2])/Cconstraint);
  2737. p2.e[3] = p1.e;
  2738. p2.e[4] = (Rconstraint*-p2.f[4] + int(-p2.f[4])/Cconstraint);
  2739. p2.e[5] = (Rconstraint*-p2.f[5] + int(-p2.f[5])/Cconstraint);
  2740. p2.e[6] = (Rconstraint*-p2.f[6] + int(-p2.f[6])/Cconstraint);
  2741. p1.f = p2.f[3];
  2742. implementation_end;
  2743. Wbai 240 424
  2744. description '<Description>
  2745. <Version>4.0</Version>
  2746. <IsMainModel>1</IsMainModel>
  2747. <KeepParameterValues>False</KeepParameterValues>
  2748. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  2749. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  2750. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  2751. </Description>';
  2752. knot ZeroJunction
  2753. ports
  2754. power knot duplicatable none p [6,1];
  2755. signal knot out effort [6,1];
  2756. restrictions
  2757. causality constraint one_in p;
  2758. end;
  2759. icon bg bottom
  2760. figures
  2761. text '0' 240 424 color 0 18 bold;
  2762. end;
  2763. implementation eq
  2764. equations
  2765. sum (direct (p.f)) = 0;
  2766. equal (collect (p.e));
  2767. effort = first (p.e);
  2768. implementation_end;
  2769. ZeroJunction 240 160
  2770. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  2771. <LibraryPath>Bond Graph\ZeroJunction.emx</LibraryPath>
  2772. <TimeStamp>2007-9-27 9:51:43</TimeStamp>
  2773. </Description>';
  2774. knot ZeroJunction
  2775. ports
  2776. power knot duplicatable none p [1];
  2777. signal knot out effort [1];
  2778. restrictions
  2779. causality constraint one_in p;
  2780. end;
  2781. icon bg
  2782. figures
  2783. text '0' 240 160 color 0 18 bold;
  2784. end;
  2785. implementation eq
  2786. equations
  2787. sum (direct (p.f)) = 0;
  2788. equal (collect (p.e));
  2789. effort = first (p.e);
  2790. implementation_end;
  2791. end;
  2792. connections
  2793. Hin -> MatrixMul\input2;
  2794. Integrate\output -> Splitter2\input;
  2795. MatrixMul\output -> Hout;
  2796. OneJunction\flow -> Integrate\input 320 272;
  2797. OneJunction\p => Rjoint\p;
  2798. OneJunction\p => uTbai\p1;
  2799. p <= Wbai\p;
  2800. p1 => ZeroJunction\p;
  2801. p2 => AdHji\p2;
  2802. Splitter2\output -> AdHji\H 424 368;
  2803. Splitter2\output -> MatrixMul\input1;
  2804. Tbai\p => Wbai\p;
  2805. uTbai\p2 => Tbai\p;
  2806. Wbai\p <= AdHji\p1;
  2807. ZeroJunction\p => OneJunction\p;
  2808. end;
  2809. parameterrelations
  2810. EndstopMin\Rendstop = Rendstop;
  2811. EndstopMin\Cendstop = Cendstop;
  2812. EndstopMin\InitialPos = InitialPos;
  2813. EndstopMin\EndstopPos = MinEndstopPos;
  2814. EndstopMax\Rendstop = Rendstop;
  2815. EndstopMax\Cendstop = Cendstop;
  2816. EndstopMax\InitialPos = InitialPos;
  2817. EndstopMax\EndstopPos = MaxEndstopPos;
  2818. Rjoint\Rjoint= Rjoint;
  2819. Integrate\init = InitialPos;
  2820. uTbai\Rconstraint = Rconstraint;
  2821. uTbai\Cconstraint = Cconstraint;parameterrelations_end;
  2822. figures
  2823. text 'b = next link (body)
  2824. a = previous link (body)
  2825. i = Frame fixed in previous body, fixed in joint
  2826. j = Frame fixed in next body, fixed in joint
  2827. ' 744 400 color 0;
  2828. implementation_end;
  2829. Link 464 504
  2830. description '<Information>
  2831. <Description>
  2832. <Version>4.8</Version>
  2833. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\MR\link-v2.emx</LibraryPath>
  2834. <IsMainModel>1</IsMainModel>
  2835. <KeepParameterValues>False</KeepParameterValues>
  2836. <TimeStamp>2020-7-16 17:44:32</TimeStamp>
  2837. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  2838. </Description>
  2839. </Information>';
  2840. type 'Submodel-Equation'
  2841. ports
  2842. signal in Hin [4,4];
  2843. signal out Hout [4,4];
  2844. power in Pin [6,1];
  2845. power out Pout [6,1];
  2846. restrictions
  2847. causality constraint not_equal Pin Pout;
  2848. end;
  2849. icon bg bottom
  2850. figures
  2851. rectangle 432 464 496 544 color 0 fill 8454041;
  2852. text 'name' 464 488 color 0 'Clear Sans' 16;
  2853. terminals
  2854. Hin 432 528 fixed;
  2855. Hout 496 528 fixed;
  2856. Pin 496 480 fixed;
  2857. Pout 432 480 fixed;
  2858. end;
  2859. implementation eq
  2860. parameters
  2861. real offset[3]= [0.0; 0.0325; 0.0]; //coordinates of joint_1
  2862. variables
  2863. real Hab[4,4];
  2864. real AdHab[6,6];
  2865. equations
  2866. Hab = homogeneous(eye(3),offset);
  2867. AdHab = Adjoint(eye(3),offset);
  2868. Hout = Hin * Hab;
  2869. Pout.e = transpose(AdHab) * Pin.e;
  2870. Pin.f = AdHab * Pout.f;
  2871. implementation_end;
  2872. Link1 624 504
  2873. description '<Information>
  2874. <Description>
  2875. <Version>4.8</Version>
  2876. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\MR\link-v2.emx</LibraryPath>
  2877. <IsMainModel>1</IsMainModel>
  2878. <KeepParameterValues>False</KeepParameterValues>
  2879. <TimeStamp>2020-7-16 17:44:32</TimeStamp>
  2880. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  2881. </Description>
  2882. </Information>';
  2883. type 'Submodel-Equation'
  2884. ports
  2885. signal in Hin [4,4];
  2886. signal out Hout [4,4];
  2887. power in Pin [6,1];
  2888. power out Pout [6,1];
  2889. restrictions
  2890. causality constraint not_equal Pin Pout;
  2891. end;
  2892. icon bg bottom
  2893. figures
  2894. rectangle 592 464 656 544 color 0 fill 8454041;
  2895. text 'name' 624 488 color 0 'Clear Sans' 16;
  2896. terminals
  2897. Hin 592 528 fixed;
  2898. Hout 656 528 fixed;
  2899. Pin 656 480 fixed;
  2900. Pout 592 480 fixed;
  2901. end;
  2902. implementation eq
  2903. parameters
  2904. real offset[3]= [0.0; 0.0325; 0.0]; //coordinates of joint_1
  2905. variables
  2906. real Hab[4,4];
  2907. real AdHab[6,6];
  2908. equations
  2909. Hab = homogeneous(eye(3),offset);
  2910. AdHab = Adjoint(eye(3),offset);
  2911. Hout = Hin * Hab;
  2912. Pout.e = transpose(AdHab) * Pin.e;
  2913. Pin.f = AdHab * Pout.f;
  2914. implementation_end;
  2915. Link2 808 504
  2916. description '<Information>
  2917. <Description>
  2918. <Version>4.8</Version>
  2919. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\MR\link-v2.emx</LibraryPath>
  2920. <IsMainModel>1</IsMainModel>
  2921. <KeepParameterValues>False</KeepParameterValues>
  2922. <TimeStamp>2020-7-16 17:44:32</TimeStamp>
  2923. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  2924. </Description>
  2925. </Information>';
  2926. type 'Submodel-Equation'
  2927. ports
  2928. signal in Hin [4,4];
  2929. signal out Hout [4,4];
  2930. power in Pin [6,1];
  2931. power out Pout [6,1];
  2932. restrictions
  2933. causality constraint not_equal Pin Pout;
  2934. end;
  2935. icon bg bottom
  2936. figures
  2937. rectangle 776 464 840 544 color 0 fill 8454041;
  2938. text 'name' 808 488 color 0 'Clear Sans' 16;
  2939. terminals
  2940. Hin 776 528 fixed;
  2941. Hout 840 528 fixed;
  2942. Pin 840 480 fixed;
  2943. Pout 776 480 fixed;
  2944. end;
  2945. implementation eq
  2946. parameters
  2947. real offset[3]= [0; 0.025; 0]; //coordinates of joint_1
  2948. variables
  2949. real Hab[4,4];
  2950. real AdHab[6,6];
  2951. equations
  2952. Hab = homogeneous(eye(3),offset);
  2953. AdHab = Adjoint(eye(3),offset);
  2954. Hout = Hin * Hab;
  2955. Pout.e = transpose(AdHab) * Pin.e;
  2956. Pin.f = AdHab * Pout.f;
  2957. implementation_end;
  2958. Link3 968 504
  2959. description '<Information>
  2960. <Description>
  2961. <Version>4.8</Version>
  2962. <LibraryPath>Z:\home\wouter\Documents\20-sim\library\Bond Graph\MR\link-v2.emx</LibraryPath>
  2963. <IsMainModel>1</IsMainModel>
  2964. <KeepParameterValues>False</KeepParameterValues>
  2965. <TimeStamp>2020-7-16 17:44:32</TimeStamp>
  2966. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  2967. </Description>
  2968. </Information>';
  2969. type 'Submodel-Equation'
  2970. ports
  2971. signal in Hin [4,4];
  2972. signal out Hout [4,4];
  2973. power in Pin [6,1];
  2974. power out Pout [6,1];
  2975. restrictions
  2976. causality constraint not_equal Pin Pout;
  2977. end;
  2978. icon bg bottom
  2979. figures
  2980. rectangle 936 464 1000 544 color 0 fill 8454041;
  2981. text 'name' 968 488 color 0 'Clear Sans' 16;
  2982. terminals
  2983. Hin 936 528 fixed;
  2984. Hout 1000 528 fixed;
  2985. Pin 1000 480 fixed;
  2986. Pout 936 480 fixed;
  2987. end;
  2988. implementation eq
  2989. parameters
  2990. real offset[3]= [0; 0.025; 0]; //coordinates of joint_1
  2991. variables
  2992. real Hab[4,4];
  2993. real AdHab[6,6];
  2994. equations
  2995. Hab = homogeneous(eye(3),offset);
  2996. AdHab = Adjoint(eye(3),offset);
  2997. Hout = Hin * Hab;
  2998. Pout.e = transpose(AdHab) * Pin.e;
  2999. Pin.f = AdHab * Pout.f;
  3000. implementation_end;
  3001. new_joint1 672 592
  3002. description '<Description><Version>4.0</Version>
  3003. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  3004. <IsMainModel>1</IsMainModel>
  3005. <KeepParameterValues>False</KeepParameterValues>
  3006. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  3007. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  3008. </Description>';
  3009. type 'Submodel-Equation'
  3010. ports
  3011. signal in input [4,4];
  3012. signal out output;
  3013. end;
  3014. implementation eq
  3015. variables
  3016. real position[3];
  3017. real rotation[3];
  3018. real R[3,3];
  3019. equations
  3020. // start typing here
  3021. position = input[1:3,4];
  3022. rotation = [input[3,2];input[1,3];input[2,1]];
  3023. R = input[1:3,1:3];implementation_end;
  3024. new_joint2 1064 528
  3025. description '<Description><Version>4.0</Version>
  3026. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  3027. <IsMainModel>1</IsMainModel>
  3028. <KeepParameterValues>False</KeepParameterValues>
  3029. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  3030. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  3031. </Description>';
  3032. type 'Submodel-Equation'
  3033. ports
  3034. signal in input [4,4];
  3035. signal out output;
  3036. end;
  3037. implementation eq
  3038. variables
  3039. real position[3];
  3040. real rotation[3];
  3041. real R[3,3];
  3042. equations
  3043. // start typing here
  3044. position = input[1:3,4];
  3045. rotation = [input[3,2];input[1,3];input[2,1]];
  3046. R = input[1:3,1:3];implementation_end;
  3047. OneJunction 232 256
  3048. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3049. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  3050. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  3051. </Description>';
  3052. knot OneJunction
  3053. ports
  3054. power knot duplicatable none p [6,1];
  3055. signal knot out flow [6,1];
  3056. restrictions
  3057. causality constraint one_out p;
  3058. end;
  3059. icon bg
  3060. figures
  3061. text '1' 232 256 color 0 18 bold;
  3062. end;
  3063. implementation eq
  3064. equations
  3065. sum (direct (p.e)) = 0;
  3066. equal (collect (p.f));
  3067. flow = first (p.f);
  3068. implementation_end;
  3069. OneJunction1 304 480
  3070. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3071. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  3072. <TimeStamp>2007-9-27 9:51:18</TimeStamp>
  3073. </Description>';
  3074. knot OneJunction
  3075. ports
  3076. power knot duplicatable none p [6,1];
  3077. signal knot out flow [6,1];
  3078. restrictions
  3079. causality constraint one_out p;
  3080. end;
  3081. icon bg
  3082. figures
  3083. text '1' 304 480 color 0 18 bold;
  3084. end;
  3085. implementation eq
  3086. equations
  3087. sum (direct (p.e)) = 0;
  3088. equal (collect (p.f));
  3089. flow = first (p.f);
  3090. implementation_end;
  3091. ori_joint1 440 408
  3092. description '<Description><Version>4.0</Version>
  3093. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  3094. <IsMainModel>1</IsMainModel>
  3095. <KeepParameterValues>False</KeepParameterValues>
  3096. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  3097. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  3098. </Description>';
  3099. type 'Submodel-Equation'
  3100. ports
  3101. signal in input [4,4];
  3102. signal out output;
  3103. end;
  3104. implementation eq
  3105. variables
  3106. real position[3];
  3107. real rotation[3];
  3108. real R[3,3];
  3109. equations
  3110. // start typing here
  3111. position = input[1:3,4];
  3112. rotation = [input[3,2];input[1,3];input[2,1]];
  3113. R = input[1:3,1:3];
  3114. implementation_end;
  3115. ori_joint2 760 336
  3116. description '<Description><Version>4.0</Version>
  3117. <LibraryPath>Template\Submodel-Equation.emx</LibraryPath>
  3118. <IsMainModel>1</IsMainModel>
  3119. <KeepParameterValues>False</KeepParameterValues>
  3120. <TimeStamp>2007-11-1 22:32:1</TimeStamp>
  3121. <AllowLibraryUpdate>False</AllowLibraryUpdate>
  3122. </Description>';
  3123. type 'Submodel-Equation'
  3124. ports
  3125. signal in input [4,4];
  3126. signal out output;
  3127. end;
  3128. implementation eq
  3129. variables
  3130. real position[3];
  3131. real rotation[3];
  3132. real R[3,3];
  3133. equations
  3134. // start typing here
  3135. position = input[1:3,4];
  3136. rotation = [input[3,2];input[1,3];input[2,1]];
  3137. R = input[1:3,1:3];implementation_end;
  3138. Sf 160 256
  3139. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3140. <LibraryPath>Bond Graph\3D\Sf-3.emx</LibraryPath>
  3141. <TimeStamp>2007-9-25 12:11:58</TimeStamp>
  3142. </Description>';
  3143. type 'Sf-3'
  3144. ports
  3145. power out p [6,1];
  3146. restrictions
  3147. causality fixed in p;
  3148. end;
  3149. icon bg bottom
  3150. figures
  3151. text 'Sf' 160 256 color 0 18 bold;
  3152. end;
  3153. implementation eq
  3154. parameters
  3155. real flow[6,1] = 0;
  3156. variables
  3157. real effort [6];
  3158. equations
  3159. p.f = flow;
  3160. effort = p.e;
  3161. implementation_end;
  3162. Sf1 256 480
  3163. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3164. <LibraryPath>Bond Graph\3D\Sf-3.emx</LibraryPath>
  3165. <TimeStamp>2007-9-25 12:11:58</TimeStamp>
  3166. </Description>';
  3167. type 'Sf-3'
  3168. ports
  3169. power out p [6,1];
  3170. restrictions
  3171. causality fixed in p;
  3172. end;
  3173. icon bg bottom
  3174. figures
  3175. text 'Sf' 256 480 color 0 18 bold;
  3176. end;
  3177. implementation eq
  3178. parameters
  3179. real flow[6,1] = 0;
  3180. variables
  3181. real effort [6];
  3182. equations
  3183. p.f = flow;
  3184. effort = p.e;
  3185. implementation_end;
  3186. Splitter1 296 96
  3187. description '<Description><Version>4.0</Version>
  3188. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3189. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3190. <IsMainModel>1</IsMainModel>
  3191. <KeepParameterValues>False</KeepParameterValues>
  3192. </Description>';
  3193. knot Splitter
  3194. ports
  3195. signal knot duplicatable out output [1];
  3196. signal knot in input [1];
  3197. end;
  3198. icon bg ellipse
  3199. figures
  3200. ellipse 292.8 92.8 299.2 99.2 color -1 fill 0;
  3201. ellipse 291.7 91.7 300.3 100.3 color -1;
  3202. terminals
  3203. input 296 96 fixed;
  3204. end;
  3205. implementation eq
  3206. equations
  3207. collect (output) = input;
  3208. implementation_end;
  3209. Splitter2 232 336
  3210. description '<Description><Version>4.0</Version>
  3211. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3212. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3213. <IsMainModel>1</IsMainModel>
  3214. <KeepParameterValues>False</KeepParameterValues>
  3215. </Description>';
  3216. knot Splitter
  3217. ports
  3218. signal knot duplicatable out output [4,4];
  3219. signal knot in input [4,4];
  3220. end;
  3221. icon bg ellipse
  3222. figures
  3223. ellipse 228.8 332.8 235.2 339.2 color -1 fill 0;
  3224. ellipse 227.7 331.7 236.3 340.3 color -1;
  3225. terminals
  3226. input 232 336 fixed;
  3227. end;
  3228. implementation eq
  3229. equations
  3230. collect (output) = input;
  3231. implementation_end;
  3232. Splitter3 480 640
  3233. description '<Description><Version>4.0</Version>
  3234. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3235. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3236. <IsMainModel>1</IsMainModel>
  3237. <KeepParameterValues>False</KeepParameterValues>
  3238. </Description>';
  3239. knot Splitter
  3240. ports
  3241. signal knot duplicatable out output [1];
  3242. signal knot in input [1];
  3243. end;
  3244. icon bg ellipse
  3245. figures
  3246. ellipse 476.8 636.8 483.2 643.2 color -1 fill 0;
  3247. ellipse 475.7 635.7 484.3 644.3 color -1;
  3248. terminals
  3249. input 480 640 fixed;
  3250. end;
  3251. implementation eq
  3252. equations
  3253. collect (output) = input;
  3254. implementation_end;
  3255. Splitter4 232 528
  3256. description '<Description><Version>4.0</Version>
  3257. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3258. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3259. <IsMainModel>1</IsMainModel>
  3260. <KeepParameterValues>False</KeepParameterValues>
  3261. </Description>';
  3262. knot Splitter
  3263. ports
  3264. signal knot duplicatable out output [4,4];
  3265. signal knot in input [4,4];
  3266. end;
  3267. icon bg ellipse
  3268. figures
  3269. ellipse 228.8 524.8 235.2 531.2 color -1 fill 0;
  3270. ellipse 227.7 523.7 236.3 532.3 color -1;
  3271. terminals
  3272. input 232 528 fixed;
  3273. end;
  3274. implementation eq
  3275. equations
  3276. collect (output) = input;
  3277. implementation_end;
  3278. Splitter5 440 336
  3279. description '<Description><Version>4.0</Version>
  3280. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3281. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3282. <IsMainModel>1</IsMainModel>
  3283. <KeepParameterValues>False</KeepParameterValues>
  3284. </Description>';
  3285. knot Splitter
  3286. ports
  3287. signal knot duplicatable out output [4,4];
  3288. signal knot in input [4,4];
  3289. end;
  3290. icon bg ellipse
  3291. figures
  3292. ellipse 436.8 332.8 443.2 339.2 color -1 fill 0;
  3293. ellipse 435.7 331.7 444.3 340.3 color -1;
  3294. terminals
  3295. input 440 336 fixed;
  3296. end;
  3297. implementation eq
  3298. equations
  3299. collect (output) = input;
  3300. implementation_end;
  3301. Splitter6 672 528
  3302. description '<Description><Version>4.0</Version>
  3303. <LibraryPath>Signal\Block Diagram\Splitter.emx</LibraryPath>
  3304. <TimeStamp>2008-01-17 11:28:29</TimeStamp>
  3305. <IsMainModel>1</IsMainModel>
  3306. <KeepParameterValues>False</KeepParameterValues>
  3307. </Description>';
  3308. knot Splitter
  3309. ports
  3310. signal knot duplicatable out output [4,4];
  3311. signal knot in input [4,4];
  3312. end;
  3313. icon bg ellipse
  3314. figures
  3315. ellipse 668.8 524.8 675.2 531.2 color -1 fill 0;
  3316. ellipse 667.7 523.7 676.3 532.3 color -1;
  3317. terminals
  3318. input 672 528 fixed;
  3319. end;
  3320. implementation eq
  3321. equations
  3322. collect (output) = input;
  3323. implementation_end;
  3324. Submodel1 296 144
  3325. description '<Description>
  3326. <Version>4.8</Version>
  3327. <IsMainModel>1</IsMainModel>
  3328. </Description>';
  3329. type Submodel
  3330. ports
  3331. signal in input;
  3332. power out p2;
  3333. end;
  3334. implementation bg
  3335. submodels
  3336. Gain1 552 88
  3337. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3338. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  3339. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  3340. </Description>';
  3341. type Gain
  3342. ports
  3343. signal in input;
  3344. signal out output;
  3345. end;
  3346. icon bg bottom
  3347. figures
  3348. rectangle 536.1 72 567.9 104 color 0 fill 15132390;
  3349. text 'K' 552 88 color 16711680 16 bold;
  3350. end;
  3351. implementation eq
  3352. parameters
  3353. real K = 12.0; // gain
  3354. equations
  3355. output = K * input;
  3356. implementation_end;
  3357. GY 624 184
  3358. description '<Information>
  3359. <Description>
  3360. <Version>4.2</Version>
  3361. <IsMainModel>1</IsMainModel>
  3362. <KeepParameterValues>False</KeepParameterValues>
  3363. <LibraryPath>Bond Graph\GY.emx</LibraryPath>
  3364. <TimeStamp>2011-11-29 15:53:45</TimeStamp>
  3365. </Description>
  3366. </Information>';
  3367. type GY
  3368. ports
  3369. power in p1;
  3370. power out p2;
  3371. restrictions
  3372. causality constraint equal p1 p2;
  3373. end;
  3374. icon bg bottom
  3375. figures
  3376. text 'GY' 624 184 color 0 18 bold;
  3377. end;
  3378. implementation eq
  3379. parameters
  3380. real r = 0.127;
  3381. equations
  3382. p1.e = r * p2.f;
  3383. p2.e = r * p1.f;
  3384. implementation_end;
  3385. MSe 624 88
  3386. description '<Information>
  3387. <Description>
  3388. <Version>4.2</Version>
  3389. <IsMainModel>1</IsMainModel>
  3390. <KeepParameterValues>False</KeepParameterValues>
  3391. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  3392. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  3393. </Description>
  3394. </Information>';
  3395. type MSe
  3396. ports
  3397. power out p;
  3398. signal in effort;
  3399. restrictions
  3400. causality fixed out p;
  3401. end;
  3402. icon bg bottom
  3403. figures
  3404. text 'MSe' 624 88 color 0 18 bold;
  3405. end;
  3406. implementation eq
  3407. variables
  3408. real flow;
  3409. equations
  3410. p.e = effort;
  3411. flow = p.f;
  3412. implementation_end;
  3413. plug input 424 88;
  3414. plug p2 624 220;
  3415. OneJunction2 624 136
  3416. description '<Information>
  3417. <Description>
  3418. <Version>4.2</Version>
  3419. <IsMainModel>1</IsMainModel>
  3420. <KeepParameterValues>False</KeepParameterValues>
  3421. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  3422. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  3423. </Description>
  3424. </Information>';
  3425. knot OneJunction
  3426. ports
  3427. power knot duplicatable none p [1];
  3428. signal knot out flow [1];
  3429. restrictions
  3430. causality constraint one_out p;
  3431. end;
  3432. icon bg
  3433. figures
  3434. text '1' 624 136 color 0 18 bold;
  3435. end;
  3436. implementation eq
  3437. equations
  3438. sum (direct (p.e)) = 0;
  3439. equal (collect (p.f));
  3440. flow = first (p.f);
  3441. implementation_end;
  3442. R 664 136
  3443. description '<Information>
  3444. <Description>
  3445. <Version>4.2</Version>
  3446. <IsMainModel>1</IsMainModel>
  3447. <KeepParameterValues>False</KeepParameterValues>
  3448. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  3449. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  3450. </Description>
  3451. </Information>';
  3452. type R
  3453. ports
  3454. power in p;
  3455. end;
  3456. icon bg bottom
  3457. figures
  3458. text 'R' 664 136 color 0 18 bold;
  3459. end;
  3460. implementation eq
  3461. parameters
  3462. real r = 0.08;
  3463. equations
  3464. p.e = r * p.f;
  3465. implementation_end;
  3466. SignalLimiter2 488 88
  3467. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3468. <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
  3469. <TimeStamp>2007-9-26 12:47:40</TimeStamp>
  3470. </Description>';
  3471. type 'SignalLimiter-Limit'
  3472. ports
  3473. signal in input;
  3474. signal out output;
  3475. end;
  3476. icon bg bottom
  3477. figures
  3478. group
  3479. rectangle 472 72 504 104 color 0 fill 15132390;
  3480. line 487.9 76.5 487.9 101 color 0 fill 15132390;
  3481. line 475 88.2 500.7 88.2 color 0 fill 15132390;
  3482. spline 481.9 95.1 493.9 81.4 color 16711680 fill 15132390 width 2;
  3483. spline 493.3 82.2 501.9 81.8 color 16711680 fill 15132390 width 2;
  3484. spline 475 95.6 481.9 95.1 color 16711680 fill 15132390 width 2;
  3485. end;
  3486. end;
  3487. implementation eq
  3488. parameters
  3489. real maximum = 1;
  3490. real minimum = -1;
  3491. equations
  3492. output = limit (input, minimum, maximum);
  3493. implementation_end;
  3494. end;
  3495. connections
  3496. Gain1\output -> MSe\effort;
  3497. GY\p2 => p2;
  3498. input -> SignalLimiter2\input;
  3499. MSe\p => OneJunction2\p;
  3500. OneJunction2\p => GY\p1;
  3501. R\p <= OneJunction2\p;
  3502. SignalLimiter2\output -> Gain1\input;
  3503. end;
  3504. implementation_end;
  3505. Submodel2 488 96
  3506. description '<Description>
  3507. <Version>4.8</Version>
  3508. <IsMainModel>1</IsMainModel>
  3509. </Description>';
  3510. type Submodel
  3511. ports
  3512. signal in input;
  3513. power out p2;
  3514. end;
  3515. implementation bg
  3516. submodels
  3517. Gain1 552 88
  3518. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3519. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  3520. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  3521. </Description>';
  3522. type Gain
  3523. ports
  3524. signal in input;
  3525. signal out output;
  3526. end;
  3527. icon bg bottom
  3528. figures
  3529. rectangle 536.1 72 567.9 104 color 0 fill 15132390;
  3530. text 'K' 552 88 color 16711680 16 bold;
  3531. end;
  3532. implementation eq
  3533. parameters
  3534. real K = 12.0; // gain
  3535. equations
  3536. output = K * input;
  3537. implementation_end;
  3538. GY 624 184
  3539. description '<Information>
  3540. <Description>
  3541. <Version>4.2</Version>
  3542. <IsMainModel>1</IsMainModel>
  3543. <KeepParameterValues>False</KeepParameterValues>
  3544. <LibraryPath>Bond Graph\GY.emx</LibraryPath>
  3545. <TimeStamp>2011-11-29 15:53:45</TimeStamp>
  3546. </Description>
  3547. </Information>';
  3548. type GY
  3549. ports
  3550. power in p1;
  3551. power out p2;
  3552. restrictions
  3553. causality constraint equal p1 p2;
  3554. end;
  3555. icon bg bottom
  3556. figures
  3557. text 'GY' 624 184 color 0 18 bold;
  3558. end;
  3559. implementation eq
  3560. parameters
  3561. real r = 0.127;
  3562. equations
  3563. p1.e = r * p2.f;
  3564. p2.e = r * p1.f;
  3565. implementation_end;
  3566. MSe 624 88
  3567. description '<Information>
  3568. <Description>
  3569. <Version>4.2</Version>
  3570. <IsMainModel>1</IsMainModel>
  3571. <KeepParameterValues>False</KeepParameterValues>
  3572. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  3573. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  3574. </Description>
  3575. </Information>';
  3576. type MSe
  3577. ports
  3578. power out p;
  3579. signal in effort;
  3580. restrictions
  3581. causality fixed out p;
  3582. end;
  3583. icon bg bottom
  3584. figures
  3585. text 'MSe' 624 88 color 0 18 bold;
  3586. end;
  3587. implementation eq
  3588. variables
  3589. real flow;
  3590. equations
  3591. p.e = effort;
  3592. flow = p.f;
  3593. implementation_end;
  3594. plug input 424 88;
  3595. plug p2 624 220;
  3596. OneJunction2 624 136
  3597. description '<Information>
  3598. <Description>
  3599. <Version>4.2</Version>
  3600. <IsMainModel>1</IsMainModel>
  3601. <KeepParameterValues>False</KeepParameterValues>
  3602. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  3603. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  3604. </Description>
  3605. </Information>';
  3606. knot OneJunction
  3607. ports
  3608. power knot duplicatable none p [1];
  3609. signal knot out flow [1];
  3610. restrictions
  3611. causality constraint one_out p;
  3612. end;
  3613. icon bg
  3614. figures
  3615. text '1' 624 136 color 0 18 bold;
  3616. end;
  3617. implementation eq
  3618. equations
  3619. sum (direct (p.e)) = 0;
  3620. equal (collect (p.f));
  3621. flow = first (p.f);
  3622. implementation_end;
  3623. R 664 136
  3624. description '<Information>
  3625. <Description>
  3626. <Version>4.2</Version>
  3627. <IsMainModel>1</IsMainModel>
  3628. <KeepParameterValues>False</KeepParameterValues>
  3629. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  3630. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  3631. </Description>
  3632. </Information>';
  3633. type R
  3634. ports
  3635. power in p;
  3636. end;
  3637. icon bg bottom
  3638. figures
  3639. text 'R' 664 136 color 0 18 bold;
  3640. end;
  3641. implementation eq
  3642. parameters
  3643. real r = 0.08;
  3644. equations
  3645. p.e = r * p.f;
  3646. implementation_end;
  3647. SignalLimiter2 488 88
  3648. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3649. <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
  3650. <TimeStamp>2007-9-26 12:47:40</TimeStamp>
  3651. </Description>';
  3652. type 'SignalLimiter-Limit'
  3653. ports
  3654. signal in input;
  3655. signal out output;
  3656. end;
  3657. icon bg bottom
  3658. figures
  3659. group
  3660. rectangle 472 72 504 104 color 0 fill 15132390;
  3661. line 487.9 76.5 487.9 101 color 0 fill 15132390;
  3662. line 475 88.2 500.7 88.2 color 0 fill 15132390;
  3663. spline 481.9 95.1 493.9 81.4 color 16711680 fill 15132390 width 2;
  3664. spline 493.3 82.2 501.9 81.8 color 16711680 fill 15132390 width 2;
  3665. spline 475 95.6 481.9 95.1 color 16711680 fill 15132390 width 2;
  3666. end;
  3667. end;
  3668. implementation eq
  3669. parameters
  3670. real maximum = 1;
  3671. real minimum = -1;
  3672. equations
  3673. output = limit (input, minimum, maximum);
  3674. implementation_end;
  3675. end;
  3676. connections
  3677. Gain1\output -> MSe\effort;
  3678. GY\p2 => p2;
  3679. input -> SignalLimiter2\input;
  3680. MSe\p => OneJunction2\p;
  3681. OneJunction2\p => GY\p1;
  3682. R\p <= OneJunction2\p;
  3683. SignalLimiter2\output -> Gain1\input;
  3684. end;
  3685. implementation_end;
  3686. Submodel4 384 640
  3687. description '<Description>
  3688. <Version>4.8</Version>
  3689. <IsMainModel>1</IsMainModel>
  3690. </Description>';
  3691. type Submodel
  3692. ports
  3693. signal in input;
  3694. power out p2;
  3695. end;
  3696. implementation bg
  3697. submodels
  3698. Gain1 552 88
  3699. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3700. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  3701. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  3702. </Description>';
  3703. type Gain
  3704. ports
  3705. signal in input;
  3706. signal out output;
  3707. end;
  3708. icon bg bottom
  3709. figures
  3710. rectangle 536.1 72 567.9 104 color 0 fill 15132390;
  3711. text 'K' 552 88 color 16711680 16 bold;
  3712. end;
  3713. implementation eq
  3714. parameters
  3715. real K = 12.0; // gain
  3716. equations
  3717. output = K * input;
  3718. implementation_end;
  3719. GY 624 184
  3720. description '<Information>
  3721. <Description>
  3722. <Version>4.2</Version>
  3723. <IsMainModel>1</IsMainModel>
  3724. <KeepParameterValues>False</KeepParameterValues>
  3725. <LibraryPath>Bond Graph\GY.emx</LibraryPath>
  3726. <TimeStamp>2011-11-29 15:53:45</TimeStamp>
  3727. </Description>
  3728. </Information>';
  3729. type GY
  3730. ports
  3731. power in p1;
  3732. power out p2;
  3733. restrictions
  3734. causality constraint equal p1 p2;
  3735. end;
  3736. icon bg bottom
  3737. figures
  3738. text 'GY' 624 184 color 0 18 bold;
  3739. end;
  3740. implementation eq
  3741. parameters
  3742. real r = 0.127;
  3743. equations
  3744. p1.e = r * p2.f;
  3745. p2.e = r * p1.f;
  3746. implementation_end;
  3747. MSe 624 88
  3748. description '<Information>
  3749. <Description>
  3750. <Version>4.2</Version>
  3751. <IsMainModel>1</IsMainModel>
  3752. <KeepParameterValues>False</KeepParameterValues>
  3753. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  3754. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  3755. </Description>
  3756. </Information>';
  3757. type MSe
  3758. ports
  3759. power out p;
  3760. signal in effort;
  3761. restrictions
  3762. causality fixed out p;
  3763. end;
  3764. icon bg bottom
  3765. figures
  3766. text 'MSe' 624 88 color 0 18 bold;
  3767. end;
  3768. implementation eq
  3769. variables
  3770. real flow;
  3771. equations
  3772. p.e = effort;
  3773. flow = p.f;
  3774. implementation_end;
  3775. plug input 424 88;
  3776. plug p2 624 220;
  3777. OneJunction2 624 136
  3778. description '<Information>
  3779. <Description>
  3780. <Version>4.2</Version>
  3781. <IsMainModel>1</IsMainModel>
  3782. <KeepParameterValues>False</KeepParameterValues>
  3783. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  3784. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  3785. </Description>
  3786. </Information>';
  3787. knot OneJunction
  3788. ports
  3789. power knot duplicatable none p [1];
  3790. signal knot out flow [1];
  3791. restrictions
  3792. causality constraint one_out p;
  3793. end;
  3794. icon bg
  3795. figures
  3796. text '1' 624 136 color 0 18 bold;
  3797. end;
  3798. implementation eq
  3799. equations
  3800. sum (direct (p.e)) = 0;
  3801. equal (collect (p.f));
  3802. flow = first (p.f);
  3803. implementation_end;
  3804. R 664 136
  3805. description '<Information>
  3806. <Description>
  3807. <Version>4.2</Version>
  3808. <IsMainModel>1</IsMainModel>
  3809. <KeepParameterValues>False</KeepParameterValues>
  3810. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  3811. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  3812. </Description>
  3813. </Information>';
  3814. type R
  3815. ports
  3816. power in p;
  3817. end;
  3818. icon bg bottom
  3819. figures
  3820. text 'R' 664 136 color 0 18 bold;
  3821. end;
  3822. implementation eq
  3823. parameters
  3824. real r = 0.08;
  3825. equations
  3826. p.e = r * p.f;
  3827. implementation_end;
  3828. SignalLimiter2 488 88
  3829. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3830. <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
  3831. <TimeStamp>2007-9-26 12:47:40</TimeStamp>
  3832. </Description>';
  3833. type 'SignalLimiter-Limit'
  3834. ports
  3835. signal in input;
  3836. signal out output;
  3837. end;
  3838. icon bg bottom
  3839. figures
  3840. group
  3841. rectangle 472 72 504 104 color 0 fill 15132390;
  3842. line 487.9 76.5 487.9 101 color 0 fill 15132390;
  3843. line 475 88.2 500.7 88.2 color 0 fill 15132390;
  3844. spline 481.9 95.1 493.9 81.4 color 16711680 fill 15132390 width 2;
  3845. spline 493.3 82.2 501.9 81.8 color 16711680 fill 15132390 width 2;
  3846. spline 475 95.6 481.9 95.1 color 16711680 fill 15132390 width 2;
  3847. end;
  3848. end;
  3849. implementation eq
  3850. parameters
  3851. real maximum = 1;
  3852. real minimum = -1;
  3853. equations
  3854. output = limit (input, minimum, maximum);
  3855. implementation_end;
  3856. end;
  3857. connections
  3858. Gain1\output -> MSe\effort;
  3859. GY\p2 => p2;
  3860. input -> SignalLimiter2\input;
  3861. MSe\p => OneJunction2\p;
  3862. OneJunction2\p => GY\p1;
  3863. R\p <= OneJunction2\p;
  3864. SignalLimiter2\output -> Gain1\input;
  3865. end;
  3866. implementation_end;
  3867. Submodel5 728 640
  3868. description '<Description>
  3869. <Version>4.8</Version>
  3870. <IsMainModel>1</IsMainModel>
  3871. </Description>';
  3872. type Submodel
  3873. ports
  3874. signal in input;
  3875. power out p2;
  3876. end;
  3877. implementation bg
  3878. submodels
  3879. Gain1 552 88
  3880. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  3881. <LibraryPath>Signal\Block Diagram\Gain.emx</LibraryPath>
  3882. <TimeStamp>2007-9-26 12:15:12</TimeStamp>
  3883. </Description>';
  3884. type Gain
  3885. ports
  3886. signal in input;
  3887. signal out output;
  3888. end;
  3889. icon bg bottom
  3890. figures
  3891. rectangle 536.1 72 567.9 104 color 0 fill 15132390;
  3892. text 'K' 552 88 color 16711680 16 bold;
  3893. end;
  3894. implementation eq
  3895. parameters
  3896. real K = 12.0; // gain
  3897. equations
  3898. output = K * input;
  3899. implementation_end;
  3900. GY 624 184
  3901. description '<Information>
  3902. <Description>
  3903. <Version>4.2</Version>
  3904. <IsMainModel>1</IsMainModel>
  3905. <KeepParameterValues>False</KeepParameterValues>
  3906. <LibraryPath>Bond Graph\GY.emx</LibraryPath>
  3907. <TimeStamp>2011-11-29 15:53:45</TimeStamp>
  3908. </Description>
  3909. </Information>';
  3910. type GY
  3911. ports
  3912. power in p1;
  3913. power out p2;
  3914. restrictions
  3915. causality constraint equal p1 p2;
  3916. end;
  3917. icon bg bottom
  3918. figures
  3919. text 'GY' 624 184 color 0 18 bold;
  3920. end;
  3921. implementation eq
  3922. parameters
  3923. real r = 0.127;
  3924. equations
  3925. p1.e = r * p2.f;
  3926. p2.e = r * p1.f;
  3927. implementation_end;
  3928. MSe 624 88
  3929. description '<Information>
  3930. <Description>
  3931. <Version>4.2</Version>
  3932. <IsMainModel>1</IsMainModel>
  3933. <KeepParameterValues>False</KeepParameterValues>
  3934. <LibraryPath>Bond Graph\MSe.emx</LibraryPath>
  3935. <TimeStamp>2011-11-29 16:12:33</TimeStamp>
  3936. </Description>
  3937. </Information>';
  3938. type MSe
  3939. ports
  3940. power out p;
  3941. signal in effort;
  3942. restrictions
  3943. causality fixed out p;
  3944. end;
  3945. icon bg bottom
  3946. figures
  3947. text 'MSe' 624 88 color 0 18 bold;
  3948. end;
  3949. implementation eq
  3950. variables
  3951. real flow;
  3952. equations
  3953. p.e = effort;
  3954. flow = p.f;
  3955. implementation_end;
  3956. plug input 424 88;
  3957. plug p2 624 220;
  3958. OneJunction2 624 136
  3959. description '<Information>
  3960. <Description>
  3961. <Version>4.2</Version>
  3962. <IsMainModel>1</IsMainModel>
  3963. <KeepParameterValues>False</KeepParameterValues>
  3964. <LibraryPath>Bond Graph\OneJunction.emx</LibraryPath>
  3965. <TimeStamp>2011-11-29 16:17:51</TimeStamp>
  3966. </Description>
  3967. </Information>';
  3968. knot OneJunction
  3969. ports
  3970. power knot duplicatable none p [1];
  3971. signal knot out flow [1];
  3972. restrictions
  3973. causality constraint one_out p;
  3974. end;
  3975. icon bg
  3976. figures
  3977. text '1' 624 136 color 0 18 bold;
  3978. end;
  3979. implementation eq
  3980. equations
  3981. sum (direct (p.e)) = 0;
  3982. equal (collect (p.f));
  3983. flow = first (p.f);
  3984. implementation_end;
  3985. R 664 136
  3986. description '<Information>
  3987. <Description>
  3988. <Version>4.2</Version>
  3989. <IsMainModel>1</IsMainModel>
  3990. <KeepParameterValues>False</KeepParameterValues>
  3991. <LibraryPath>Bond Graph\R.emx</LibraryPath>
  3992. <TimeStamp>2011-11-29 16:35:37</TimeStamp>
  3993. </Description>
  3994. </Information>';
  3995. type R
  3996. ports
  3997. power in p;
  3998. end;
  3999. icon bg bottom
  4000. figures
  4001. text 'R' 664 136 color 0 18 bold;
  4002. end;
  4003. implementation eq
  4004. parameters
  4005. real r = 0.08;
  4006. equations
  4007. p.e = r * p.f;
  4008. implementation_end;
  4009. SignalLimiter2 488 88
  4010. description '<Description><Version>4.0</Version><IsMainModel>1</IsMainModel><KeepParameterValues>False</KeepParameterValues>
  4011. <LibraryPath>Signal\Block Diagram Non-Linear\SignalLimiter-Limit.emx</LibraryPath>
  4012. <TimeStamp>2007-9-26 12:47:40</TimeStamp>
  4013. </Description>';
  4014. type 'SignalLimiter-Limit'
  4015. ports
  4016. signal in input;
  4017. signal out output;
  4018. end;
  4019. icon bg bottom
  4020. figures
  4021. group
  4022. rectangle 472 72 504 104 color 0 fill 15132390;
  4023. line 487.9 76.5 487.9 101 color 0 fill 15132390;
  4024. line 475 88.2 500.7 88.2 color 0 fill 15132390;
  4025. spline 481.9 95.1 493.9 81.4 color 16711680 fill 15132390 width 2;
  4026. spline 493.3 82.2 501.9 81.8 color 16711680 fill 15132390 width 2;
  4027. spline 475 95.6 481.9 95.1 color 16711680 fill 15132390 width 2;
  4028. end;
  4029. end;
  4030. implementation eq
  4031. parameters
  4032. real maximum = 1;
  4033. real minimum = -1;
  4034. equations
  4035. output = limit (input, minimum, maximum);
  4036. implementation_end;
  4037. end;
  4038. connections
  4039. Gain1\output -> MSe\effort;
  4040. GY\p2 => p2;
  4041. input -> SignalLimiter2\input;
  4042. MSe\p => OneJunction2\p;
  4043. OneJunction2\p => GY\p1;
  4044. R\p <= OneJunction2\p;
  4045. SignalLimiter2\output -> Gain1\input;
  4046. end;
  4047. implementation_end;
  4048. Wtip0 760 256
  4049. description '<Description>
  4050. <Version>4.0</Version>
  4051. <IsMainModel>1</IsMainModel>
  4052. <KeepParameterValues>False</KeepParameterValues>
  4053. <LibraryPath>Bond Graph\Se.emx</LibraryPath>
  4054. <TimeStamp>2007-9-25 12:3:26</TimeStamp>
  4055. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  4056. </Description>';
  4057. type Se
  4058. ports
  4059. power out p [6,1];
  4060. restrictions
  4061. causality fixed out p;
  4062. end;
  4063. icon bg bottom
  4064. figures
  4065. text 'Se' 760 256 color 0 18 bold;
  4066. end;
  4067. implementation eq
  4068. parameters
  4069. real effort = 0.0;
  4070. variables
  4071. real flow[6];
  4072. equations
  4073. p.e = effort;
  4074. flow = p.f;
  4075. implementation_end;
  4076. Wtip1 1064 480
  4077. description '<Description>
  4078. <Version>4.0</Version>
  4079. <IsMainModel>1</IsMainModel>
  4080. <KeepParameterValues>False</KeepParameterValues>
  4081. <LibraryPath>Bond Graph\Se.emx</LibraryPath>
  4082. <TimeStamp>2007-9-25 12:3:26</TimeStamp>
  4083. <AllowLibraryUpdate>True</AllowLibraryUpdate>
  4084. </Description>';
  4085. type Se
  4086. ports
  4087. power out p [6,1];
  4088. restrictions
  4089. causality fixed out p;
  4090. end;
  4091. icon bg bottom
  4092. figures
  4093. text 'Se' 1064 480 color 0 18 bold;
  4094. end;
  4095. implementation eq
  4096. parameters
  4097. real effort = 0.0;
  4098. variables
  4099. real flow[6];
  4100. equations
  4101. p.e = effort;
  4102. flow = p.f;
  4103. implementation_end;
  4104. end;
  4105. connections
  4106. Base\Hout -> Splitter5\input;
  4107. Base\p => JointBase2\p2;
  4108. Base1\Hout -> ori_joint2\input;
  4109. Base1\p => JointBase1\p2;
  4110. Base2\Hout -> Link3\Hin;
  4111. Base2\p1 <= Link3\Pout;
  4112. Base3\Hout -> Link1\Hin;
  4113. Base3\p1 <= Link1\Pout;
  4114. Constant\output -> Splitter2\input;
  4115. Constant1\output -> Splitter1\input;
  4116. Constant2\output -> Splitter3\input;
  4117. Joint\Hout -> Link\Hin;
  4118. Joint\p2 <= Link\Pout;
  4119. Joint1\Hout -> Link2\Hin;
  4120. Joint1\p2 <= Link2\Pout;
  4121. JointBase1\Hout -> Base1\Hin;
  4122. JointBase1\p => Base\p1;
  4123. JointBase2\Hout -> Base\Hin;
  4124. JointBase2\p => OneJunction\p;
  4125. Link\Hout -> Base3\Hin;
  4126. Link\Pin <= Base3\p;
  4127. Link1\Hout -> Splitter6\input;
  4128. Link1\Pin <= Joint1\p;
  4129. Link2\Hout -> Base2\Hin;
  4130. Link2\Pin <= Base2\p;
  4131. Link3\Hout -> new_joint2\input;
  4132. Link3\Pin <= Wtip1\p;
  4133. OneJunction\p <= Sf\p;
  4134. OneJunction1\p <= Joint\p;
  4135. OneJunction1\p <= Sf1\p;
  4136. Splitter1\output -> Submodel1\input;
  4137. Splitter1\output -> Submodel2\input;
  4138. Splitter2\output -> JointBase2\Hin;
  4139. Splitter2\output -> Splitter4\input;
  4140. Splitter3\output -> Submodel4\input;
  4141. Splitter3\output -> Submodel5\input;
  4142. Splitter4\output -> Joint\Hin;
  4143. Splitter5\output -> JointBase1\Hin;
  4144. Splitter5\output -> ori_joint1\input;
  4145. Splitter6\output -> Joint1\Hin;
  4146. Splitter6\output -> new_joint1\input;
  4147. Submodel1\p2 => JointBase2\p1;
  4148. Submodel2\p2 => JointBase1\p1;
  4149. Submodel4\p2 => Joint\p1;
  4150. Submodel5\p2 => Joint1\p1;
  4151. Wtip0\p => Base1\p1;
  4152. end;
  4153. implementation_end;
  4154. ]]>
  4155. </Sidops>
  4156. </Model>
  4157. <Experiments>
  4158. <DefaultExperiment><![CDATA[Experiment 1]]>
  4159. </DefaultExperiment>
  4160. <Experiment>
  4161. <Name>Experiment 1</Name>
  4162. <CreatedBy></CreatedBy>
  4163. <Info></Info>
  4164. <ExpData>
  4165. <VersionNumber>4.8</VersionNumber>
  4166. <ModelProperties>
  4167. <ModelProperty section="tools\graph editor" entry="debugMode" value="0"/>
  4168. </ModelProperties>
  4169. <Variables>
  4170. <Constants>
  4171. </Constants>
  4172. <Parameters>
  4173. </Parameters>
  4174. <Initials>
  4175. <Variable>
  4176. <Name>Base1\InertialTensor\state_initial</Name>
  4177. <Rows>6</Rows>
  4178. <Columns>1</Columns>
  4179. <Value>0 0 0 0 0 0</Value>
  4180. </Variable>
  4181. <Variable>
  4182. <Name>Base2\InertialTensor\state_initial</Name>
  4183. <Rows>6</Rows>
  4184. <Columns>1</Columns>
  4185. <Value>0 0 0 0 0 0</Value>
  4186. </Variable>
  4187. <Variable>
  4188. <Name>Base3\InertialTensor\state_initial</Name>
  4189. <Rows>6</Rows>
  4190. <Columns>1</Columns>
  4191. <Value>0 0 0 0 0 0</Value>
  4192. </Variable>
  4193. <Variable>
  4194. <Name>Base\InertialTensor\state_initial</Name>
  4195. <Rows>6</Rows>
  4196. <Columns>1</Columns>
  4197. <Value>0 0 0 0 0 0</Value>
  4198. </Variable>
  4199. <Variable>
  4200. <Name>Joint1\JointType\uTbai\state_initial</Name>
  4201. <Rows>6</Rows>
  4202. <Columns>1</Columns>
  4203. <Value>0 0 0 0 0 0</Value>
  4204. </Variable>
  4205. <Variable>
  4206. <Name>Joint\JointType\uTbai\state_initial</Name>
  4207. <Rows>6</Rows>
  4208. <Columns>1</Columns>
  4209. <Value>0 0 0 0 0 0</Value>
  4210. </Variable>
  4211. <Variable>
  4212. <Name>new_state1_initial</Name>
  4213. <Value>0</Value>
  4214. </Variable>
  4215. <Variable>
  4216. <Name>new_state10_initial</Name>
  4217. <Value>0</Value>
  4218. </Variable>
  4219. <Variable>
  4220. <Name>new_state2_initial</Name>
  4221. <Value>0</Value>
  4222. </Variable>
  4223. <Variable>
  4224. <Name>new_state3_initial</Name>
  4225. <Value>0</Value>
  4226. </Variable>
  4227. <Variable>
  4228. <Name>new_state4_initial</Name>
  4229. <Value>0</Value>
  4230. </Variable>
  4231. <Variable>
  4232. <Name>new_state5_initial</Name>
  4233. <Value>0</Value>
  4234. </Variable>
  4235. <Variable>
  4236. <Name>new_state6_initial</Name>
  4237. <Value>0</Value>
  4238. </Variable>
  4239. <Variable>
  4240. <Name>new_state7_initial</Name>
  4241. <Value>0</Value>
  4242. </Variable>
  4243. <Variable>
  4244. <Name>new_state8_initial</Name>
  4245. <Value>0</Value>
  4246. </Variable>
  4247. <Variable>
  4248. <Name>new_state9_initial</Name>
  4249. <Value>0</Value>
  4250. </Variable>
  4251. <Variable>
  4252. <Name>Submodel4\R\p.f_initial</Name>
  4253. <Value>0</Value>
  4254. </Variable>
  4255. <Variable>
  4256. <Name>Submodel5\R\p.f_initial</Name>
  4257. <Value>0</Value>
  4258. </Variable>
  4259. </Initials>
  4260. </Variables>
  4261. <PlotSpecs>
  4262. <VarNames>
  4263. <VarName>time</VarName>
  4264. <VarName>ori_joint1\position[1]</VarName>
  4265. <VarName>ori_joint1\position[2]</VarName>
  4266. <VarName>ori_joint1\position[3]</VarName>
  4267. <VarName>new_joint1\position[1]</VarName>
  4268. <VarName>new_joint1\position[2]</VarName>
  4269. <VarName>new_joint1\position[3]</VarName>
  4270. <VarName>ori_joint2\position[1]</VarName>
  4271. <VarName>ori_joint2\position[2]</VarName>
  4272. <VarName>ori_joint2\position[3]</VarName>
  4273. <VarName>ori_joint1\R[1,3]</VarName>
  4274. <VarName>ori_joint1\R[2,3]</VarName>
  4275. <VarName>ori_joint1\R[3,3]</VarName>
  4276. <VarName>ori_joint1\R[1,2]</VarName>
  4277. <VarName>ori_joint1\R[2,2]</VarName>
  4278. <VarName>ori_joint1\R[3,2]</VarName>
  4279. <VarName>ori_joint2\R[1,3]</VarName>
  4280. <VarName>ori_joint2\R[2,3]</VarName>
  4281. <VarName>ori_joint2\R[3,3]</VarName>
  4282. <VarName>ori_joint2\R[1,2]</VarName>
  4283. <VarName>ori_joint2\R[2,2]</VarName>
  4284. <VarName>ori_joint2\R[3,2]</VarName>
  4285. <VarName>new_joint2\position[1]</VarName>
  4286. <VarName>new_joint2\position[2]</VarName>
  4287. <VarName>new_joint2\position[3]</VarName>
  4288. </VarNames>
  4289. <Plots>
  4290. <Plot>
  4291. <PlotType>GraphPlot</PlotType>
  4292. <BasePlot>
  4293. <PlotId>1</PlotId>
  4294. <UseWindowsBGColor>false</UseWindowsBGColor>
  4295. <BGColor>16777215</BGColor>
  4296. <PlotIsVisible>true</PlotIsVisible>
  4297. </BasePlot>
  4298. <Grid>
  4299. <DrawGrid>true</DrawGrid>
  4300. <GridColor>15780518</GridColor>
  4301. <GridBorderLineColor>12624260</GridBorderLineColor>
  4302. <GridZeroLineColor>0</GridZeroLineColor>
  4303. <XTicks>10</XTicks>
  4304. <YTicks>10</YTicks>
  4305. <ZTicks>10</ZTicks>
  4306. <Use3DLook>false</Use3DLook>
  4307. </Grid>
  4308. <PlotBGColor>16777215</PlotBGColor>
  4309. <ShowPlotTitle>true</ShowPlotTitle>
  4310. <TitlePosition>1</TitlePosition>
  4311. <PlotTitle>model</PlotTitle>
  4312. <ShowXValues>true</ShowXValues>
  4313. <Fonts>
  4314. <TitleFont>
  4315. <Name>Arial</Name>
  4316. <Height>12</Height>
  4317. <PitchFamily>34</PitchFamily>
  4318. <Weight>400</Weight>
  4319. <Italic>0</Italic>
  4320. <UnderLine>0</UnderLine>
  4321. <StrikeOut>0</StrikeOut>
  4322. <Color>0</Color>
  4323. </TitleFont>
  4324. <LabelFont>
  4325. <Name>Arial</Name>
  4326. <Height>12</Height>
  4327. <PitchFamily>34</PitchFamily>
  4328. <Weight>400</Weight>
  4329. <Italic>0</Italic>
  4330. <UnderLine>0</UnderLine>
  4331. <StrikeOut>0</StrikeOut>
  4332. <Color>0</Color>
  4333. </LabelFont>
  4334. <ValuesFont>
  4335. <Name>Arial</Name>
  4336. <Height>10</Height>
  4337. <PitchFamily>34</PitchFamily>
  4338. <Weight>400</Weight>
  4339. <Italic>0</Italic>
  4340. <UnderLine>0</UnderLine>
  4341. <StrikeOut>0</StrikeOut>
  4342. <Color>0</Color>
  4343. </ValuesFont>
  4344. <LegendFont>
  4345. <Name>Arial</Name>
  4346. <Height>12</Height>
  4347. <PitchFamily>34</PitchFamily>
  4348. <Weight>400</Weight>
  4349. <Italic>0</Italic>
  4350. <UnderLine>0</UnderLine>
  4351. <StrikeOut>0</StrikeOut>
  4352. <Color>0</Color>
  4353. </LegendFont>
  4354. </Fonts>
  4355. <SharedXAxis>true</SharedXAxis>
  4356. <SharedYAxis>true</SharedYAxis>
  4357. <SharedZAxis>false</SharedZAxis>
  4358. <XAxes>
  4359. <Axis>
  4360. <Minimum>0.0</Minimum>
  4361. <Maximum>1.424742322143329</Maximum>
  4362. <Linear>true</Linear>
  4363. <Scaling>3</Scaling>
  4364. <Label>time</Label>
  4365. </Axis>
  4366. </XAxes>
  4367. <YAxes>
  4368. <Axis>
  4369. <Minimum>-0.1</Minimum>
  4370. <Maximum>0.1</Maximum>
  4371. <Linear>true</Linear>
  4372. <Scaling>1</Scaling>
  4373. <Label>position[1]</Label>
  4374. </Axis>
  4375. <Axis>
  4376. <Minimum>-0.1</Minimum>
  4377. <Maximum>0.1</Maximum>
  4378. <Linear>true</Linear>
  4379. <Scaling>1</Scaling>
  4380. <Label>position[2]</Label>
  4381. </Axis>
  4382. <Axis>
  4383. <Minimum>-0.1</Minimum>
  4384. <Maximum>0.1</Maximum>
  4385. <Linear>true</Linear>
  4386. <Scaling>1</Scaling>
  4387. <Label>position[3]</Label>
  4388. </Axis>
  4389. <Axis>
  4390. <Minimum>-0.1</Minimum>
  4391. <Maximum>0.1</Maximum>
  4392. <Linear>true</Linear>
  4393. <Scaling>1</Scaling>
  4394. <Label>new position[1]</Label>
  4395. </Axis>
  4396. <Axis>
  4397. <Minimum>-0.1</Minimum>
  4398. <Maximum>0.1</Maximum>
  4399. <Linear>true</Linear>
  4400. <Scaling>1</Scaling>
  4401. <Label>new position[2]</Label>
  4402. </Axis>
  4403. <Axis>
  4404. <Minimum>-0.1</Minimum>
  4405. <Maximum>0.1</Maximum>
  4406. <Linear>true</Linear>
  4407. <Scaling>1</Scaling>
  4408. <Label>new position[3]</Label>
  4409. </Axis>
  4410. </YAxes>
  4411. <ZAxes>
  4412. </ZAxes>
  4413. <Curves>
  4414. <Curve>
  4415. <LineColor>3355111</LineColor>
  4416. <LineStyle>1</LineStyle>
  4417. <TickColor>3355111</TickColor>
  4418. <TickStyle>0</TickStyle>
  4419. <CurveVisible>true</CurveVisible>
  4420. <PixelThresshold>1</PixelThresshold>
  4421. <LineThickness>1</LineThickness>
  4422. <LineOrder>1</LineOrder>
  4423. <ShowYValues>true</ShowYValues>
  4424. <XCurveData>
  4425. <ShowUnit>true</ShowUnit>
  4426. <VarName>time</VarName>
  4427. </XCurveData>
  4428. <YCurveData>
  4429. <ShowUnit>true</ShowUnit>
  4430. <VarName>ori_joint1\position[1]</VarName>
  4431. </YCurveData>
  4432. </Curve>
  4433. <Curve>
  4434. <LineColor>6076255</LineColor>
  4435. <LineStyle>1</LineStyle>
  4436. <TickColor>6076255</TickColor>
  4437. <TickStyle>0</TickStyle>
  4438. <CurveVisible>true</CurveVisible>
  4439. <PixelThresshold>1</PixelThresshold>
  4440. <LineThickness>1</LineThickness>
  4441. <LineOrder>1</LineOrder>
  4442. <ShowYValues>true</ShowYValues>
  4443. <XCurveData>
  4444. <ShowUnit>true</ShowUnit>
  4445. <VarName>time</VarName>
  4446. </XCurveData>
  4447. <YCurveData>
  4448. <ShowUnit>true</ShowUnit>
  4449. <VarName>ori_joint1\position[2]</VarName>
  4450. </YCurveData>
  4451. </Curve>
  4452. <Curve>
  4453. <LineColor>12553035</LineColor>
  4454. <LineStyle>1</LineStyle>
  4455. <TickColor>12553035</TickColor>
  4456. <TickStyle>0</TickStyle>
  4457. <CurveVisible>true</CurveVisible>
  4458. <PixelThresshold>1</PixelThresshold>
  4459. <LineThickness>1</LineThickness>
  4460. <LineOrder>1</LineOrder>
  4461. <ShowYValues>true</ShowYValues>
  4462. <XCurveData>
  4463. <ShowUnit>true</ShowUnit>
  4464. <VarName>time</VarName>
  4465. </XCurveData>
  4466. <YCurveData>
  4467. <ShowUnit>true</ShowUnit>
  4468. <VarName>ori_joint1\position[3]</VarName>
  4469. </YCurveData>
  4470. </Curve>
  4471. <Curve>
  4472. <LineColor>15086320</LineColor>
  4473. <LineStyle>1</LineStyle>
  4474. <TickColor>15086320</TickColor>
  4475. <TickStyle>0</TickStyle>
  4476. <CurveVisible>true</CurveVisible>
  4477. <PixelThresshold>1</PixelThresshold>
  4478. <LineThickness>1</LineThickness>
  4479. <LineOrder>1</LineOrder>
  4480. <ShowYValues>true</ShowYValues>
  4481. <XCurveData>
  4482. <ShowUnit>true</ShowUnit>
  4483. <VarName>time</VarName>
  4484. </XCurveData>
  4485. <YCurveData>
  4486. <ShowUnit>true</ShowUnit>
  4487. <VarName>new_joint1\position[1]</VarName>
  4488. </YCurveData>
  4489. </Curve>
  4490. <Curve>
  4491. <LineColor>15790150</LineColor>
  4492. <LineStyle>1</LineStyle>
  4493. <TickColor>15790150</TickColor>
  4494. <TickStyle>0</TickStyle>
  4495. <CurveVisible>true</CurveVisible>
  4496. <PixelThresshold>1</PixelThresshold>
  4497. <LineThickness>1</LineThickness>
  4498. <LineOrder>1</LineOrder>
  4499. <ShowYValues>true</ShowYValues>
  4500. <XCurveData>
  4501. <ShowUnit>true</ShowUnit>
  4502. <VarName>time</VarName>
  4503. </XCurveData>
  4504. <YCurveData>
  4505. <ShowUnit>true</ShowUnit>
  4506. <VarName>new_joint1\position[2]</VarName>
  4507. </YCurveData>
  4508. </Curve>
  4509. <Curve>
  4510. <LineColor>1696255</LineColor>
  4511. <LineStyle>1</LineStyle>
  4512. <TickColor>1696255</TickColor>
  4513. <TickStyle>0</TickStyle>
  4514. <CurveVisible>true</CurveVisible>
  4515. <PixelThresshold>1</PixelThresshold>
  4516. <LineThickness>1</LineThickness>
  4517. <LineOrder>1</LineOrder>
  4518. <ShowYValues>true</ShowYValues>
  4519. <XCurveData>
  4520. <ShowUnit>true</ShowUnit>
  4521. <VarName>time</VarName>
  4522. </XCurveData>
  4523. <YCurveData>
  4524. <ShowUnit>true</ShowUnit>
  4525. <VarName>new_joint1\position[3]</VarName>
  4526. </YCurveData>
  4527. </Curve>
  4528. </Curves>
  4529. <Legenda>
  4530. <ShowLegenda>true</ShowLegenda>
  4531. <BorderPenColor>0</BorderPenColor>
  4532. <BackgroundColor>16777215</BackgroundColor>
  4533. </Legenda>
  4534. </Plot>
  4535. <Plot>
  4536. <PlotType>D3DPlot</PlotType>
  4537. <BasePlot>
  4538. <PlotId>2</PlotId>
  4539. <UseWindowsBGColor>false</UseWindowsBGColor>
  4540. <BGColor>16777215</BGColor>
  4541. <PlotIsVisible>true</PlotIsVisible>
  4542. </BasePlot>
  4543. <PlotTitle>3D Animation</PlotTitle>
  4544. <RenderQuality>137</RenderQuality>
  4545. <ShowGrid>true</ShowGrid>
  4546. <ShowFPS>false</ShowFPS>
  4547. <BackgroundColor>4294967295</BackgroundColor>
  4548. <SceneBackgroundImage>Gradients\BlueWhite.png</SceneBackgroundImage>
  4549. <ApplyTextureBackground>true</ApplyTextureBackground>
  4550. <FrameScale>1.0</FrameScale>
  4551. <FrameThickness>1.0</FrameThickness>
  4552. <MainFrame>
  4553. <Frame>
  4554. <ScaleValue>
  4555. <X>
  4556. <Value>1</Value>
  4557. </X>
  4558. <Y>
  4559. <Value>1</Value>
  4560. </Y>
  4561. <Z>
  4562. <Value>1</Value>
  4563. </Z>
  4564. </ScaleValue>
  4565. <ShowReferenceFrame>true</ShowReferenceFrame>
  4566. <Name>Reference Frame</Name>
  4567. <Position>
  4568. </Position>
  4569. <Orientation>
  4570. <Angles>
  4571. </Angles>
  4572. <OrientationType>Bryant</OrientationType>
  4573. </Orientation>
  4574. <LockX>false</LockX>
  4575. <LockY>false</LockY>
  4576. <LockZ>false</LockZ>
  4577. <LockXPitch>false</LockXPitch>
  4578. <LockYYaw>false</LockYYaw>
  4579. <LockZRoll>false</LockZRoll>
  4580. <Childs>
  4581. <Frame>
  4582. <ScaleValue>
  4583. <X>
  4584. <Value>1</Value>
  4585. </X>
  4586. <Y>
  4587. <Value>1</Value>
  4588. </Y>
  4589. <Z>
  4590. <Value>1</Value>
  4591. </Z>
  4592. </ScaleValue>
  4593. <ShowReferenceFrame>false</ShowReferenceFrame>
  4594. <Name>Default Lights and Cameras</Name>
  4595. <Position>
  4596. </Position>
  4597. <Orientation>
  4598. <Angles>
  4599. </Angles>
  4600. <OrientationType>Bryant</OrientationType>
  4601. </Orientation>
  4602. <LockX>false</LockX>
  4603. <LockY>false</LockY>
  4604. <LockZ>false</LockZ>
  4605. <LockXPitch>false</LockXPitch>
  4606. <LockYYaw>false</LockYYaw>
  4607. <LockZRoll>false</LockZRoll>
  4608. <Childs>
  4609. <Light>
  4610. <ShowReferenceFrame>false</ShowReferenceFrame>
  4611. <Name>Ambient</Name>
  4612. <Position>
  4613. </Position>
  4614. <Orientation>
  4615. <ZAxis>
  4616. <Z>
  4617. <Value>1</Value>
  4618. </Z>
  4619. </ZAxis>
  4620. <YAxis>
  4621. <Y>
  4622. <Value>1</Value>
  4623. </Y>
  4624. </YAxis>
  4625. <OrientationType>Direct3D</OrientationType>
  4626. </Orientation>
  4627. <LockX>false</LockX>
  4628. <LockY>false</LockY>
  4629. <LockZ>false</LockZ>
  4630. <LockXPitch>false</LockXPitch>
  4631. <LockYYaw>false</LockYYaw>
  4632. <LockZRoll>false</LockZRoll>
  4633. <Childs>
  4634. </Childs>
  4635. <LightType>0</LightType>
  4636. <LightColor>
  4637. <Color>
  4638. <X>
  4639. <Value>0.3</Value>
  4640. </X>
  4641. <Y>
  4642. <Value>0.3</Value>
  4643. </Y>
  4644. <Z>
  4645. <Value>0.3</Value>
  4646. </Z>
  4647. </Color>
  4648. <Offset>
  4649. </Offset>
  4650. <Multipliers>
  4651. <X>
  4652. <Value>1</Value>
  4653. </X>
  4654. <Y>
  4655. <Value>1</Value>
  4656. </Y>
  4657. <Z>
  4658. <Value>1</Value>
  4659. </Z>
  4660. </Multipliers>
  4661. <Direct3DColorRange>true</Direct3DColorRange>
  4662. </LightColor>
  4663. <AmbientLight>
  4664. <Color>
  4665. <X>
  4666. <Value>0.3</Value>
  4667. </X>
  4668. <Y>
  4669. <Value>0.3</Value>
  4670. </Y>
  4671. <Z>
  4672. <Value>0.3</Value>
  4673. </Z>
  4674. </Color>
  4675. <Offset>
  4676. </Offset>
  4677. <Multipliers>
  4678. <X>
  4679. <Value>1</Value>
  4680. </X>
  4681. <Y>
  4682. <Value>1</Value>
  4683. </Y>
  4684. <Z>
  4685. <Value>1</Value>
  4686. </Z>
  4687. </Multipliers>
  4688. <Direct3DColorRange>true</Direct3DColorRange>
  4689. </AmbientLight>
  4690. <AmbientOn>true</AmbientOn>
  4691. <DiffuseOn>false</DiffuseOn>
  4692. <SpecularOn>false</SpecularOn>
  4693. </Light>
  4694. <Light>
  4695. <ShowReferenceFrame>false</ShowReferenceFrame>
  4696. <Name>Parallel</Name>
  4697. <Position>
  4698. <X>
  4699. <Value>-3</Value>
  4700. </X>
  4701. <Y>
  4702. <Value>5</Value>
  4703. </Y>
  4704. <Z>
  4705. <Value>3</Value>
  4706. </Z>
  4707. </Position>
  4708. <Orientation>
  4709. <ZAxis>
  4710. <X>
  4711. <Value>0.457495710997814</Value>
  4712. </X>
  4713. <Y>
  4714. <Value>-0.762492851663023</Value>
  4715. </Y>
  4716. <Z>
  4717. <Value>-0.457495710997814</Value>
  4718. </Z>
  4719. </ZAxis>
  4720. <YAxis>
  4721. <X>
  4722. <Value>0.235379601434674</Value>
  4723. </X>
  4724. <Y>
  4725. <Value>-0.392299335724456</Value>
  4726. </Y>
  4727. <Z>
  4728. <Value>0.889211827642101</Value>
  4729. </Z>
  4730. </YAxis>
  4731. <OrientationType>Direct3D</OrientationType>
  4732. </Orientation>
  4733. <LockX>false</LockX>
  4734. <LockY>false</LockY>
  4735. <LockZ>false</LockZ>
  4736. <LockXPitch>false</LockXPitch>
  4737. <LockYYaw>false</LockYYaw>
  4738. <LockZRoll>false</LockZRoll>
  4739. <Childs>
  4740. </Childs>
  4741. <LightType>3</LightType>
  4742. <LightColor>
  4743. <Color>
  4744. <X>
  4745. <Value>0.5</Value>
  4746. </X>
  4747. <Y>
  4748. <Value>0.5</Value>
  4749. </Y>
  4750. <Z>
  4751. <Value>0.5</Value>
  4752. </Z>
  4753. </Color>
  4754. <Offset>
  4755. </Offset>
  4756. <Multipliers>
  4757. <X>
  4758. <Value>1</Value>
  4759. </X>
  4760. <Y>
  4761. <Value>1</Value>
  4762. </Y>
  4763. <Z>
  4764. <Value>1</Value>
  4765. </Z>
  4766. </Multipliers>
  4767. <Direct3DColorRange>true</Direct3DColorRange>
  4768. </LightColor>
  4769. <Attenuation>
  4770. <Constant>
  4771. <Value>1.0</Value>
  4772. </Constant>
  4773. <Linear>
  4774. <Value>0.0</Value>
  4775. </Linear>
  4776. <Quadratic>
  4777. <Value>0.0</Value>
  4778. </Quadratic>
  4779. </Attenuation>
  4780. <DiffuseLight>
  4781. <Color>
  4782. <X>
  4783. <Value>0.5</Value>
  4784. </X>
  4785. <Y>
  4786. <Value>0.5</Value>
  4787. </Y>
  4788. <Z>
  4789. <Value>0.5</Value>
  4790. </Z>
  4791. </Color>
  4792. <Offset>
  4793. </Offset>
  4794. <Multipliers>
  4795. <X>
  4796. <Value>1</Value>
  4797. </X>
  4798. <Y>
  4799. <Value>1</Value>
  4800. </Y>
  4801. <Z>
  4802. <Value>1</Value>
  4803. </Z>
  4804. </Multipliers>
  4805. <Direct3DColorRange>true</Direct3DColorRange>
  4806. </DiffuseLight>
  4807. <SpecularLight>
  4808. <Color>
  4809. <X>
  4810. <Value>0.5</Value>
  4811. </X>
  4812. <Y>
  4813. <Value>0.5</Value>
  4814. </Y>
  4815. <Z>
  4816. <Value>0.5</Value>
  4817. </Z>
  4818. </Color>
  4819. <Offset>
  4820. </Offset>
  4821. <Multipliers>
  4822. <X>
  4823. <Value>1</Value>
  4824. </X>
  4825. <Y>
  4826. <Value>1</Value>
  4827. </Y>
  4828. <Z>
  4829. <Value>1</Value>
  4830. </Z>
  4831. </Multipliers>
  4832. <Direct3DColorRange>true</Direct3DColorRange>
  4833. </SpecularLight>
  4834. <AmbientOn>false</AmbientOn>
  4835. <DiffuseOn>true</DiffuseOn>
  4836. <SpecularOn>true</SpecularOn>
  4837. </Light>
  4838. <Light>
  4839. <ShowReferenceFrame>false</ShowReferenceFrame>
  4840. <Name>Spot Light 1</Name>
  4841. <Position>
  4842. <X>
  4843. <Value>-3</Value>
  4844. </X>
  4845. <Y>
  4846. <Value>-5</Value>
  4847. </Y>
  4848. <Z>
  4849. <Value>1</Value>
  4850. </Z>
  4851. </Position>
  4852. <Orientation>
  4853. <ZAxis>
  4854. <X>
  4855. <Value>0.50709255283711</Value>
  4856. </X>
  4857. <Y>
  4858. <Value>0.845154254728517</Value>
  4859. </Y>
  4860. <Z>
  4861. <Value>-0.169030850945703</Value>
  4862. </Z>
  4863. </ZAxis>
  4864. <YAxis>
  4865. <X>
  4866. <Value>0.0869656553478673</Value>
  4867. </X>
  4868. <Y>
  4869. <Value>0.144942758913112</Value>
  4870. </Y>
  4871. <Z>
  4872. <Value>0.985610760609162</Value>
  4873. </Z>
  4874. </YAxis>
  4875. <OrientationType>Direct3D</OrientationType>
  4876. </Orientation>
  4877. <LockX>false</LockX>
  4878. <LockY>false</LockY>
  4879. <LockZ>false</LockZ>
  4880. <LockXPitch>false</LockXPitch>
  4881. <LockYYaw>false</LockYYaw>
  4882. <LockZRoll>false</LockZRoll>
  4883. <Childs>
  4884. </Childs>
  4885. <LightType>2</LightType>
  4886. <LightColor>
  4887. <Color>
  4888. <X>
  4889. <Value>0.5</Value>
  4890. </X>
  4891. <Y>
  4892. <Value>0.5</Value>
  4893. </Y>
  4894. <Z>
  4895. <Value>0.5</Value>
  4896. </Z>
  4897. </Color>
  4898. <Offset>
  4899. </Offset>
  4900. <Multipliers>
  4901. <X>
  4902. <Value>1</Value>
  4903. </X>
  4904. <Y>
  4905. <Value>1</Value>
  4906. </Y>
  4907. <Z>
  4908. <Value>1</Value>
  4909. </Z>
  4910. </Multipliers>
  4911. <Direct3DColorRange>true</Direct3DColorRange>
  4912. </LightColor>
  4913. <Attenuation>
  4914. <Constant>
  4915. <Value>1.0</Value>
  4916. </Constant>
  4917. <Linear>
  4918. <Value>0.05</Value>
  4919. </Linear>
  4920. <Quadratic>
  4921. <Value>0.05</Value>
  4922. </Quadratic>
  4923. </Attenuation>
  4924. <Umbra>
  4925. <Value>1.0471975511965976</Value>
  4926. </Umbra>
  4927. <Penumbra>
  4928. <Value>1.0471975511965976</Value>
  4929. </Penumbra>
  4930. <SpotExponent>0.0</SpotExponent>
  4931. <DiffuseLight>
  4932. <Color>
  4933. <X>
  4934. <Value>0.5</Value>
  4935. </X>
  4936. <Y>
  4937. <Value>0.5</Value>
  4938. </Y>
  4939. <Z>
  4940. <Value>0.5</Value>
  4941. </Z>
  4942. </Color>
  4943. <Offset>
  4944. </Offset>
  4945. <Multipliers>
  4946. <X>
  4947. <Value>1</Value>
  4948. </X>
  4949. <Y>
  4950. <Value>1</Value>
  4951. </Y>
  4952. <Z>
  4953. <Value>1</Value>
  4954. </Z>
  4955. </Multipliers>
  4956. <Direct3DColorRange>true</Direct3DColorRange>
  4957. </DiffuseLight>
  4958. <SpecularLight>
  4959. <Color>
  4960. <X>
  4961. <Value>0.5</Value>
  4962. </X>
  4963. <Y>
  4964. <Value>0.5</Value>
  4965. </Y>
  4966. <Z>
  4967. <Value>0.5</Value>
  4968. </Z>
  4969. </Color>
  4970. <Offset>
  4971. </Offset>
  4972. <Multipliers>
  4973. <X>
  4974. <Value>1</Value>
  4975. </X>
  4976. <Y>
  4977. <Value>1</Value>
  4978. </Y>
  4979. <Z>
  4980. <Value>1</Value>
  4981. </Z>
  4982. </Multipliers>
  4983. <Direct3DColorRange>true</Direct3DColorRange>
  4984. </SpecularLight>
  4985. <AmbientOn>false</AmbientOn>
  4986. <DiffuseOn>true</DiffuseOn>
  4987. <SpecularOn>true</SpecularOn>
  4988. </Light>
  4989. <Light>
  4990. <ShowReferenceFrame>false</ShowReferenceFrame>
  4991. <Name>Spot Light 2</Name>
  4992. <Position>
  4993. <X>
  4994. <Value>2</Value>
  4995. </X>
  4996. <Y>
  4997. <Value>-3</Value>
  4998. </Y>
  4999. <Z>
  5000. <Value>-1</Value>
  5001. </Z>
  5002. </Position>
  5003. <Orientation>
  5004. <ZAxis>
  5005. <X>
  5006. <Value>-0.534522483824849</Value>
  5007. </X>
  5008. <Y>
  5009. <Value>0.801783725737273</Value>
  5010. </Y>
  5011. <Z>
  5012. <Value>0.267261241912424</Value>
  5013. </Z>
  5014. </ZAxis>
  5015. <YAxis>
  5016. <X>
  5017. <Value>0.14824986333222</Value>
  5018. </X>
  5019. <Y>
  5020. <Value>-0.22237479499833</Value>
  5021. </Y>
  5022. <Z>
  5023. <Value>0.963624111659432</Value>
  5024. </Z>
  5025. </YAxis>
  5026. <OrientationType>Direct3D</OrientationType>
  5027. </Orientation>
  5028. <LockX>false</LockX>
  5029. <LockY>false</LockY>
  5030. <LockZ>false</LockZ>
  5031. <LockXPitch>false</LockXPitch>
  5032. <LockYYaw>false</LockYYaw>
  5033. <LockZRoll>false</LockZRoll>
  5034. <Childs>
  5035. </Childs>
  5036. <LightType>2</LightType>
  5037. <LightColor>
  5038. <Color>
  5039. <X>
  5040. <Value>1</Value>
  5041. </X>
  5042. <Y>
  5043. <Value>1</Value>
  5044. </Y>
  5045. <Z>
  5046. <Value>1</Value>
  5047. </Z>
  5048. </Color>
  5049. <Offset>
  5050. </Offset>
  5051. <Multipliers>
  5052. <X>
  5053. <Value>1</Value>
  5054. </X>
  5055. <Y>
  5056. <Value>1</Value>
  5057. </Y>
  5058. <Z>
  5059. <Value>1</Value>
  5060. </Z>
  5061. </Multipliers>
  5062. <Direct3DColorRange>true</Direct3DColorRange>
  5063. </LightColor>
  5064. <Attenuation>
  5065. <Constant>
  5066. <Value>1.0</Value>
  5067. </Constant>
  5068. <Linear>
  5069. <Value>0.05</Value>
  5070. </Linear>
  5071. <Quadratic>
  5072. <Value>0.05</Value>
  5073. </Quadratic>
  5074. </Attenuation>
  5075. <Umbra>
  5076. <Value>1.5707963267948966</Value>
  5077. </Umbra>
  5078. <Penumbra>
  5079. <Value>1.5707963267948966</Value>
  5080. </Penumbra>
  5081. <SpotExponent>0.0</SpotExponent>
  5082. <DiffuseLight>
  5083. <Color>
  5084. <X>
  5085. <Value>1</Value>
  5086. </X>
  5087. <Y>
  5088. <Value>1</Value>
  5089. </Y>
  5090. <Z>
  5091. <Value>1</Value>
  5092. </Z>
  5093. </Color>
  5094. <Offset>
  5095. </Offset>
  5096. <Multipliers>
  5097. <X>
  5098. <Value>1</Value>
  5099. </X>
  5100. <Y>
  5101. <Value>1</Value>
  5102. </Y>
  5103. <Z>
  5104. <Value>1</Value>
  5105. </Z>
  5106. </Multipliers>
  5107. <Direct3DColorRange>true</Direct3DColorRange>
  5108. </DiffuseLight>
  5109. <SpecularLight>
  5110. <Color>
  5111. <X>
  5112. <Value>0.5</Value>
  5113. </X>
  5114. <Y>
  5115. <Value>0.5</Value>
  5116. </Y>
  5117. <Z>
  5118. <Value>0.5</Value>
  5119. </Z>
  5120. </Color>
  5121. <Offset>
  5122. </Offset>
  5123. <Multipliers>
  5124. <X>
  5125. <Value>1</Value>
  5126. </X>
  5127. <Y>
  5128. <Value>1</Value>
  5129. </Y>
  5130. <Z>
  5131. <Value>1</Value>
  5132. </Z>
  5133. </Multipliers>
  5134. <Direct3DColorRange>true</Direct3DColorRange>
  5135. </SpecularLight>
  5136. <AmbientOn>false</AmbientOn>
  5137. <DiffuseOn>true</DiffuseOn>
  5138. <SpecularOn>true</SpecularOn>
  5139. </Light>
  5140. <Camera>
  5141. <ShowReferenceFrame>false</ShowReferenceFrame>
  5142. <Name>Camera Looking at Origin</Name>
  5143. <Position>
  5144. <X>
  5145. <Value>5.66443922345846</Value>
  5146. </X>
  5147. <Y>
  5148. <Value>-1.87918322175823</Value>
  5149. </Y>
  5150. <Z>
  5151. <Value>8.35361970698833</Value>
  5152. </Z>
  5153. </Position>
  5154. <Orientation>
  5155. <ZAxis>
  5156. <X>
  5157. <Value>-0.551742297648959</Value>
  5158. </X>
  5159. <Y>
  5160. <Value>0.183041043883461</Value>
  5161. </Y>
  5162. <Z>
  5163. <Value>-0.813680780920319</Value>
  5164. </Z>
  5165. </ZAxis>
  5166. <YAxis>
  5167. <X>
  5168. <Value>-0.77229119625168</Value>
  5169. </X>
  5170. <Y>
  5171. <Value>0.256208355506313</Value>
  5172. </Y>
  5173. <Z>
  5174. <Value>0.581311953051802</Value>
  5175. </Z>
  5176. </YAxis>
  5177. <OrientationType>Direct3D</OrientationType>
  5178. </Orientation>
  5179. <LockX>false</LockX>
  5180. <LockY>false</LockY>
  5181. <LockZ>false</LockZ>
  5182. <LockXPitch>false</LockXPitch>
  5183. <LockYYaw>false</LockYYaw>
  5184. <LockZRoll>false</LockZRoll>
  5185. <Childs>
  5186. </Childs>
  5187. <FrontPlane>0.01</FrontPlane>
  5188. <BackPlane>100.0</BackPlane>
  5189. <AutoFrontBack>true</AutoFrontBack>
  5190. <Field>0.003926990816987242</Field>
  5191. <Fieldy>45.0</Fieldy>
  5192. <PlaneLeft>-10.0</PlaneLeft>
  5193. <PlaneRight>10.0</PlaneRight>
  5194. <PlaneTop>10.0</PlaneTop>
  5195. <PlaneBottom>-10.0</PlaneBottom>
  5196. <UseLookatPosition>true</UseLookatPosition>
  5197. <LookatPosition>
  5198. </LookatPosition>
  5199. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  5200. <LookUpVector>
  5201. <Z>
  5202. <Value>1</Value>
  5203. </Z>
  5204. </LookUpVector>
  5205. <RightHand>true</RightHand>
  5206. <Perspective>true</Perspective>
  5207. <IsSelectedCamera>true</IsSelectedCamera>
  5208. </Camera>
  5209. <Camera>
  5210. <ShowReferenceFrame>false</ShowReferenceFrame>
  5211. <Name>Front(XY)-Camera</Name>
  5212. <Position>
  5213. <Z>
  5214. <Value>10</Value>
  5215. </Z>
  5216. </Position>
  5217. <Orientation>
  5218. <ZAxis>
  5219. <Z>
  5220. <Value>-1</Value>
  5221. </Z>
  5222. </ZAxis>
  5223. <YAxis>
  5224. <Y>
  5225. <Value>1</Value>
  5226. </Y>
  5227. </YAxis>
  5228. <OrientationType>Direct3D</OrientationType>
  5229. </Orientation>
  5230. <LockX>false</LockX>
  5231. <LockY>false</LockY>
  5232. <LockZ>false</LockZ>
  5233. <LockXPitch>false</LockXPitch>
  5234. <LockYYaw>false</LockYYaw>
  5235. <LockZRoll>false</LockZRoll>
  5236. <Childs>
  5237. </Childs>
  5238. <FrontPlane>0.01</FrontPlane>
  5239. <BackPlane>100.0</BackPlane>
  5240. <AutoFrontBack>true</AutoFrontBack>
  5241. <Field>9.999999999999998</Field>
  5242. <Fieldy>45.0</Fieldy>
  5243. <PlaneLeft>-9.999999999999998</PlaneLeft>
  5244. <PlaneRight>9.999999999999998</PlaneRight>
  5245. <PlaneTop>9.999999999999998</PlaneTop>
  5246. <PlaneBottom>-9.999999999999998</PlaneBottom>
  5247. <UseLookatPosition>true</UseLookatPosition>
  5248. <LookatPosition>
  5249. </LookatPosition>
  5250. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  5251. <LookUpVector>
  5252. <Y>
  5253. <Value>1</Value>
  5254. </Y>
  5255. </LookUpVector>
  5256. <RightHand>true</RightHand>
  5257. <Perspective>false</Perspective>
  5258. <IsSelectedCamera>false</IsSelectedCamera>
  5259. </Camera>
  5260. <Camera>
  5261. <ShowReferenceFrame>false</ShowReferenceFrame>
  5262. <Name>Side(YZ)-Camera</Name>
  5263. <Position>
  5264. <X>
  5265. <Value>10</Value>
  5266. </X>
  5267. </Position>
  5268. <Orientation>
  5269. <ZAxis>
  5270. <X>
  5271. <Value>-1</Value>
  5272. </X>
  5273. </ZAxis>
  5274. <YAxis>
  5275. <Z>
  5276. <Value>1</Value>
  5277. </Z>
  5278. </YAxis>
  5279. <OrientationType>Direct3D</OrientationType>
  5280. </Orientation>
  5281. <LockX>false</LockX>
  5282. <LockY>false</LockY>
  5283. <LockZ>false</LockZ>
  5284. <LockXPitch>false</LockXPitch>
  5285. <LockYYaw>false</LockYYaw>
  5286. <LockZRoll>false</LockZRoll>
  5287. <Childs>
  5288. </Childs>
  5289. <FrontPlane>0.01</FrontPlane>
  5290. <BackPlane>100.0</BackPlane>
  5291. <AutoFrontBack>true</AutoFrontBack>
  5292. <Field>9.999999999999998</Field>
  5293. <Fieldy>45.0</Fieldy>
  5294. <PlaneLeft>-9.999999999999998</PlaneLeft>
  5295. <PlaneRight>9.999999999999998</PlaneRight>
  5296. <PlaneTop>9.999999999999998</PlaneTop>
  5297. <PlaneBottom>-9.999999999999998</PlaneBottom>
  5298. <UseLookatPosition>true</UseLookatPosition>
  5299. <LookatPosition>
  5300. </LookatPosition>
  5301. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  5302. <LookUpVector>
  5303. <Z>
  5304. <Value>1</Value>
  5305. </Z>
  5306. </LookUpVector>
  5307. <RightHand>true</RightHand>
  5308. <Perspective>false</Perspective>
  5309. <IsSelectedCamera>false</IsSelectedCamera>
  5310. </Camera>
  5311. <Camera>
  5312. <ShowReferenceFrame>false</ShowReferenceFrame>
  5313. <Name>Top(XZ)-Camera</Name>
  5314. <Position>
  5315. <Y>
  5316. <Value>10</Value>
  5317. </Y>
  5318. </Position>
  5319. <Orientation>
  5320. <ZAxis>
  5321. <Y>
  5322. <Value>-1</Value>
  5323. </Y>
  5324. </ZAxis>
  5325. <YAxis>
  5326. <X>
  5327. <Value>1</Value>
  5328. </X>
  5329. </YAxis>
  5330. <OrientationType>Direct3D</OrientationType>
  5331. </Orientation>
  5332. <LockX>false</LockX>
  5333. <LockY>false</LockY>
  5334. <LockZ>false</LockZ>
  5335. <LockXPitch>false</LockXPitch>
  5336. <LockYYaw>false</LockYYaw>
  5337. <LockZRoll>false</LockZRoll>
  5338. <Childs>
  5339. </Childs>
  5340. <FrontPlane>0.01</FrontPlane>
  5341. <BackPlane>100.0</BackPlane>
  5342. <AutoFrontBack>true</AutoFrontBack>
  5343. <Field>9.999999999999998</Field>
  5344. <Fieldy>45.0</Fieldy>
  5345. <PlaneLeft>-9.999999999999998</PlaneLeft>
  5346. <PlaneRight>9.999999999999998</PlaneRight>
  5347. <PlaneTop>9.999999999999998</PlaneTop>
  5348. <PlaneBottom>-9.999999999999998</PlaneBottom>
  5349. <UseLookatPosition>true</UseLookatPosition>
  5350. <LookatPosition>
  5351. </LookatPosition>
  5352. <UseAlwaysLookUp>true</UseAlwaysLookUp>
  5353. <LookUpVector>
  5354. <X>
  5355. <Value>1</Value>
  5356. </X>
  5357. </LookUpVector>
  5358. <RightHand>true</RightHand>
  5359. <Perspective>false</Perspective>
  5360. <IsSelectedCamera>false</IsSelectedCamera>
  5361. </Camera>
  5362. </Childs>
  5363. </Frame>
  5364. <Frame>
  5365. <ScaleValue>
  5366. <X>
  5367. <Value>10</Value>
  5368. </X>
  5369. <Y>
  5370. <Value>10</Value>
  5371. </Y>
  5372. <Z>
  5373. <Value>10</Value>
  5374. </Z>
  5375. </ScaleValue>
  5376. <ShowReferenceFrame>false</ShowReferenceFrame>
  5377. <Name>Scenery</Name>
  5378. <Position>
  5379. </Position>
  5380. <Orientation>
  5381. <Angles>
  5382. </Angles>
  5383. <OrientationType>Bryant</OrientationType>
  5384. </Orientation>
  5385. <LockX>false</LockX>
  5386. <LockY>false</LockY>
  5387. <LockZ>false</LockZ>
  5388. <LockXPitch>false</LockXPitch>
  5389. <LockYYaw>false</LockYYaw>
  5390. <LockZRoll>false</LockZRoll>
  5391. <Childs>
  5392. <Frame>
  5393. <ScaleValue>
  5394. <X>
  5395. <Value>1</Value>
  5396. </X>
  5397. <Y>
  5398. <Value>1</Value>
  5399. </Y>
  5400. <Z>
  5401. <Value>1</Value>
  5402. </Z>
  5403. </ScaleValue>
  5404. <ShowReferenceFrame>false</ShowReferenceFrame>
  5405. <Name>Reference Frame</Name>
  5406. <Position>
  5407. </Position>
  5408. <Orientation>
  5409. <Angles>
  5410. </Angles>
  5411. <OrientationType>Bryant</OrientationType>
  5412. </Orientation>
  5413. <LockX>false</LockX>
  5414. <LockY>false</LockY>
  5415. <LockZ>false</LockZ>
  5416. <LockXPitch>false</LockXPitch>
  5417. <LockYYaw>false</LockYYaw>
  5418. <LockZRoll>false</LockZRoll>
  5419. <Childs>
  5420. <Line>
  5421. <Thickness>5.0</Thickness>
  5422. <EndPosition>
  5423. <X>
  5424. <VariableName>ori_joint1\position[1]</VariableName>
  5425. <Value>-0.05242625720312162</Value>
  5426. </X>
  5427. <Y>
  5428. <VariableName>ori_joint1\position[2]</VariableName>
  5429. <Value>0.03842509018430717</Value>
  5430. </Y>
  5431. <Z>
  5432. <VariableName>ori_joint1\position[3]</VariableName>
  5433. <Value>0.0</Value>
  5434. </Z>
  5435. </EndPosition>
  5436. <CircleElements>15</CircleElements>
  5437. <Closed>true</Closed>
  5438. <UseCylinder>true</UseCylinder>
  5439. <CylinderThickness>0.1</CylinderThickness>
  5440. <CylinderAccuracy>15</CylinderAccuracy>
  5441. <Closed>true</Closed>
  5442. <ScaleValue>
  5443. <X>
  5444. <Value>0.1</Value>
  5445. </X>
  5446. <Y>
  5447. <Value>0.1</Value>
  5448. </Y>
  5449. <Z>
  5450. <Value>0.0649999976158142</Value>
  5451. </Z>
  5452. </ScaleValue>
  5453. <OverrideColor>true</OverrideColor>
  5454. <MeshColor>
  5455. <X>
  5456. <Value>1</Value>
  5457. </X>
  5458. <Y>
  5459. <Value>1</Value>
  5460. </Y>
  5461. <Z>
  5462. <Value>1</Value>
  5463. </Z>
  5464. </MeshColor>
  5465. <Alpha>1.0</Alpha>
  5466. <MeshColorMultipliers>
  5467. <X>
  5468. <Value>1</Value>
  5469. </X>
  5470. <Y>
  5471. <Value>1</Value>
  5472. </Y>
  5473. <Z>
  5474. <Value>1</Value>
  5475. </Z>
  5476. </MeshColorMultipliers>
  5477. <MeshColorOffsets>
  5478. </MeshColorOffsets>
  5479. <Direct3DColorRange>true</Direct3DColorRange>
  5480. <SpecularColor>
  5481. <X>
  5482. <Value>0.5</Value>
  5483. </X>
  5484. <Y>
  5485. <Value>0.5</Value>
  5486. </Y>
  5487. <Z>
  5488. <Value>0.5</Value>
  5489. </Z>
  5490. </SpecularColor>
  5491. <EmissiveColor>
  5492. </EmissiveColor>
  5493. <ShininessPower>
  5494. <Value>15</Value>
  5495. </ShininessPower>
  5496. <OverrideQuality>false</OverrideQuality>
  5497. <ShowReferenceFrame>false</ShowReferenceFrame>
  5498. <Name>Line</Name>
  5499. <Position>
  5500. </Position>
  5501. <Orientation>
  5502. <ZAxis>
  5503. <X>
  5504. <Value>-0.806557803124948</Value>
  5505. </X>
  5506. <Y>
  5507. <Value>0.591155233604726</Value>
  5508. </Y>
  5509. </ZAxis>
  5510. <YAxis>
  5511. <Z>
  5512. <Value>1</Value>
  5513. </Z>
  5514. </YAxis>
  5515. <OrientationType>Direct3D</OrientationType>
  5516. </Orientation>
  5517. <LockX>false</LockX>
  5518. <LockY>false</LockY>
  5519. <LockZ>false</LockZ>
  5520. <LockXPitch>false</LockXPitch>
  5521. <LockYYaw>false</LockYYaw>
  5522. <LockZRoll>false</LockZRoll>
  5523. <Childs>
  5524. </Childs>
  5525. </Line>
  5526. <Line>
  5527. <Thickness>1.0</Thickness>
  5528. <EndPosition>
  5529. <X>
  5530. <VariableName>ori_joint2\position[1]</VariableName>
  5531. <Value>-0.10031667574147025</Value>
  5532. </X>
  5533. <Y>
  5534. <VariableName>ori_joint2\position[2]</VariableName>
  5535. <Value>0.024054710501717216</Value>
  5536. </Y>
  5537. <Z>
  5538. <VariableName>ori_joint2\position[3]</VariableName>
  5539. <Value>0.0</Value>
  5540. </Z>
  5541. </EndPosition>
  5542. <CircleElements>15</CircleElements>
  5543. <Closed>true</Closed>
  5544. <UseCylinder>true</UseCylinder>
  5545. <CylinderThickness>0.1</CylinderThickness>
  5546. <CylinderAccuracy>15</CylinderAccuracy>
  5547. <Closed>true</Closed>
  5548. <ScaleValue>
  5549. <X>
  5550. <Value>0.1</Value>
  5551. </X>
  5552. <Y>
  5553. <Value>0.1</Value>
  5554. </Y>
  5555. <Z>
  5556. <Value>0.0500000007450581</Value>
  5557. </Z>
  5558. </ScaleValue>
  5559. <OverrideColor>true</OverrideColor>
  5560. <MeshColor>
  5561. <X>
  5562. <Value>1</Value>
  5563. </X>
  5564. <Y>
  5565. <Value>1</Value>
  5566. </Y>
  5567. <Z>
  5568. <Value>1</Value>
  5569. </Z>
  5570. </MeshColor>
  5571. <Alpha>1.0</Alpha>
  5572. <MeshColorMultipliers>
  5573. <X>
  5574. <Value>1</Value>
  5575. </X>
  5576. <Y>
  5577. <Value>1</Value>
  5578. </Y>
  5579. <Z>
  5580. <Value>1</Value>
  5581. </Z>
  5582. </MeshColorMultipliers>
  5583. <MeshColorOffsets>
  5584. </MeshColorOffsets>
  5585. <Direct3DColorRange>true</Direct3DColorRange>
  5586. <SpecularColor>
  5587. <X>
  5588. <Value>0.5</Value>
  5589. </X>
  5590. <Y>
  5591. <Value>0.5</Value>
  5592. </Y>
  5593. <Z>
  5594. <Value>0.5</Value>
  5595. </Z>
  5596. </SpecularColor>
  5597. <EmissiveColor>
  5598. </EmissiveColor>
  5599. <ShininessPower>
  5600. <Value>15</Value>
  5601. </ShininessPower>
  5602. <OverrideQuality>false</OverrideQuality>
  5603. <ShowReferenceFrame>false</ShowReferenceFrame>
  5604. <Name>Line</Name>
  5605. <Position>
  5606. <X>
  5607. <VariableName>ori_joint1\position[1]</VariableName>
  5608. <Value>-0.05242625720312162</Value>
  5609. </X>
  5610. <Y>
  5611. <VariableName>ori_joint1\position[2]</VariableName>
  5612. <Value>0.03842509018430717</Value>
  5613. </Y>
  5614. <Z>
  5615. <VariableName>ori_joint1\position[3]</VariableName>
  5616. <Value>0.0</Value>
  5617. </Z>
  5618. </Position>
  5619. <Orientation>
  5620. <ZAxis>
  5621. <X>
  5622. <Value>-0.957808370766973</Value>
  5623. </X>
  5624. <Y>
  5625. <Value>-0.287407593651799</Value>
  5626. </Y>
  5627. </ZAxis>
  5628. <YAxis>
  5629. <Z>
  5630. <Value>1</Value>
  5631. </Z>
  5632. </YAxis>
  5633. <OrientationType>Direct3D</OrientationType>
  5634. </Orientation>
  5635. <LockX>false</LockX>
  5636. <LockY>false</LockY>
  5637. <LockZ>false</LockZ>
  5638. <LockXPitch>false</LockXPitch>
  5639. <LockYYaw>false</LockYYaw>
  5640. <LockZRoll>false</LockZRoll>
  5641. <Childs>
  5642. </Childs>
  5643. </Line>
  5644. <Frame>
  5645. <ScaleValue>
  5646. <X>
  5647. <Value>1</Value>
  5648. </X>
  5649. <Y>
  5650. <Value>1</Value>
  5651. </Y>
  5652. <Z>
  5653. <Value>1</Value>
  5654. </Z>
  5655. </ScaleValue>
  5656. <ShowReferenceFrame>false</ShowReferenceFrame>
  5657. <Name>Reference Frame</Name>
  5658. <Position>
  5659. <X>
  5660. <VariableName>ori_joint1\position[1]</VariableName>
  5661. <Value>-0.05242625720312162</Value>
  5662. </X>
  5663. <Y>
  5664. <VariableName>ori_joint1\position[2]</VariableName>
  5665. <Value>0.03842509018430717</Value>
  5666. </Y>
  5667. <Z>
  5668. <VariableName>ori_joint1\position[3]</VariableName>
  5669. <Value>0.0</Value>
  5670. </Z>
  5671. </Position>
  5672. <Orientation>
  5673. <ZAxis>
  5674. <X>
  5675. <VariableName>ori_joint1\R[1,3]</VariableName>
  5676. <Value>0.0</Value>
  5677. </X>
  5678. <Y>
  5679. <VariableName>ori_joint1\R[2,3]</VariableName>
  5680. <Value>0.0</Value>
  5681. </Y>
  5682. <Z>
  5683. <VariableName>ori_joint1\R[3,3]</VariableName>
  5684. <Value>1.0</Value>
  5685. </Z>
  5686. </ZAxis>
  5687. <YAxis>
  5688. <X>
  5689. <VariableName>ori_joint1\R[1,2]</VariableName>
  5690. <Value>-0.806557803124948</Value>
  5691. </X>
  5692. <Y>
  5693. <VariableName>ori_joint1\R[2,2]</VariableName>
  5694. <Value>0.5911552336047257</Value>
  5695. </Y>
  5696. <Z>
  5697. <VariableName>ori_joint1\R[3,2]</VariableName>
  5698. <Value>0.0</Value>
  5699. </Z>
  5700. </YAxis>
  5701. <OrientationType>Matrix</OrientationType>
  5702. </Orientation>
  5703. <LockX>false</LockX>
  5704. <LockY>false</LockY>
  5705. <LockZ>false</LockZ>
  5706. <LockXPitch>false</LockXPitch>
  5707. <LockYYaw>false</LockYYaw>
  5708. <LockZRoll>false</LockZRoll>
  5709. <Childs>
  5710. </Childs>
  5711. </Frame>
  5712. <Frame>
  5713. <ScaleValue>
  5714. <X>
  5715. <Value>1</Value>
  5716. </X>
  5717. <Y>
  5718. <Value>1</Value>
  5719. </Y>
  5720. <Z>
  5721. <Value>1</Value>
  5722. </Z>
  5723. </ScaleValue>
  5724. <ShowReferenceFrame>false</ShowReferenceFrame>
  5725. <Name>Reference Frame</Name>
  5726. <Position>
  5727. <X>
  5728. <VariableName>ori_joint2\position[1]</VariableName>
  5729. <Value>-0.10031667574147025</Value>
  5730. </X>
  5731. <Y>
  5732. <VariableName>ori_joint2\position[2]</VariableName>
  5733. <Value>0.024054710501717216</Value>
  5734. </Y>
  5735. <Z>
  5736. <VariableName>ori_joint2\position[3]</VariableName>
  5737. <Value>0.0</Value>
  5738. </Z>
  5739. </Position>
  5740. <Orientation>
  5741. <ZAxis>
  5742. <X>
  5743. <VariableName>ori_joint2\R[1,3]</VariableName>
  5744. <Value>0.0</Value>
  5745. </X>
  5746. <Y>
  5747. <VariableName>ori_joint2\R[2,3]</VariableName>
  5748. <Value>0.0</Value>
  5749. </Y>
  5750. <Z>
  5751. <VariableName>ori_joint2\R[3,3]</VariableName>
  5752. <Value>1.0</Value>
  5753. </Z>
  5754. </ZAxis>
  5755. <YAxis>
  5756. <X>
  5757. <VariableName>ori_joint2\R[1,2]</VariableName>
  5758. <Value>-0.9578083707669727</Value>
  5759. </X>
  5760. <Y>
  5761. <VariableName>ori_joint2\R[2,2]</VariableName>
  5762. <Value>-0.2874075936517991</Value>
  5763. </Y>
  5764. <Z>
  5765. <VariableName>ori_joint2\R[3,2]</VariableName>
  5766. <Value>0.0</Value>
  5767. </Z>
  5768. </YAxis>
  5769. <OrientationType>Matrix</OrientationType>
  5770. </Orientation>
  5771. <LockX>false</LockX>
  5772. <LockY>false</LockY>
  5773. <LockZ>false</LockZ>
  5774. <LockXPitch>false</LockXPitch>
  5775. <LockYYaw>false</LockYYaw>
  5776. <LockZRoll>false</LockZRoll>
  5777. <Childs>
  5778. </Childs>
  5779. </Frame>
  5780. </Childs>
  5781. </Frame>
  5782. </Childs>
  5783. </Frame>
  5784. </Childs>
  5785. </Frame>
  5786. </MainFrame>
  5787. </Plot>
  5788. <Plot>
  5789. <PlotType>GraphPlot</PlotType>
  5790. <BasePlot>
  5791. <PlotId>3</PlotId>
  5792. <UseWindowsBGColor>false</UseWindowsBGColor>
  5793. <BGColor>16777215</BGColor>
  5794. <PlotIsVisible>true</PlotIsVisible>
  5795. </BasePlot>
  5796. <Grid>
  5797. <DrawGrid>true</DrawGrid>
  5798. <GridColor>15780518</GridColor>
  5799. <GridBorderLineColor>12624260</GridBorderLineColor>
  5800. <GridZeroLineColor>0</GridZeroLineColor>
  5801. <XTicks>10</XTicks>
  5802. <YTicks>10</YTicks>
  5803. <ZTicks>10</ZTicks>
  5804. <Use3DLook>false</Use3DLook>
  5805. </Grid>
  5806. <PlotBGColor>16777215</PlotBGColor>
  5807. <ShowPlotTitle>true</ShowPlotTitle>
  5808. <TitlePosition>1</TitlePosition>
  5809. <PlotTitle>model(1)</PlotTitle>
  5810. <ShowXValues>true</ShowXValues>
  5811. <Fonts>
  5812. <TitleFont>
  5813. <Name>Arial</Name>
  5814. <Height>12</Height>
  5815. <PitchFamily>34</PitchFamily>
  5816. <Weight>400</Weight>
  5817. <Italic>0</Italic>
  5818. <UnderLine>0</UnderLine>
  5819. <StrikeOut>0</StrikeOut>
  5820. <Color>0</Color>
  5821. </TitleFont>
  5822. <LabelFont>
  5823. <Name>Arial</Name>
  5824. <Height>12</Height>
  5825. <PitchFamily>34</PitchFamily>
  5826. <Weight>400</Weight>
  5827. <Italic>0</Italic>
  5828. <UnderLine>0</UnderLine>
  5829. <StrikeOut>0</StrikeOut>
  5830. <Color>0</Color>
  5831. </LabelFont>
  5832. <ValuesFont>
  5833. <Name>Arial</Name>
  5834. <Height>10</Height>
  5835. <PitchFamily>34</PitchFamily>
  5836. <Weight>400</Weight>
  5837. <Italic>0</Italic>
  5838. <UnderLine>0</UnderLine>
  5839. <StrikeOut>0</StrikeOut>
  5840. <Color>0</Color>
  5841. </ValuesFont>
  5842. <LegendFont>
  5843. <Name>Arial</Name>
  5844. <Height>12</Height>
  5845. <PitchFamily>34</PitchFamily>
  5846. <Weight>400</Weight>
  5847. <Italic>0</Italic>
  5848. <UnderLine>0</UnderLine>
  5849. <StrikeOut>0</StrikeOut>
  5850. <Color>0</Color>
  5851. </LegendFont>
  5852. </Fonts>
  5853. <SharedXAxis>true</SharedXAxis>
  5854. <SharedYAxis>true</SharedYAxis>
  5855. <SharedZAxis>false</SharedZAxis>
  5856. <XAxes>
  5857. <Axis>
  5858. <Minimum>0.0</Minimum>
  5859. <Maximum>1.424742322143329</Maximum>
  5860. <Linear>true</Linear>
  5861. <Scaling>3</Scaling>
  5862. <Label>time</Label>
  5863. </Axis>
  5864. </XAxes>
  5865. <YAxes>
  5866. <Axis>
  5867. <Minimum>-0.25</Minimum>
  5868. <Maximum>0.25</Maximum>
  5869. <Linear>true</Linear>
  5870. <Scaling>2</Scaling>
  5871. <Label>position[1]</Label>
  5872. </Axis>
  5873. <Axis>
  5874. <Minimum>-0.25</Minimum>
  5875. <Maximum>0.25</Maximum>
  5876. <Linear>true</Linear>
  5877. <Scaling>2</Scaling>
  5878. <Label>position[2]</Label>
  5879. </Axis>
  5880. <Axis>
  5881. <Minimum>-0.25</Minimum>
  5882. <Maximum>0.25</Maximum>
  5883. <Linear>true</Linear>
  5884. <Scaling>2</Scaling>
  5885. <Label>position[3]</Label>
  5886. </Axis>
  5887. <Axis>
  5888. <Minimum>-0.25</Minimum>
  5889. <Maximum>0.25</Maximum>
  5890. <Linear>true</Linear>
  5891. <Scaling>2</Scaling>
  5892. <Label>new position[1]</Label>
  5893. </Axis>
  5894. <Axis>
  5895. <Minimum>-0.25</Minimum>
  5896. <Maximum>0.25</Maximum>
  5897. <Linear>true</Linear>
  5898. <Scaling>2</Scaling>
  5899. <Label>new position[2]</Label>
  5900. </Axis>
  5901. <Axis>
  5902. <Minimum>-0.25</Minimum>
  5903. <Maximum>0.25</Maximum>
  5904. <Linear>true</Linear>
  5905. <Scaling>2</Scaling>
  5906. <Label>new position[3]</Label>
  5907. </Axis>
  5908. </YAxes>
  5909. <ZAxes>
  5910. </ZAxes>
  5911. <Curves>
  5912. <Curve>
  5913. <LineColor>3355111</LineColor>
  5914. <LineStyle>1</LineStyle>
  5915. <TickColor>3355111</TickColor>
  5916. <TickStyle>0</TickStyle>
  5917. <CurveVisible>true</CurveVisible>
  5918. <PixelThresshold>1</PixelThresshold>
  5919. <LineThickness>1</LineThickness>
  5920. <LineOrder>1</LineOrder>
  5921. <ShowYValues>true</ShowYValues>
  5922. <XCurveData>
  5923. <ShowUnit>true</ShowUnit>
  5924. <VarName>time</VarName>
  5925. </XCurveData>
  5926. <YCurveData>
  5927. <ShowUnit>true</ShowUnit>
  5928. <VarName>ori_joint2\position[1]</VarName>
  5929. </YCurveData>
  5930. </Curve>
  5931. <Curve>
  5932. <LineColor>6076255</LineColor>
  5933. <LineStyle>1</LineStyle>
  5934. <TickColor>6076255</TickColor>
  5935. <TickStyle>0</TickStyle>
  5936. <CurveVisible>true</CurveVisible>
  5937. <PixelThresshold>1</PixelThresshold>
  5938. <LineThickness>1</LineThickness>
  5939. <LineOrder>1</LineOrder>
  5940. <ShowYValues>true</ShowYValues>
  5941. <XCurveData>
  5942. <ShowUnit>true</ShowUnit>
  5943. <VarName>time</VarName>
  5944. </XCurveData>
  5945. <YCurveData>
  5946. <ShowUnit>true</ShowUnit>
  5947. <VarName>ori_joint2\position[2]</VarName>
  5948. </YCurveData>
  5949. </Curve>
  5950. <Curve>
  5951. <LineColor>12553035</LineColor>
  5952. <LineStyle>1</LineStyle>
  5953. <TickColor>12553035</TickColor>
  5954. <TickStyle>0</TickStyle>
  5955. <CurveVisible>true</CurveVisible>
  5956. <PixelThresshold>1</PixelThresshold>
  5957. <LineThickness>1</LineThickness>
  5958. <LineOrder>1</LineOrder>
  5959. <ShowYValues>true</ShowYValues>
  5960. <XCurveData>
  5961. <ShowUnit>true</ShowUnit>
  5962. <VarName>time</VarName>
  5963. </XCurveData>
  5964. <YCurveData>
  5965. <ShowUnit>true</ShowUnit>
  5966. <VarName>ori_joint2\position[3]</VarName>
  5967. </YCurveData>
  5968. </Curve>
  5969. <Curve>
  5970. <LineColor>15086320</LineColor>
  5971. <LineStyle>1</LineStyle>
  5972. <TickColor>15086320</TickColor>
  5973. <TickStyle>0</TickStyle>
  5974. <CurveVisible>true</CurveVisible>
  5975. <PixelThresshold>1</PixelThresshold>
  5976. <LineThickness>1</LineThickness>
  5977. <LineOrder>1</LineOrder>
  5978. <ShowYValues>true</ShowYValues>
  5979. <XCurveData>
  5980. <ShowUnit>true</ShowUnit>
  5981. <VarName>time</VarName>
  5982. </XCurveData>
  5983. <YCurveData>
  5984. <ShowUnit>true</ShowUnit>
  5985. <VarName>new_joint2\position[1]</VarName>
  5986. </YCurveData>
  5987. </Curve>
  5988. <Curve>
  5989. <LineColor>15790150</LineColor>
  5990. <LineStyle>1</LineStyle>
  5991. <TickColor>15790150</TickColor>
  5992. <TickStyle>0</TickStyle>
  5993. <CurveVisible>true</CurveVisible>
  5994. <PixelThresshold>1</PixelThresshold>
  5995. <LineThickness>1</LineThickness>
  5996. <LineOrder>1</LineOrder>
  5997. <ShowYValues>true</ShowYValues>
  5998. <XCurveData>
  5999. <ShowUnit>true</ShowUnit>
  6000. <VarName>time</VarName>
  6001. </XCurveData>
  6002. <YCurveData>
  6003. <ShowUnit>true</ShowUnit>
  6004. <VarName>new_joint2\position[2]</VarName>
  6005. </YCurveData>
  6006. </Curve>
  6007. <Curve>
  6008. <LineColor>1696255</LineColor>
  6009. <LineStyle>1</LineStyle>
  6010. <TickColor>1696255</TickColor>
  6011. <TickStyle>0</TickStyle>
  6012. <CurveVisible>true</CurveVisible>
  6013. <PixelThresshold>1</PixelThresshold>
  6014. <LineThickness>1</LineThickness>
  6015. <LineOrder>1</LineOrder>
  6016. <ShowYValues>true</ShowYValues>
  6017. <XCurveData>
  6018. <ShowUnit>true</ShowUnit>
  6019. <VarName>time</VarName>
  6020. </XCurveData>
  6021. <YCurveData>
  6022. <ShowUnit>true</ShowUnit>
  6023. <VarName>new_joint2\position[3]</VarName>
  6024. </YCurveData>
  6025. </Curve>
  6026. </Curves>
  6027. <Legenda>
  6028. <ShowLegenda>true</ShowLegenda>
  6029. <BorderPenColor>0</BorderPenColor>
  6030. <BackgroundColor>16777215</BackgroundColor>
  6031. </Legenda>
  6032. </Plot>
  6033. </Plots>
  6034. <PlotPanels>
  6035. <PlotPanel>
  6036. <PlotPanelId>1</PlotPanelId>
  6037. <PlotPanelVisible>true</PlotPanelVisible>
  6038. <Name>Window 1</Name>
  6039. <Tiling>0</Tiling>
  6040. <PlotIds>
  6041. <PlotId>1</PlotId>
  6042. <PlotId>3</PlotId>
  6043. </PlotIds>
  6044. <ToggleState>Base</ToggleState>
  6045. </PlotPanel>
  6046. <PlotPanel>
  6047. <PlotPanelId>2</PlotPanelId>
  6048. <PlotPanelVisible>true</PlotPanelVisible>
  6049. <Name>Window 2</Name>
  6050. <Tiling>0</Tiling>
  6051. <PlotIds>
  6052. <PlotId>2</PlotId>
  6053. </PlotIds>
  6054. <ToggleState>Base</ToggleState>
  6055. </PlotPanel>
  6056. </PlotPanels>
  6057. <WindowRectangles virtualDesktopWidth="5760" virtualDesktopHeight="1080">
  6058. <WindowRectangle monitor="1" left="-1920" top="0" right="0" bottom="1080" plotpanelid="2">
  6059. 0.200521 0.191667 0.840104 0.771296
  6060. </WindowRectangle>
  6061. <WindowRectangle monitor="2" left="1920" top="0" right="3840" bottom="1080" plotpanelid="1">
  6062. 0.0859375 0.0712963 0.84375 0.833333
  6063. </WindowRectangle>
  6064. </WindowRectangles>
  6065. </PlotSpecs>
  6066. <RunSpecs>
  6067. <SimulatorSettings>
  6068. <StartTime>0.0</StartTime>
  6069. <FinishTime>10.0</FinishTime>
  6070. <AllowPassFinishTime>false</AllowPassFinishTime>
  6071. <Warp>true</Warp>
  6072. <FPGonio>false</FPGonio>
  6073. <UseOutputAfterEach>false</UseOutputAfterEach>
  6074. <OutputAfterEach>0.1</OutputAfterEach>
  6075. <EventEpsilon>1.0e-6</EventEpsilon>
  6076. <AlgebraicTolerance>1.0e-7</AlgebraicTolerance>
  6077. <SteadyStateAnalysis>false</SteadyStateAnalysis>
  6078. <UpdateHoldInstructions>true</UpdateHoldInstructions>
  6079. </SimulatorSettings>
  6080. <IntegrationMethods>
  6081. <IntegrationMethod>
  6082. <Name>Euler</Name>
  6083. <StepSize>0.01</StepSize>
  6084. <AutoStepSize>false</AutoStepSize>
  6085. </IntegrationMethod>
  6086. <IntegrationMethod>
  6087. <Name>BackwardEuler</Name>
  6088. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  6089. <RelativeTolerance>1.0e-5</RelativeTolerance>
  6090. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  6091. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  6092. <StepSize>0.01</StepSize>
  6093. <Alpha>1.0</Alpha>
  6094. </IntegrationMethod>
  6095. <IntegrationMethod>
  6096. <Name>AdamsBashforth</Name>
  6097. <StepSize>0.01</StepSize>
  6098. <AutoStepSize>false</AutoStepSize>
  6099. </IntegrationMethod>
  6100. <IntegrationMethod>
  6101. <Name>RungeKutta2</Name>
  6102. <StepSize>0.01</StepSize>
  6103. <AutoStepSize>false</AutoStepSize>
  6104. </IntegrationMethod>
  6105. <IntegrationMethod>
  6106. <Name>RungeKutta4</Name>
  6107. <StepSize>0.01</StepSize>
  6108. <AutoStepSize>false</AutoStepSize>
  6109. </IntegrationMethod>
  6110. <IntegrationMethod>
  6111. <Name>RungeKutta8</Name>
  6112. <UseInitialStepSize>false</UseInitialStepSize>
  6113. <InitialStepSize>0.0</InitialStepSize>
  6114. <UseMaximumStepSize>false</UseMaximumStepSize>
  6115. <MaximumStepSize>0.0</MaximumStepSize>
  6116. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  6117. <RelativeTolerance>1.0e-6</RelativeTolerance>
  6118. <SafetyFactor>0.9</SafetyFactor>
  6119. <Factor1>0.33</Factor1>
  6120. <Factor2>6.0</Factor2>
  6121. <Beta>0.0</Beta>
  6122. <UseMaxNrSteps>false</UseMaxNrSteps>
  6123. <MaxNrSteps>100000</MaxNrSteps>
  6124. <UseStiffDetection>false</UseStiffDetection>
  6125. <MaxNrStiffnessSteps>1000</MaxNrStiffnessSteps>
  6126. </IntegrationMethod>
  6127. <IntegrationMethod>
  6128. <Name>RungeKuttaFehlberg</Name>
  6129. <UseInitialStepSize>false</UseInitialStepSize>
  6130. <InitialStepSize>0.0</InitialStepSize>
  6131. <UseMaximumStepSize>false</UseMaximumStepSize>
  6132. <MaximumStepSize>0.0</MaximumStepSize>
  6133. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  6134. <RelativeTolerance>1.0e-6</RelativeTolerance>
  6135. </IntegrationMethod>
  6136. <IntegrationMethod>
  6137. <Name>VodeAdams</Name>
  6138. <UseInitialStepSize>false</UseInitialStepSize>
  6139. <InitialStepSize>0.0</InitialStepSize>
  6140. <UseMaximumStepSize>false</UseMaximumStepSize>
  6141. <MaximumStepSize>0.0</MaximumStepSize>
  6142. <AbsoluteTolerance>1.0e-6</AbsoluteTolerance>
  6143. <RelativeTolerance>1.0e-6</RelativeTolerance>
  6144. <VodeUseBDF>true</VodeUseBDF>
  6145. <VodeUseNewton>true</VodeUseNewton>
  6146. </IntegrationMethod>
  6147. <IntegrationMethod>
  6148. <Name>BDFMethod</Name>
  6149. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  6150. <RelativeTolerance>1.0e-5</RelativeTolerance>
  6151. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  6152. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  6153. <UseInitialStepSize>false</UseInitialStepSize>
  6154. <InitialStepSize>0.0</InitialStepSize>
  6155. <UseMaximumStepSize>false</UseMaximumStepSize>
  6156. <MaximumStepSize>0.0</MaximumStepSize>
  6157. </IntegrationMethod>
  6158. <IntegrationMethod>
  6159. <Name>MeBDFiMethod</Name>
  6160. <AbsoluteTolerance>1.0e-5</AbsoluteTolerance>
  6161. <RelativeTolerance>1.0e-5</RelativeTolerance>
  6162. <AlgebraicAbsoluteTolerance>1.0e-5</AlgebraicAbsoluteTolerance>
  6163. <AlgebraicRelativeTolerance>1.0e-5</AlgebraicRelativeTolerance>
  6164. <UseInitialStepSize>false</UseInitialStepSize>
  6165. <InitialStepSize>0.0</InitialStepSize>
  6166. <UseMaximumStepSize>false</UseMaximumStepSize>
  6167. <MaximumStepSize>0.0</MaximumStepSize>
  6168. </IntegrationMethod>
  6169. <SelectedIntegrationMethod>7</SelectedIntegrationMethod>
  6170. </IntegrationMethods>
  6171. </RunSpecs>
  6172. <MultipleRun>
  6173. <NrSteps>10</NrSteps>
  6174. <CopyFromStates>false</CopyFromStates>
  6175. <JoinParameterVariation>true</JoinParameterVariation>
  6176. <ClearAfterRun>true</ClearAfterRun>
  6177. <RedrawAfterRun>false</RedrawAfterRun>
  6178. <DrawDuringSimulation>true</DrawDuringSimulation>
  6179. <ActionBeforeOptimization>0</ActionBeforeOptimization>
  6180. <CompareValue>0.0</CompareValue>
  6181. <UseCompareValue>true</UseCompareValue>
  6182. <MultipleRunType>MultipleRun</MultipleRunType>
  6183. <Minimize>true</Minimize>
  6184. <OptimizationVariable></OptimizationVariable>
  6185. <ResulVarUsage>UseEndValue</ResulVarUsage>
  6186. <Tolerance>0.001</Tolerance>
  6187. <OptimizationMethod>BroydonFletcherGoldfarbShanno</OptimizationMethod>
  6188. <MultipleRunVariables>
  6189. </MultipleRunVariables>
  6190. </MultipleRun>
  6191. <ExportData>
  6192. <WriteAsText>true</WriteAsText>
  6193. <ReadAsText>true</ReadAsText>
  6194. <WriteHeader>true</WriteHeader>
  6195. <ReadHeader>true</ReadHeader>
  6196. <ReadFilename></ReadFilename>
  6197. <WriteFilename></WriteFilename>
  6198. <DoWrite>false</DoWrite>
  6199. <ExportVariables>
  6200. </ExportVariables>
  6201. <ImportVariables>
  6202. </ImportVariables>
  6203. </ExportData>
  6204. <BreakPoints>
  6205. </BreakPoints>
  6206. <AnimationPlayback>
  6207. <PlaybackSpeed>1.0</PlaybackSpeed>
  6208. </AnimationPlayback>
  6209. </ExpData>
  6210. </Experiment>
  6211. </Experiments>
  6212. </Document>