Skip to main content

FallDownState

Represents fall detection state.

Import path:from boosteros.robots.booster import FallDownState (this type is not yet exported from boosteros.types)

Properties:

Property

Type

Description

header

Header

Fall state metadata header

state

str

Fall state, one of "normal", "falling", "fallen", "getting_up", "unknown"

recoverable

bool

Whether recovery action is currently allowed

Read-only properties:

Property

Type

Description

timestamp

float

Timestamp in seconds, equivalent to header.timestamp

is_normal

bool

Whether in normal state

is_falling

bool

Whether currently falling

has_fallen

bool

Whether already fallen

is_getting_up

bool

Whether currently getting up

FallDownState​

Signature:

FallDownState(
state: str,
*,
recoverable: bool = False,
header: Header | None = None,
)

Description:

Constructs a FallDownState instance.

Parameters:

Parameter

Type

Required

Description

state

str

Yes

Fall state, one of "normal", "falling", "fallen", "getting_up", "unknown"

recoverable

bool

No

Whether recovery action is currently allowed

header

Header | None

No

Fall state metadata header; uses default Header when not provided or None

Returns:

FallDownState instance.

Raises:

None.