Skip to content

sleeping islands: add sleep state fields#1105

Open
thowell wants to merge 2 commits intogoogle-deepmind:mainfrom
thowell:sleep_state
Open

sleeping islands: add sleep state fields#1105
thowell wants to merge 2 commits intogoogle-deepmind:mainfrom
thowell:sleep_state

Conversation

@thowell
Copy link
Copy Markdown
Collaborator

@thowell thowell commented Feb 1, 2026

  • Add MJ_MINAWAKE constant, SLEEP enable bit, SleepPolicy and SleepState enums
  • Add sleep_tolerance to Option, tree_sleep_policy/dof_length to Model
  • Add tree_asleep, tree_awake, body_awake, dof_awake_ind, body_awake_ind, nv_awake, nbody_awake, ntree_awake to Data
  • Initialize sleep state in make_data and put_data (all trees start awake)
  • Add tests for sleep state initialization, sleep policy and dof_length import

@thowell thowell linked an issue Feb 1, 2026 that may be closed by this pull request
@thowell thowell changed the title island sleeping: add sleep state fields sleeping islands: add sleep state fields Feb 1, 2026
@thowell thowell requested a review from yuvaltassa February 1, 2026 05:46
@thowell thowell added this to the Islands milestone Feb 6, 2026
@omarrayyann
Copy link
Copy Markdown

Hello @thowell! what's the current state of this

thowell added 2 commits April 23, 2026 00:03
- Add MJ_MINAWAKE constant, SLEEP enable bit, SleepPolicy and SleepState enums
- Add sleep_tolerance to Option, tree_sleep_policy/dof_length to Model
- Add tree_asleep, tree_awake, body_awake, dof_awake_ind, body_awake_ind,
  nv_awake, nbody_awake, ntree_awake to Data
- Initialize sleep state in make_data and put_data (all trees start awake)
- Add tests for sleep state initialization, sleep policy and dof_length import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sleeping islands

2 participants