acados_solver_ros2 main
Acados-based NMPC controllers for ROS2 control
Loading...
Searching...
No Matches
Functions | Variables
acados_solver_plugins.utils Namespace Reference

Functions

 ensure_dir_exists (dir_path)
 
 delete_dir_recursively (dir_path, keep_empty_folder=True)
 
str uppercase_to_underscore (str string)
 

Variables

 _uppercase_part = re.compile('[A-Z][^A-Z]*')
 

Function Documentation

◆ ensure_dir_exists()

acados_solver_plugins.utils.ensure_dir_exists (   dir_path)

◆ delete_dir_recursively()

acados_solver_plugins.utils.delete_dir_recursively (   dir_path,
  keep_empty_folder = True 
)

◆ uppercase_to_underscore()

str acados_solver_plugins.utils.uppercase_to_underscore ( str  string)
Reformat a camel case string to snake case.

:param string: The string to reformat
:type string: str
:return: Snake case reformated string
:rtype: str

>>> uppercase_to_underscore("TestClass")
"test_class"

Variable Documentation

◆ _uppercase_part

acados_solver_plugins.utils._uppercase_part = re.compile('[A-Z][^A-Z]*')
protected