Skip to content

raisim::GranularPoolSleepController::Options ​

struct · #include <raisim/object/granular/GranularPoolSleepController.hpp>

Controller parameters. All distances and thresholds must be finite and nonnegative.

Public attributes ​

policy ​

cpp
Policy policy

Sleep policy.

halo ​

cpp
double halo

Distance added to WakeSphere::radius when testing whether a grain center is within reach (m).

speedThreshold ​

cpp
double speedThreshold

Linear speed below which a grain counts as quiet (m/s); it must also be below angularSpeedThreshold.

angularSpeedThreshold ​

cpp
double angularSpeedThreshold

Angular speed below which a grain counts as quiet (rad/s).

quietSteps ​

cpp
unsigned quietSteps

Consecutive quiet updates before a grain sleeps (QUIET policy).

extraWakeDistance ​

cpp
double extraWakeDistance

Extra wake reach for the WAKE_ONCE policy (m).

keepAboveZ ​

cpp
std::optional<double> keepAboveZ

If set, grains whose center z is at or above this value (m) are kept awake.

RaiSim — physics for robotics and AI.