class documentation

class PlanVariable:

View In Hierarchy

One OPC UA Variable to create, and the ROS2 field it reads.

Its place is a node path: the above levels, then name.

Instance Variable above The levels this leaf sits in, outermost first. A parent adds its own field to the front of whatever its nested type emitted.
Instance Variable datatype The semantic DataType where the variant type does not say enough (a signed bulk payload, an enumeration), else None.
Instance Variable display_name The raw ROS2 name of the leaf, or its new name from a rename; None when it is name itself.
Instance Variable initial The typed value written at boot. It is typed rather than null so that a status code written over it does not leave a client with an empty value.
Instance Variable name The browse name of the leaf, relative to the Projection that emitted it. Empty means the node takes the name of whatever contains it.
Instance Variable source The ROS2 field path this variable reads, so a node can be traced back.
Instance Variable variant_type The OPC UA type, explicit because an empty sequence cannot imply one and float32 and float64 are both Python float.
Property display Return the display name of the leaf node, or "" when it takes its container's.
Property display_names Return the display name of each node on node_path.
Property full_name Return the flat name this variable is rendered under, relative to the plan.
Property inner_levels Return the structures above this leaf by their node path.
Property is_array Return whether this variable carries many values rather than one.
Property node_path Return the browse names from the top of the plan down to this leaf.
above: tuple[NodeLevel, ...] =

The levels this leaf sits in, outermost first. A parent adds its own field to the front of whatever its nested type emitted.

datatype: PlanDataType | None =

The semantic DataType where the variant type does not say enough (a signed bulk payload, an enumeration), else None.

display_name: str | None =

The raw ROS2 name of the leaf, or its new name from a rename; None when it is name itself.

initial: object =

The typed value written at boot. It is typed rather than null so that a status code written over it does not leave a client with an empty value.

name: str =

The browse name of the leaf, relative to the Projection that emitted it. Empty means the node takes the name of whatever contains it.

source: str =

The ROS2 field path this variable reads, so a node can be traced back.

variant_type: ua.VariantType =

The OPC UA type, explicit because an empty sequence cannot imply one and float32 and float64 are both Python float.

@property
display: str =

Return the display name of the leaf node, or "" when it takes its container's.

@property
display_names: tuple[str, ...] =

Return the display name of each node on node_path.

@property
full_name: str =

Return the flat name this variable is rendered under, relative to the plan.

@property
inner_levels: dict[NodePath, NodeLevel] =

Return the structures above this leaf by their node path.

A message collapsed to one value is the leaf itself, not a level.

@property
is_array: bool =

Return whether this variable carries many values rather than one.

Read off the boot value, which ua_shape makes a list for any array.

@property
node_path: NodePath =

Return the browse names from the top of the plan down to this leaf.