Skip to content

Commit 2093d29

Browse files
committed
Add warning when only identifying payload and using regularization
1 parent 388b3d4 commit 2093d29

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/solve_inertial_param_sdp.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def main():
318318
parser.add_argument(
319319
"--regularization_weight",
320320
type=float,
321-
default=1e-3,
321+
default=1e-4,
322322
help="The regularization weight.",
323323
)
324324
parser.add_argument(
@@ -501,6 +501,12 @@ def main():
501501
+ "set."
502502
)
503503

504+
if payload_only and regularization_weight > 0.0:
505+
logging.warning(
506+
"Regularization is not recommended when identifying only the payload "
507+
+ "parameters as these are fully identifiable."
508+
)
509+
504510
logging.basicConfig(level=args.log_level)
505511
wandb.init(
506512
project="robot_payload_id",

0 commit comments

Comments
 (0)