pydrake.common.cpp_param
Defines a mapping between Python and alias types, and provides canonical Python types as they relate to C++.
- pydrake.common.cpp_param.get_param_canonical(param)
Gets the canonical types for a set of Python types (canonical as in how they relate to C++ types).
- pydrake.common.cpp_param.get_param_names(param, *, mangle=False)
Gets the canonical type names for a set of Python types (canonical as in how they relate to C++ types).
The
mangle
controls whether we use the nice name or the mangled name; see cpp_template.TemplateBase._instantiation_name for details.