hbp_nrp_cleserver.bibi_config.StructuredTransferFunction module

This module contains helper functionality to convert a CLE Transfer Function into a structured format used to pass transfer functions via ROS

extract_structure(transfer_function)[source]

Converts the given transfer function into a structured format

Parameters

transfer_function – The transfer function

Returns

A structured format that can be sent via ROS

generate_code_from_structured_tf(transfer_function)[source]

Generates PyTF-code from the given transfer function in a structured form

Parameters

transfer_function

Returns

The code that represents the transfer function

indent(code)[source]

Indents the given code with four spaces

Parameters

code – The given code

Returns

An indented string