Skip to content

sleeping islands: add sleep state fields#1105

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

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

Conversation

@thowell
Copy link
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
- 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 added this to the Islands milestone Feb 6, 2026
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

1 participant