Expand description
What a parameter-service REQUEST costs on the wire, from a node’s declared
parameter shape and the parameter store’s capacities.
The ONE formula for the request side. nros-node’s
param_sizing::node_bound prices every parameter-service message with it
(the inbox slot and the build-time check that a stated slot fits), and
nros build prices the same requests from the contract to suggest a slot
size before any build script runs. Two readers, one function: a second
spelling of this arithmetic is how one formula’s inputs drift apart.
Pure arithmetic over counts. It reads no MAX_* of this crate, so a caller
that has not built the store (the CLI) passes the capacities it would build
with.
Structs§
- Param
Requests - The three parameter-service requests’ worst size, for one node.
- Request
Caps - The value capacities a request reaches the wire at: the store’s, clamped
to the
rcl_interfacesmessage’s own caps (Self::clamped).
Constants§
- CDR_
HEADER - The CDR encapsulation header.
- CDR_SEQ
- A sequence’s length word, worst-case padded.
- CDR_STR
- A string’s length word and NUL, worst-case padded.
- CDR_
VALUE_ BASE - One
ParameterValuewith every member empty. - CDR_
WORD - An 8-byte word, worst-case padded.
- SHAPE_
BOOL_ ARRAYS - SHAPE_
BYTE_ ARRAYS - SHAPE_
NAME_ BYTES - SHAPE_
PARAMS - Field indices of one node’s shape: the nine counts
nros_cli_core::entity_inventory::ParamServiceShape::tokenwrites, in order. - SHAPE_
PREFIXES - SHAPE_
PREFIX_ BYTES - SHAPE_
STRINGS - SHAPE_
STRING_ ARRAYS - SHAPE_
WORD_ ARRAYS - WIRE_
SEQ_ CAP - Capacity of every sequence member in the generated
rcl_interfacestypes (heapless::Vec<_, 64>). nros-node holds the drift guard against the generated messages (wire_capacities_match_the_generated_messages). - WIRE_
STRING_ CAP - Capacity of every string member in the generated
rcl_interfacestypes (heapless::String<256>). Same drift guard.
Functions§
- names_
bytes - The bytes a node’s names occupy in a request.
- param_
requests - One node’s three requests, at capacities
c. - prefixes_
bytes - The bytes a node’s prefixes occupy in a
list_parametersrequest. - values_
bytes - The bytes a node’s values occupy in a
set_parametersrequest (and aget_parametersreply), at capacitiesc. - worst_
request_ slot - The largest request any of
shapes’ nodes can produce at capacitiesc, rounded up to the 4-byte slot alignment the inbox uses.