Leeps Claude Opus 4.6 (1M context) commited on
Commit
4e0b4e0
·
1 Parent(s): dee27a2

Fix: move tracking camera inside worldbody element

Browse files

MuJoCo requires camera elements to be inside worldbody, not at the top level.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. server/drone_forest.xml +4 -4
server/drone_forest.xml CHANGED
@@ -221,6 +221,10 @@
221
  <geom name="canopy_24" type="sphere" size="0.6" pos="0 0 3.2"
222
  material="canopy_mat" contype="0" conaffinity="0"/>
223
  </body>
 
 
 
 
224
  </worldbody>
225
 
226
  <!-- Site-based thrust actuators: force applied in site-local z (tilts with drone) -->
@@ -234,8 +238,4 @@
234
  <general name="thrust_bl" site="rotor_bl" gear="0 0 1 0 0 0" ctrllimited="true"
235
  ctrlrange="0 3" gainprm="1" biasprm="0 0 0"/>
236
  </actuator>
237
-
238
- <!-- Overhead tracking camera -->
239
- <camera name="tracking" pos="0 0 25" xyaxes="1 0 0 0 1 0" mode="trackcom"
240
- fovy="60"/>
241
  </mujoco>
 
221
  <geom name="canopy_24" type="sphere" size="0.6" pos="0 0 3.2"
222
  material="canopy_mat" contype="0" conaffinity="0"/>
223
  </body>
224
+
225
+ <!-- Overhead tracking camera -->
226
+ <camera name="tracking" pos="0 0 25" xyaxes="1 0 0 0 1 0" mode="trackcom"
227
+ fovy="60"/>
228
  </worldbody>
229
 
230
  <!-- Site-based thrust actuators: force applied in site-local z (tilts with drone) -->
 
238
  <general name="thrust_bl" site="rotor_bl" gear="0 0 1 0 0 0" ctrllimited="true"
239
  ctrlrange="0 3" gainprm="1" biasprm="0 0 0"/>
240
  </actuator>
 
 
 
 
241
  </mujoco>