Jesus Rubio commited on
Commit
674f005
·
1 Parent(s): b1936b3

fix: protect set_target with try/except + cleanup build artifacts

Browse files
.gitignore CHANGED
@@ -1,3 +1,3 @@
1
  __pycache__/
2
  *.egg-info/
3
- build/
 
1
  __pycache__/
2
  *.egg-info/
3
+ build/*.pyc
mood_engine/__pycache__/main.cpython-312.pyc DELETED
Binary file (10.2 kB)
 
mood_engine/main.py CHANGED
@@ -189,7 +189,10 @@ class MoodEngine(ReachyMiniApp):
189
  final = current_pose + micro_pose_offset + idle_offset
190
  head = create_head_pose(yaw=final[0], pitch=final[1], roll=final[2], degrees=True)
191
  antennas = np.deg2rad(np.array([final[3], final[4]]))
192
- reachy_mini.set_target(head=head, antennas=antennas)
 
 
 
193
 
194
  time.sleep(0.02)
195
 
 
189
  final = current_pose + micro_pose_offset + idle_offset
190
  head = create_head_pose(yaw=final[0], pitch=final[1], roll=final[2], degrees=True)
191
  antennas = np.deg2rad(np.array([final[3], final[4]]))
192
+ try:
193
+ reachy_mini.set_target(head=head, antennas=antennas)
194
+ except Exception:
195
+ pass
196
 
197
  time.sleep(0.02)
198