Identification¶
The identification module provides tools for dynamic parameter
identification of robots, including the
reporting & verification suite
(print_quality_report(), export_html_report(), verify(),
export_verification_report()) attached directly to BaseIdentification.
base_identification¶
Base class for robot dynamic parameter identification. This module provides a generalized framework for dynamic parameter identification that can be inherited by any robot type (TIAGo, UR10, MATE, etc.).
BaseIdentification(robot, config_file='config/robot_config.yaml')
¶
Bases: ABC
Base class for robot dynamic parameter identification.
Provides common functionality for all robots while allowing robot-specific implementations of key methods.
Initialize base identification with robot model and configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
robot
|
Robot model loaded with FIGAROH |
required | |
config_file
|
Path to robot configuration YAML file |
'config/robot_config.yaml'
|
Source code in src/figaroh/identification/base_identification.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | |
solve(decimate=True, decimation_factor=10, zero_tolerance=0.001, plotting=True, save_results=False, html_report=False, wls=False)
¶
Main solving method for dynamic parameter identification.
This method implements the complete base parameter identification workflow including column elimination, optional decimation, QR decomposition, and quality metric computation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
decimate
|
bool
|
Whether to apply decimation to reduce data size |
True
|
decimation_factor
|
int
|
Factor for signal decimation (default: 10) |
10
|
zero_tolerance
|
float
|
Tolerance for eliminating zero columns |
0.001
|
plotting
|
bool
|
Whether to generate plots |
True
|
save_results
|
bool
|
Whether to save parameters to file |
False
|
html_report
|
bool
|
If True, also export an HTML diagnostic
report (see :meth: |
False
|
wls
|
bool
|
If True, refine the OLS base-parameter estimate with
iteratively-weighted least squares (Gautier, 1997) before
computing quality metrics β see
:meth: |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
ndarray |
Base parameters phi_base |
Raises:
| Type | Description |
|---|---|
AssertionError
|
If prerequisites not met (dynamic_regressor, standard_parameter) |
ValueError
|
If data shapes are incompatible |
LinAlgError
|
If QR decomposition fails |
Source code in src/figaroh/identification/base_identification.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 | |
solve_with_custom_solver(method='lstsq', regularization=None, alpha=0.0, constraints=None, bounds=None, decimate=False, decimation_factor=10, zero_tolerance=0.001, plotting=False, save_results=False, **solver_kwargs)
¶
Alternative solving method using advanced linear solver.
This method provides more flexibility than the default QR-based solve(), offering multiple solving methods, regularization, and constraints.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
method
|
str
|
Solving method ('lstsq', 'ridge', 'lasso', 'constrained', etc.) |
'lstsq'
|
regularization
|
str
|
Regularization type ('l1', 'l2', 'elastic_net') |
None
|
alpha
|
float
|
Regularization strength |
0.0
|
constraints
|
dict
|
Linear constraints |
None
|
bounds
|
tuple
|
Box constraints on parameters |
None
|
decimate
|
bool
|
Whether to apply decimation |
False
|
decimation_factor
|
int
|
Decimation factor if decimate=True |
10
|
zero_tolerance
|
float
|
Tolerance for eliminating zero columns |
0.001
|
plotting
|
bool
|
Whether to generate plots |
False
|
save_results
|
bool
|
Whether to save parameters to file |
False
|
**solver_kwargs
|
Additional arguments for LinearSolver |
{}
|
Returns:
| Name | Type | Description |
|---|---|---|
ndarray |
Identified base parameters |
Example
Ridge regression with L2 regularization¶
phi = identification.solve_with_custom_solver( ... method='ridge', alpha=0.01)
Constrained optimization with physical bounds¶
bounds = [(0, 100) for _ in range(n_params)] phi = identification.solve_with_custom_solver( ... method='constrained', bounds=bounds)
Source code in src/figaroh/identification/base_identification.py
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 | |
load_param(config_file, setting_type='identification')
¶
Load the identification parameters from the yaml file.
This method supports both legacy YAML format and the new unified configuration format. It automatically detects the format type and applies the appropriate parser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config_file
|
str
|
Path to configuration file (legacy or unified) |
required |
setting_type
|
str
|
Configuration section to load |
'identification'
|
Source code in src/figaroh/identification/base_identification.py
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 | |
load_trajectory_data(data_source=None)
abstractmethod
¶
Load and process CSV data.
This method must be implemented by robot-specific subclasses to handle their specific data formats and file structures.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_source
|
str
|
Optional override identifying an alternate dataset
to load instead of the class's normal training data (e.g.
a directory holding a held-out validation trajectory with
the same file layout/naming as the training data). When
|
None
|
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Dictionary with keys 'timestamps', 'positions', |
|
|
'velocities', 'accelerations', 'torques' (numpy arrays; |
||
|
'velocities'/'accelerations' may be None to be derived by |
||
|
differentiation). |
Source code in src/figaroh/identification/base_identification.py
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 | |
process_data(truncate=None)
¶
Load and process data
Source code in src/figaroh/identification/base_identification.py
450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 | |
calculate_full_regressor()
¶
Build regressor matrix, compute pre-identified values of standard parameters, compute joint torques based on pre-identified standard parameters.
Source code in src/figaroh/identification/base_identification.py
473 474 475 476 477 478 479 480 481 482 483 484 | |
initialize_standard_parameters()
¶
Initialize standard parameters for the robot.
Source code in src/figaroh/identification/base_identification.py
486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 | |
compute_reference_torque()
¶
Compute reference joint torques based on standard parameters and dynamic regressor.
Source code in src/figaroh/identification/base_identification.py
519 520 521 522 523 524 525 526 527 528 529 | |
process_kinematics_data(filter_config=None)
¶
Process kinematics data (positions, velocities, accelerations) with filtering.
Source code in src/figaroh/identification/base_identification.py
907 908 909 | |
filter_kinematics_data(filter_config=None)
¶
Apply filtering to data with configurable parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filter_config
|
dict
|
Filter configuration with keys: - differentiation_method: Method for derivative estimation - filter_params: Parameters for signal filtering |
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If required data is missing |
Source code in src/figaroh/identification/base_identification.py
911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 | |
process_torque_data(**kwargs)
¶
Process torque data (generic implementation, should be overridden for robot-specific processing).
Source code in src/figaroh/identification/base_identification.py
962 963 964 965 966 967 968 969 | |
print_quality_report()
¶
Print a formatted identification quality report to the terminal.
Reports condition number, overall torque residual statistics, per-joint residuals (when available), base-parameter uncertainty, held-out validation metrics (if configured), and optional physical-consistency / reconstruction status.
Source code in src/figaroh/identification/base_identification.py
1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 | |
export_html_report(output_path=None, output_dir='results')
¶
Export the identification quality report as a self-contained
HTML file β the visual counterpart of :meth:print_quality_report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
output_path
|
str
|
Explicit output file path. If None, writes to
|
None
|
output_dir
|
str
|
Directory used when output_path is not given (created if missing). |
'results'
|
Returns:
| Type | Description |
|---|---|
str
|
The path the report was written to. |
Raises:
| Type | Description |
|---|---|
AttributeError
|
If solve() has not been run yet. |
Source code in src/figaroh/identification/base_identification.py
1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 | |
verify(thresholds=None)
¶
Check this identification's metrics against pass/fail thresholds.
Unlike :meth:print_quality_report/:meth:export_html_report
(for a human to read), this returns a machine-checkable
:class:~figaroh.tools._report_common.VerificationVerdict a CI
script can branch on. Computed entirely from data already
gathered during :meth:solve β never raises after a successful
solve, and never gates solve() itself (opt-in, called
whenever the caller wants a verdict).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
thresholds
|
Optional[Dict[str, Dict[str, Any]]]
|
Per-metric |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
VerificationVerdict |
|
|
|
raw |
||
|
text used by :meth: |
||
|
(git commit, config file hash, timestamp, robot name). |
Raises:
| Type | Description |
|---|---|
AttributeError
|
If called before :meth: |
Source code in src/figaroh/identification/base_identification.py
1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 | |
export_verification_report(output_path=None, output_dir='results', thresholds=None)
¶
Write this identification's :meth:verify verdict as JSON.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
output_path
|
str
|
Explicit file path. If omitted, defaults to
|
None
|
output_dir
|
str
|
Directory used when |
'results'
|
thresholds
|
Optional[Dict[str, Dict[str, Any]]]
|
Forwarded to :meth: |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The path the JSON verdict was written to. |
Source code in src/figaroh/identification/base_identification.py
2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 | |
plot_results()
¶
Plot identification results using unified results manager.
Source code in src/figaroh/identification/base_identification.py
2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 | |
save_results(output_dir='results')
¶
Save identification results using unified results manager.
Source code in src/figaroh/identification/base_identification.py
2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 | |
identification_tools¶
base_param_from_standard(phi_standard, params_base)
¶
Convert standard parameters to base parameters.
Takes standard dynamic parameters and calculates the corresponding base parameters using analytical relationships between them.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
phi_standard
|
dict
|
Standard parameters from model/URDF |
required |
params_base
|
list
|
Analytical parameter relationships |
required |
Returns:
| Name | Type | Description |
|---|---|---|
list |
Base parameter values calculated from standard parameters |
Source code in src/figaroh/identification/identification_tools.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | |
relative_stdev(W_b, phi_b, tau)
¶
Calculate relative standard deviation of identified parameters.
Implements the residual error method from [PressΓ© & Gautier 1991] to estimate parameter uncertainty.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
W_b
|
ndarray
|
Base regressor matrix |
required |
phi_b
|
list
|
Base parameter values |
required |
tau
|
ndarray
|
Measured joint torques/forces |
required |
Returns:
| Name | Type | Description |
|---|---|---|
ndarray |
Relative standard deviation (%) for each base parameter |
Source code in src/figaroh/identification/identification_tools.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
index_in_base_params(params, id_segments)
¶
Map segment IDs to their base parameters.
For each segment ID, finds which base parameters contain inertial parameters from that segment.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
params
|
list
|
Base parameter expressions |
required |
id_segments
|
list
|
Segment IDs to map |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Maps segment IDs to lists of base parameter indices |
Source code in src/figaroh/identification/identification_tools.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | |
weigthed_least_squares(robot, phi_b, W_b, tau_meas, tau_est, identif_config)
¶
Compute weighted least squares solution for parameter identification.
Implements iteratively reweighted least squares method from [Gautier, 1997]. Accounts for heteroscedastic noise.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
robot
|
Robot
|
Robot model |
required |
phi_b
|
ndarray
|
Initial base parameters |
required |
W_b
|
ndarray
|
Base regressor matrix |
required |
tau_meas
|
ndarray
|
Measured joint torques |
required |
tau_est
|
ndarray
|
Estimated joint torques |
required |
param
|
dict
|
Settings including idx_tau_stop |
required |
Returns:
| Name | Type | Description |
|---|---|---|
ndarray |
Identified base parameters |
Source code in src/figaroh/identification/identification_tools.py
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | |
calculate_first_second_order_differentiation(model, q, identif_config, dt=None, backend=None)
¶
Calculate joint velocities and accelerations from positions.
Computes first and second order derivatives of joint positions using central differences. Handles both constant and variable timesteps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
Robot model (used when backend is None) |
required |
q
|
ndarray
|
Joint position matrix (n_samples, n_joints) |
required |
param
|
dict
|
Parameters containing: - is_joint_torques: Whether using joint torques - is_external_wrench: Whether using external wrench - ts: Timestep if constant |
required |
dt
|
ndarray
|
Variable timesteps between samples. |
None
|
backend
|
DynamicsBackend
|
If provided, uses backend.compute_difference instead of pin.difference for Lie group operations. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
|
Note
Two samples are removed from start/end due to central differences
Source code in src/figaroh/identification/identification_tools.py
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | |
low_pass_filter_data(data, identif_config, nbutter=5)
¶
Apply zero-phase Butterworth low-pass filter to measurement data.
Uses scipy's filtfilt for zero-phase digital filtering. Removes high frequency noise while preserving signal phase. Handles border effects by trimming filtered data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
ndarray
|
Raw measurement data to filter |
required |
param
|
dict
|
Filter parameters containing: - ts: Sample time - cut_off_frequency_butterworth: Cutoff frequency in Hz |
required |
nbutter
|
int
|
Filter order. Higher order gives sharper frequency cutoff. Defaults to 5. |
5
|
Returns:
| Name | Type | Description |
|---|---|---|
ndarray |
Filtered data with border regions removed |
Note
Border effects are handled by removing nborder = 5*nbutter samples from start and end of filtered signal.
Source code in src/figaroh/identification/identification_tools.py
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | |
config¶
Configuration parsing and parameter management for robot identification.
This module handles all configuration-related functionality including: - YAML configuration file parsing - Unified to legacy config format conversion - Parameter extraction and validation - Signal processing and mechanical parameter management
get_param_from_yaml(robot, identif_data)
¶
Parse identification parameters from YAML configuration file.
Extracts robot parameters, problem settings, signal processing options and total least squares parameters from a YAML config file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
robot
|
RobotWrapper
|
Robot instance containing model |
required |
identif_data
|
dict
|
YAML configuration containing: - robot_params: Joint limits, friction, inertia settings - problem_params: External wrench, friction, actuator settings - processing_params: Sample rate, filter settings - tls_params: Load mass and location |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Parameter dictionary with unified settings |
Example
config = yaml.safe_load(config_file) params = get_param_from_yaml(robot, config) print(params["nb_samples"])
Source code in src/figaroh/identification/config.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |
unified_to_legacy_identif_config(robot, unified_identif_config)
¶
Convert unified identification format to legacy identif_config format.
Maps the new unified identification configuration structure to produce the exact same output as get_param_from_yaml. This ensures backward compatibility while using the new unified parser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
robot
|
RobotWrapper
|
Robot instance containing model and data |
required |
unified_identif_config
|
dict
|
Configuration from create_task_config |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict
|
Identification configuration matching get_param_from_yaml output |
Example
unified_config = create_task_config(robot, parsed_config, ... "identification") legacy_config = unified_to_legacy_identif_config(robot, ... unified_config)
legacy_config has same keys as get_param_from_yaml output¶
Source code in src/figaroh/identification/config.py
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | |
get_param_from_yaml_legacy(robot, identif_data)
¶
Legacy identification parameter parser for backward compatibility.
This is the original implementation. New code should use the unified config parser from figaroh.utils.config_parser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
robot
|
Robot instance |
required | |
identif_data
|
Identification data dictionary |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Identification configuration dictionary |
Source code in src/figaroh/identification/config.py
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 | |
get_param_from_yaml_unified(robot, identif_data)
¶
Enhanced parameter parser using unified configuration system.
This function provides backward compatibility while using the new unified configuration parser when possible.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
robot
|
Robot instance |
required | |
identif_data
|
Configuration data (dict or file path) |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Identification configuration dictionary |
Source code in src/figaroh/identification/config.py
340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 | |
get_param_from_yaml_with_warning(robot, identif_data)
¶
Original function with deprecation notice.
Source code in src/figaroh/identification/config.py
367 368 369 370 371 372 373 374 375 376 377 378 | |
parameter¶
Parameter management utilities for robot identification.
This module handles parameter extraction, reordering, and management including: - Inertial parameter extraction and reordering - Standard additional parameters (friction, actuator inertia, offsets) - Custom parameter support - Parameter information queries
reorder_inertial_parameters(pinocchio_params)
¶
Reorder inertial parameters from Pinocchio format to desired format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pinocchio_params
|
Parameters in Pinocchio order [m, mx, my, mz, Ixx, Ixy, Iyy, Ixz, Iyz, Izz] |
required |
Returns:
| Name | Type | Description |
|---|---|---|
list |
Parameters in desired order [Ixx, Ixy, Ixz, Iyy, Iyz, Izz, mx, my, mz, m] |
Source code in src/figaroh/identification/parameter.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |
add_standard_additional_parameters(model, identif_config)
¶
Add standard additional parameters (actuator inertia, friction, offsets).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Robot model |
required | |
identif_config
|
dict
|
Identification configuration |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Additional parameters with their values |
Source code in src/figaroh/identification/parameter.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | |
add_custom_parameters(model, custom_params)
¶
Add custom user-defined parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Robot model |
required | |
custom_params
|
dict
|
Custom parameter definitions Format: {param_name: {values: list, per_joint: bool, default: float}} |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Custom parameters with their values |
Source code in src/figaroh/identification/parameter.py
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | |
get_standard_parameters(model, identif_config=None)
¶
Get standard inertial parameters from robot model with extensible parameter support.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Robot model (Pinocchio model) |
required | |
identif_config
|
dict
|
Dictionary of parameter settings |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Parameter names mapped to their values |
Source code in src/figaroh/identification/parameter.py
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 | |
get_parameter_info()
¶
Get information about available parameter types.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Information about standard and custom parameter types |
Source code in src/figaroh/identification/parameter.py
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 | |