No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

664 líneas
15KB

  1. <?xml version="1.0"?>
  2. <robot name="hexapod">
  3. <material name="black">
  4. <color rgba="0 0 0 1"/>
  5. </material>
  6. <material name="blue">
  7. <color rgba="0 0 1 1"/>
  8. </material>
  9. <material name="green">
  10. <color rgba="0 1 0 1"/>
  11. </material>
  12. <material name="red">
  13. <color rgba="1 0 0 1"/>
  14. </material>
  15. <link name="base_link">
  16. <!-- top and bottom plate -->
  17. <visual>
  18. <origin xyz="0 0 -0.034"/>
  19. <geometry>
  20. <box size="0.100 0.180 0.003"/>
  21. </geometry>
  22. <material name="black"/>
  23. </visual>
  24. <visual>
  25. <origin xyz="0 0 0.034"/>
  26. <geometry>
  27. <box size="0.100 0.180 0.003"/>
  28. </geometry>
  29. <material name="black"/>
  30. </visual>
  31. <!-- c1 link base -->
  32. <visual>
  33. <origin xyz="-0.040 0.080 -0.0325"/>
  34. <geometry>
  35. <cylinder radius="0.0125" length="0.006"/>
  36. </geometry>
  37. <material name="black"/>
  38. </visual>
  39. <visual>
  40. <origin xyz="-0.040 0.080 0.0325"/>
  41. <geometry>
  42. <cylinder radius="0.0125" length="0.006"/>
  43. </geometry>
  44. <material name="black"/>
  45. </visual>
  46. <!-- c2 link base -->
  47. <visual>
  48. <origin xyz="-0.060 0.000 -0.0325"/>
  49. <geometry>
  50. <cylinder radius="0.0125" length="0.006"/>
  51. </geometry>
  52. </visual>
  53. <visual>
  54. <origin xyz="-0.060 0.000 0.0325"/>
  55. <geometry>
  56. <cylinder radius="0.0125" length="0.006"/>
  57. </geometry>
  58. <material name="black"/>
  59. </visual>
  60. <!-- c3 link base -->
  61. <visual>
  62. <origin xyz="-0.040 -0.080 -0.0325"/>
  63. <geometry>
  64. <cylinder radius="0.0125" length="0.006"/>
  65. </geometry>
  66. </visual>
  67. <visual>
  68. <origin xyz="-0.040 -0.080 0.0325"/>
  69. <geometry>
  70. <cylinder radius="0.0125" length="0.006"/>
  71. </geometry>
  72. <material name="black"/>
  73. </visual>
  74. <!-- c4 link base -->
  75. <visual>
  76. <origin xyz=" 0.040 -0.080 -0.0325"/>
  77. <geometry>
  78. <cylinder radius="0.0125" length="0.006"/>
  79. </geometry>
  80. </visual>
  81. <visual>
  82. <origin xyz=" 0.040 -0.080 0.0325"/>
  83. <geometry>
  84. <cylinder radius="0.0125" length="0.006"/>
  85. </geometry>
  86. <material name="black"/>
  87. </visual>
  88. <!-- c5 link base -->
  89. <visual>
  90. <origin xyz=" 0.060 0.000 -0.0325"/>
  91. <geometry>
  92. <cylinder radius="0.0125" length="0.006"/>
  93. </geometry>
  94. </visual>
  95. <visual>
  96. <origin xyz=" 0.060 0.000 0.0325"/>
  97. <geometry>
  98. <cylinder radius="0.0125" length="0.006"/>
  99. </geometry>
  100. <material name="black"/>
  101. </visual>
  102. <!-- c6 link base -->
  103. <visual>
  104. <origin xyz=" 0.040 0.080 -0.0325"/>
  105. <geometry>
  106. <cylinder radius="0.0125" length="0.006"/>
  107. </geometry>
  108. </visual>
  109. <visual>
  110. <origin xyz="0.040 0.080 0.0325"/>
  111. <geometry>
  112. <cylinder radius="0.0125" length="0.006"/>
  113. </geometry>
  114. <material name="black"/>
  115. </visual>
  116. </link>
  117. <!-- leg 1 -->
  118. <link name="c1">
  119. <visual>
  120. <geometry>
  121. <box size="0.045 0.045 0.045"/>
  122. </geometry>
  123. <origin xyz="-0.015 0 0"/>
  124. <material name="blue"/>
  125. </visual>
  126. <visual>
  127. <geometry>
  128. <cylinder radius="0.005" length="0.065"/>
  129. </geometry>
  130. <material name="blue"/>
  131. </visual>
  132. <visual>
  133. <origin xyz="-0.020 0 -0.0075" rpy="-1.57 0 0"/>
  134. <geometry>
  135. <cylinder radius="0.005" length="0.065"/>
  136. </geometry>
  137. <material name="blue"/>
  138. </visual>
  139. </link>
  140. <link name="f1">
  141. <visual>
  142. <origin xyz="-0.040 -0.0015 0"/>
  143. <geometry>
  144. <box size="0.100 0.003 0.010"/>
  145. </geometry>
  146. <material name="green"/>
  147. </visual>
  148. <visual>
  149. <origin xyz="0 -0.003 0" rpy="-1.57 0 0"/>
  150. <geometry>
  151. <cylinder radius="0.0125" length="0.006"/>
  152. </geometry>
  153. <material name="green"/>
  154. </visual>
  155. <visual>
  156. <origin xyz="-0.080 -0.003 0" rpy="-1.57 0 0"/>
  157. <geometry>
  158. <cylinder radius="0.0125" length="0.006"/>
  159. </geometry>
  160. <material name="green"/>
  161. </visual>
  162. </link>
  163. <link name="t1">
  164. <!-- servo -->
  165. <visual>
  166. <origin xyz="0 -0.005 0.010"/>
  167. <geometry>
  168. <box size="0.020 0.035 0.040"/>
  169. </geometry>
  170. <material name="red"/>
  171. </visual>
  172. <!-- tibia -->
  173. <visual>
  174. <origin xyz="-0.010 0 -0.0425"/>
  175. <geometry>
  176. <box size="0.040 0.003 0.175"/>
  177. </geometry>
  178. <material name="red"/>
  179. </visual>
  180. </link>
  181. <joint name="base_to_c1" type="continuous">
  182. <parent link="base_link"/>
  183. <child link="c1"/>
  184. <origin xyz="-0.040 0.080 0"/>
  185. <axis xyz="0 0 1"/>
  186. </joint>
  187. <joint name="c1_to_f1" type="continuous">
  188. <parent link="c1"/>
  189. <child link="f1"/>
  190. <origin xyz="-0.020 0.03 -0.0075"/>
  191. <axis xyz="0 1 0"/>
  192. </joint>
  193. <joint name="f1_to_t1" type="continuous">
  194. <parent link="f1"/>
  195. <child link="t1"/>
  196. <origin xyz="-0.080 -0.025 0"/>
  197. <axis xyz="0 1 0"/>
  198. </joint>
  199. <!-- leg 2 -->
  200. <link name="c2">
  201. <visual>
  202. <geometry>
  203. <box size="0.045 0.045 0.045"/>
  204. </geometry>
  205. <origin xyz="-0.015 0 0"/>
  206. <material name="blue"/>
  207. </visual>
  208. <visual>
  209. <geometry>
  210. <cylinder radius="0.005" length="0.065"/>
  211. </geometry>
  212. <material name="blue"/>
  213. </visual>
  214. <visual>
  215. <origin xyz="-0.020 0 -0.0075" rpy="-1.57 0 0"/>
  216. <geometry>
  217. <cylinder radius="0.005" length="0.065"/>
  218. </geometry>
  219. <material name="blue"/>
  220. </visual>
  221. </link>
  222. <link name="f2">
  223. <visual>
  224. <origin xyz="-0.040 -0.0015 0"/>
  225. <geometry>
  226. <box size="0.100 0.003 0.010"/>
  227. </geometry>
  228. <material name="green"/>
  229. </visual>
  230. <visual>
  231. <origin xyz="0 -0.003 0" rpy="-1.57 0 0"/>
  232. <geometry>
  233. <cylinder radius="0.0125" length="0.006"/>
  234. </geometry>
  235. <material name="green"/>
  236. </visual>
  237. <visual>
  238. <origin xyz="-0.080 -0.003 0" rpy="-1.57 0 0"/>
  239. <geometry>
  240. <cylinder radius="0.0125" length="0.006"/>
  241. </geometry>
  242. <material name="green"/>
  243. </visual>
  244. </link>
  245. <link name="t2">
  246. <!-- servo -->
  247. <visual>
  248. <origin xyz="0 -0.005 0.010"/>
  249. <geometry>
  250. <box size="0.020 0.035 0.040"/>
  251. </geometry>
  252. <material name="red"/>
  253. </visual>
  254. <!-- tibia -->
  255. <visual>
  256. <origin xyz="-0.010 0 -0.0425"/>
  257. <geometry>
  258. <box size="0.040 0.003 0.175"/>
  259. </geometry>
  260. <material name="red"/>
  261. </visual>
  262. </link>
  263. <joint name="base_to_c2" type="continuous">
  264. <parent link="base_link"/>
  265. <child link="c2"/>
  266. <origin xyz="-0.060 0 0"/>
  267. <axis xyz="0 0 1"/>
  268. </joint>
  269. <joint name="c2_to_f2" type="continuous">
  270. <parent link="c2"/>
  271. <child link="f2"/>
  272. <origin xyz="-0.020 0.03 -0.0075"/>
  273. <axis xyz="0 1 0"/>
  274. </joint>
  275. <joint name="f2_to_t2" type="continuous">
  276. <parent link="f2"/>
  277. <child link="t2"/>
  278. <origin xyz="-0.080 -0.025 0"/>
  279. <axis xyz="0 1 0"/>
  280. </joint>
  281. <!-- leg 3 -->
  282. <link name="c3">
  283. <visual>
  284. <geometry>
  285. <box size="0.045 0.045 0.045"/>
  286. </geometry>
  287. <origin xyz="-0.015 0 0"/>
  288. <material name="blue"/>
  289. </visual>
  290. <visual>
  291. <geometry>
  292. <cylinder radius="0.005" length="0.065"/>
  293. </geometry>
  294. <material name="blue"/>
  295. </visual>
  296. <visual>
  297. <origin xyz="-0.020 0 -0.0075" rpy="-1.57 0 0"/>
  298. <geometry>
  299. <cylinder radius="0.005" length="0.065"/>
  300. </geometry>
  301. <material name="blue"/>
  302. </visual>
  303. </link>
  304. <link name="f3">
  305. <visual>
  306. <origin xyz="-0.040 -0.0015 0"/>
  307. <geometry>
  308. <box size="0.100 0.003 0.010"/>
  309. </geometry>
  310. <material name="green"/>
  311. </visual>
  312. <visual>
  313. <origin xyz="0 -0.003 0" rpy="-1.57 0 0"/>
  314. <geometry>
  315. <cylinder radius="0.0125" length="0.006"/>
  316. </geometry>
  317. <material name="green"/>
  318. </visual>
  319. <visual>
  320. <origin xyz="-0.080 -0.003 0" rpy="-1.57 0 0"/>
  321. <geometry>
  322. <cylinder radius="0.0125" length="0.006"/>
  323. </geometry>
  324. <material name="green"/>
  325. </visual>
  326. </link>
  327. <link name="t3">
  328. <!-- servo -->
  329. <visual>
  330. <origin xyz="0 -0.005 0.010"/>
  331. <geometry>
  332. <box size="0.020 0.035 0.040"/>
  333. </geometry>
  334. <material name="red"/>
  335. </visual>
  336. <!-- tibia -->
  337. <visual>
  338. <origin xyz="-0.010 0 -0.0425"/>
  339. <geometry>
  340. <box size="0.040 0.003 0.175"/>
  341. </geometry>
  342. <material name="red"/>
  343. </visual>
  344. </link>
  345. <joint name="base_to_c3" type="continuous">
  346. <parent link="base_link"/>
  347. <child link="c3"/>
  348. <origin xyz="-0.040 -0.080 0"/>
  349. <axis xyz="0 0 1"/>
  350. </joint>
  351. <joint name="c3_to_f3" type="continuous">
  352. <parent link="c3"/>
  353. <child link="f3"/>
  354. <origin xyz="-0.020 0.03 -0.0075"/>
  355. <axis xyz="0 1 0"/>
  356. </joint>
  357. <joint name="f3_to_t3" type="continuous">
  358. <parent link="f3"/>
  359. <child link="t3"/>
  360. <origin xyz="-0.080 -0.025 0"/>
  361. <axis xyz="0 1 0"/>
  362. </joint>
  363. <!-- leg 4 -->
  364. <link name="c4">
  365. <visual>
  366. <geometry>
  367. <box size="0.045 0.045 0.045"/>
  368. </geometry>
  369. <origin xyz="0.015 0 0"/>
  370. <material name="blue"/>
  371. </visual>
  372. <visual>
  373. <geometry>
  374. <cylinder radius="0.005" length="0.065"/>
  375. </geometry>
  376. <material name="blue"/>
  377. </visual>
  378. <visual>
  379. <origin xyz="0.020 0 -0.0075" rpy="-1.57 0 0"/>
  380. <geometry>
  381. <cylinder radius="0.005" length="0.065"/>
  382. </geometry>
  383. <material name="blue"/>
  384. </visual>
  385. </link>
  386. <link name="f4">
  387. <visual>
  388. <origin xyz="0.040 -0.0015 0"/>
  389. <geometry>
  390. <box size="0.100 0.003 0.010"/>
  391. </geometry>
  392. <material name="green"/>
  393. </visual>
  394. <visual>
  395. <origin xyz="0 -0.003 0" rpy="-1.57 0 0"/>
  396. <geometry>
  397. <cylinder radius="0.0125" length="0.006"/>
  398. </geometry>
  399. <material name="green"/>
  400. </visual>
  401. <visual>
  402. <origin xyz="0.080 -0.003 0" rpy="-1.57 0 0"/>
  403. <geometry>
  404. <cylinder radius="0.0125" length="0.006"/>
  405. </geometry>
  406. <material name="green"/>
  407. </visual>
  408. </link>
  409. <link name="t4">
  410. <!-- servo -->
  411. <visual>
  412. <origin xyz="0 -0.005 0.010"/>
  413. <geometry>
  414. <box size="0.020 0.035 0.040"/>
  415. </geometry>
  416. <material name="red"/>
  417. </visual>
  418. <!-- tibia -->
  419. <visual>
  420. <origin xyz="0.010 0 -0.0425"/>
  421. <geometry>
  422. <box size="0.040 0.003 0.175"/>
  423. </geometry>
  424. <material name="red"/>
  425. </visual>
  426. </link>
  427. <joint name="base_to_c4" type="continuous">
  428. <parent link="base_link"/>
  429. <child link="c4"/>
  430. <origin xyz="0.040 -0.080 0"/>
  431. <axis xyz="0 0 1"/>
  432. </joint>
  433. <joint name="c4_to_f4" type="continuous">
  434. <parent link="c4"/>
  435. <child link="f4"/>
  436. <origin xyz="0.020 0.03 -0.0075"/>
  437. <axis xyz="0 1 0"/>
  438. </joint>
  439. <joint name="f4_to_t4" type="continuous">
  440. <parent link="f4"/>
  441. <child link="t4"/>
  442. <origin xyz="0.080 -0.025 0"/>
  443. <axis xyz="0 1 0"/>
  444. </joint>
  445. <!-- leg 5 -->
  446. <link name="c5">
  447. <visual>
  448. <geometry>
  449. <box size="0.045 0.045 0.045"/>
  450. </geometry>
  451. <origin xyz="0.015 0 0"/>
  452. <material name="blue"/>
  453. </visual>
  454. <visual>
  455. <geometry>
  456. <cylinder radius="0.005" length="0.065"/>
  457. </geometry>
  458. <material name="blue"/>
  459. </visual>
  460. <visual>
  461. <origin xyz="0.020 0 -0.0075" rpy="-1.57 0 0"/>
  462. <geometry>
  463. <cylinder radius="0.005" length="0.065"/>
  464. </geometry>
  465. <material name="blue"/>
  466. </visual>
  467. </link>
  468. <link name="f5">
  469. <visual>
  470. <origin xyz="0.040 -0.0015 0"/>
  471. <geometry>
  472. <box size="0.100 0.003 0.010"/>
  473. </geometry>
  474. <material name="green"/>
  475. </visual>
  476. <visual>
  477. <origin xyz="0 -0.003 0" rpy="-1.57 0 0"/>
  478. <geometry>
  479. <cylinder radius="0.0125" length="0.006"/>
  480. </geometry>
  481. <material name="green"/>
  482. </visual>
  483. <visual>
  484. <origin xyz="0.080 -0.003 0" rpy="-1.57 0 0"/>
  485. <geometry>
  486. <cylinder radius="0.0125" length="0.006"/>
  487. </geometry>
  488. <material name="green"/>
  489. </visual>
  490. </link>
  491. <link name="t5">
  492. <!-- servo -->
  493. <visual>
  494. <origin xyz="0 -0.005 0.010"/>
  495. <geometry>
  496. <box size="0.020 0.035 0.040"/>
  497. </geometry>
  498. <material name="red"/>
  499. </visual>
  500. <!-- tibia -->
  501. <visual>
  502. <origin xyz="0.010 0 -0.0425"/>
  503. <geometry>
  504. <box size="0.040 0.003 0.175"/>
  505. </geometry>
  506. <material name="red"/>
  507. </visual>
  508. </link>
  509. <joint name="base_to_c5" type="continuous">
  510. <parent link="base_link"/>
  511. <child link="c5"/>
  512. <origin xyz="0.060 0 0"/>
  513. <axis xyz="0 0 1"/>
  514. </joint>
  515. <joint name="c5_to_f5" type="continuous">
  516. <parent link="c5"/>
  517. <child link="f5"/>
  518. <origin xyz="0.020 0.03 -0.0075"/>
  519. <axis xyz="0 1 0"/>
  520. </joint>
  521. <joint name="f5_to_t5" type="continuous">
  522. <parent link="f5"/>
  523. <child link="t5"/>
  524. <origin xyz="0.080 -0.025 0"/>
  525. <axis xyz="0 1 0"/>
  526. </joint>
  527. <!-- leg 6 -->
  528. <link name="c6">
  529. <visual>
  530. <geometry>
  531. <box size="0.045 0.045 0.045"/>
  532. </geometry>
  533. <origin xyz="0.015 0 0"/>
  534. <material name="blue"/>
  535. </visual>
  536. <visual>
  537. <geometry>
  538. <cylinder radius="0.005" length="0.065"/>
  539. </geometry>
  540. <material name="blue"/>
  541. </visual>
  542. <visual>
  543. <origin xyz="0.020 0 -0.0075" rpy="-1.57 0 0"/>
  544. <geometry>
  545. <cylinder radius="0.005" length="0.065"/>
  546. </geometry>
  547. <material name="blue"/>
  548. </visual>
  549. </link>
  550. <link name="f6">
  551. <visual>
  552. <origin xyz="0.040 -0.0015 0"/>
  553. <geometry>
  554. <box size="0.100 0.003 0.010"/>
  555. </geometry>
  556. <material name="green"/>
  557. </visual>
  558. <visual>
  559. <origin xyz="0 -0.003 0" rpy="-1.57 0 0"/>
  560. <geometry>
  561. <cylinder radius="0.0125" length="0.006"/>
  562. </geometry>
  563. <material name="green"/>
  564. </visual>
  565. <visual>
  566. <origin xyz="0.080 -0.003 0" rpy="-1.57 0 0"/>
  567. <geometry>
  568. <cylinder radius="0.0125" length="0.006"/>
  569. </geometry>
  570. <material name="green"/>
  571. </visual>
  572. </link>
  573. <link name="t6">
  574. <!-- servo -->
  575. <visual>
  576. <origin xyz="0 -0.005 0.010"/>
  577. <geometry>
  578. <box size="0.020 0.035 0.040"/>
  579. </geometry>
  580. <material name="red"/>
  581. </visual>
  582. <!-- tibia -->
  583. <visual>
  584. <origin xyz="0.010 0 -0.0425"/>
  585. <geometry>
  586. <box size="0.040 0.003 0.175"/>
  587. </geometry>
  588. <material name="red"/>
  589. </visual>
  590. </link>
  591. <joint name="base_to_c6" type="continuous">
  592. <parent link="base_link"/>
  593. <child link="c6"/>
  594. <origin xyz="0.040 0.080 0"/>
  595. <axis xyz="0 0 1"/>
  596. </joint>
  597. <joint name="c6_to_f6" type="continuous">
  598. <parent link="c6"/>
  599. <child link="f6"/>
  600. <origin xyz="0.020 0.03 -0.0075"/>
  601. <axis xyz="0 1 0"/>
  602. </joint>
  603. <joint name="f6_to_t6" type="continuous">
  604. <parent link="f6"/>
  605. <child link="t6"/>
  606. <origin xyz="0.080 -0.025 0"/>
  607. <axis xyz="0 1 0"/>
  608. </joint>
  609. </robot>