conversion

Submodules

Classes

class brom_drake.systems.conversion.bool_to_vec_system.BoolToVectorSystem[source]

Description

This LeafSystem receives boolean inputs (i.e., AbstractValue inputs containing bool values) and returns an output vector of size 1 (i.e., BasicVector) where the single element is 1 if the input bool is True and 0 if the input bool is False.

Diagram

The LeafSystem’s input and output ports can be illustrated with the following block:

                |---------------|
                | Bool          |
bool_in ---->   | To            | ---> vector_out
(bool)          | VectorSystem  | (BasicVector[1])
                |---------------|
CalcVectorOutput(context: Context, output: BasicVector)[source]

Description

Callback function for calculating the output vector of the BoolToVectorSystem. This function takes in a bool and outputs a vector of size 1.

Functions

(None found)

Variables

(None found)