Static Private Readonly MAX_Static Private Readonly PROPERTY_Static decodeStatic encodeCreate a batch of state encodings for efficient processing
Array of agent states
Batched tensor for all states
Static encodeEncode environmental context
Environment context
Array of environmental features
Static encodeEncode neighboring agents into fixed-size representation
Array of neighboring agents
Fixed-size array representing neighbor information
Static encodeEncode position into normalized coordinates
Position to encode
Array of normalized x, y coordinates
Static encodeStatic encodeStatic encodeEncode complete agent state into a fixed-size vector
Agent state to encode
Tensorflow tensor representing the state
Static getStatic validateValidate that state contains required fields for encoding
State to validate
True if state is valid for encoding
Utilities for encoding agent states into vectors for ML models