Skip to content

Commit b19dd7e

Browse files
committed
Add option to constrain max total mass
1 parent 1327dd8 commit b19dd7e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/solve_inertial_param_sdp.py

+8
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,12 @@ def main():
361361
+ "idea if the initial parameters contain random values which can occur when "
362362
+ "some of the parameters are unidentifiable.",
363363
)
364+
parser.add_argument(
365+
"--known_max_mass",
366+
type=float,
367+
help="The known maximum mass of the robot. This is used to set the upper bound "
368+
+ "for the combined mass parameters.",
369+
)
364370
parser.add_argument(
365371
"--process_joint_data",
366372
action="store_true",
@@ -481,6 +487,7 @@ def main():
481487
initial_param_path = args.initial_param_path
482488
output_param_path = args.output_param_path
483489
use_initial_params_for_regularization = args.use_initial_params_for_regularization
490+
known_max_mass = args.known_max_mass
484491
do_process_joint_data = args.process_joint_data
485492
num_endpoints_to_remove = args.num_endpoints_to_remove
486493
compute_velocities = not args.not_compute_velocities
@@ -775,6 +782,7 @@ def main():
775782
identify_viscous_friction=identify_viscous_friction,
776783
identify_dynamic_dry_friction=identify_dynamic_dry_friction,
777784
payload_only=payload_only,
785+
known_max_mass=known_max_mass,
778786
solver_kPrintToConsole=args.kPrintToConsole,
779787
)
780788
if result.is_success():

0 commit comments

Comments
 (0)