primitives.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <mujoco>
  2. <extension>
  3. <plugin plugin="mujoco.sdf.torus">
  4. <instance name="torus">
  5. <config key="radius1" value="0.35"/>
  6. <config key="radius2" value="0.15"/>
  7. </instance>
  8. </plugin>
  9. </extension>
  10. <asset>
  11. <mesh name="torus">
  12. <plugin instance="torus"/>
  13. </mesh>
  14. </asset>
  15. <option sdf_iterations="10" sdf_initpoints="20"/>
  16. <include file="scene.xml"/>
  17. <default>
  18. <geom solref="0.01 1" solimp=".95 .99 .0001"/>
  19. </default>
  20. <worldbody>
  21. <body pos="0 0 .175">
  22. <freejoint/>
  23. <geom type="sdf" mesh="torus" rgba=".8 .2 .2 1">
  24. <plugin instance="torus"/>
  25. </geom>
  26. </body>
  27. <body pos=".1 .1 1.2">
  28. <freejoint/>
  29. <geom type="sdf" mesh="torus" rgba=".8 .2 .2 1">
  30. <plugin instance="torus"/>
  31. </geom>
  32. </body>
  33. <body pos=".1 .1 2.6">
  34. <freejoint/>
  35. <geom type="sdf" mesh="torus" rgba=".8 .2 .2 1">
  36. <plugin instance="torus"/>
  37. </geom>
  38. </body>
  39. <body pos="-.1 .2 2">
  40. <freejoint/>
  41. <geom type="sphere" size="0.3"/>
  42. </body>
  43. <body pos=".3 -.1 2" euler="0 0 45">
  44. <freejoint/>
  45. <geom type="ellipsoid" size=".4 .2 .2"/>
  46. </body>
  47. <body pos="-.1 .1 .5">
  48. <freejoint/>
  49. <geom type="capsule" size=".1" fromto="-.2 -.2 .1 .2 .2 .1"/>
  50. </body>
  51. <body pos=".2 -.2 .3">
  52. <freejoint/>
  53. <geom type="cylinder" size=".1" fromto="-.2 -.2 .1 .2 .2 .1"/>
  54. </body>
  55. <body pos=".1 .1 3.5">
  56. <freejoint/>
  57. <geom type="box" size=".2 .2 .2"/>
  58. </body>
  59. <light name="left" pos="0 0 1"/>
  60. <light name="right" pos="1 0 1"/>
  61. </worldbody>
  62. </mujoco>