switches

Submodules

Classes

class brom_drake.systems.switches.abstract_port_switch_system.AbstractPortSwitch(selector_type_in: type = <class 'int'>, input_type: type = <class 'str'>)[source]

Description

This system is a simplification of the PortSwitch system primitive that is built into Drake. It allows for you to command the switch with a simple input (i.e., a string or an int) instead of a more complicated type.

DeclareInputPort(name: str) InputPort[source]

Description

This method will declare an input port for the system.

DoCalcValue(context: Context, output: AbstractValue)[source]

Description

This method will calculate the value of the output port.

get_port_selector_input_port() InputPort[source]

Description

This method will return the port selector input port.

class brom_drake.systems.switches.flexible_port_switch.FlexiblePortSwitch(dim: int, selector_type_in: type = <class 'str'>)[source]

Description

This system is a simplification of the PortSwitch system primitive that is built into Drake. It allows for you to command the switch with a simple input (i.e., a string or an int) instead of a more complicated type.

DeclareInputPort(name: str) InputPort[source]

Description

This method will declare an input port for the system.

DoCalcValue(context: Context, output: BasicVector)[source]

Description

This method will calculate the value of the output port.

get_port_selector_input_port() InputPort[source]

Description

This method will return the port selector input port.

Functions

(None found)

Variables

(None found)