Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bazeliskrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Keep this version up to date with the version used by drake
USE_BAZEL_VERSION=8.2.1
USE_BAZEL_VERSION=8.4.0
21 changes: 12 additions & 9 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ module(
# If you don't want to support building on macOS, you may remove the next line.
# Note that it must appear prior to loading "rules_cc", per the documentation:
# https://github.com/bazelbuild/apple_support?tab=readme-ov-file#bazel-7-setup
bazel_dep(name = "apple_support", version = "1.17.1", repo_name = "build_bazel_apple_support")
bazel_dep(name = "apple_support", version = "2.3.0")

# Add the Bazel rules we need.
bazel_dep(name = "rules_cc", version = "0.1.1")
bazel_dep(name = "rules_python", version = "1.0.0")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "rules_java", version = "9.6.1")
bazel_dep(name = "rules_cc", version = "0.2.17")
bazel_dep(name = "rules_python", version = "1.9.0")
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "rules_foreign_cc", version = "0.15.1")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "lcm", version = "1.5.2")
bazel_dep(name = "gflags", version = "2.2.2.bcr.1")
bazel_dep(name = "googletest", version = "1.17.0.bcr.2")

drake_dep_repositories = use_extension(
"@drake//tools/workspace:default.bzl",
Expand All @@ -20,11 +26,8 @@ drake_dep_repositories = use_extension(

use_repo(
drake_dep_repositories,
"lcm",
"eigen",
"fmt",
"gflags",
"gtest",
"pybind11",
"gurobi",
)
Expand All @@ -45,8 +48,8 @@ override_repo(
bazel_dep(name = "drake")

# You can also use DRAKE_COMMIT to choose a Drake release; e.g.:
DRAKE_COMMIT = "v1.42.0"
DRAKE_CHECKSUM = "d860c15f50397c8a946fcc79e0a58a91ebc56f2189ef9edfcac929aa04157f8b"
DRAKE_COMMIT = "v1.51.1"
DRAKE_CHECKSUM = "40cb4d0e3d378ba67c21aca8cc1396399774b333b12d0030f5fbe4ddff1dc786"

# Before changing the COMMIT, temporarily uncomment the next line so that Bazel
# displays the suggested new value for the CHECKSUM.
Expand Down
2 changes: 1 addition & 1 deletion core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ cc_test(
":c3",
":c3_cartpole_problem",
":traj_eval",
"@gtest//:main",
"@googletest//:gtest_main",
],
env_inherit = [
"GUROBI_HOME",
Expand Down
6 changes: 3 additions & 3 deletions core/c3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ void C3::Solve(const VectorXd& x0) {

// Set the initial force constraint
if (h_is_zero_ == 1) { // No dependence on u, so just simulate passive system
drake::solvers::MobyLCPSolver<double> LCPSolver;
drake::solvers::MobyLcpSolver LcpSolver;
VectorXd lambda0;
LCPSolver.SolveLcpLemke(lcs_.F()[0], lcs_.E()[0] * x0 + lcs_.c()[0],
LcpSolver.SolveLcpLemke(lcs_.F()[0], lcs_.E()[0] * x0 + lcs_.c()[0],
&lambda0);
// Force constraints to be updated before every solve if no dependence on
// u
Expand Down Expand Up @@ -470,7 +470,7 @@ vector<VectorXd> C3::SolveProjection(const vector<MatrixXd>& U,
if (options_.num_threads > 0) {
omp_set_dynamic(0); // Explicitly disable dynamic teams
omp_set_num_threads(options_.num_threads); // Set number of threads
omp_set_nested(0);
omp_set_max_active_levels(1);
omp_set_schedule(omp_sched_static, 0);
}

Expand Down
6 changes: 4 additions & 2 deletions core/c3_qp.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ class C3QP final : public C3 {
solver_options->SetOption(drake::solvers::OsqpSolver::id(), "max_iter",
500);
solver_options->SetOption(drake::solvers::OsqpSolver::id(), "verbose", 0);
solver_options->SetOption(drake::solvers::OsqpSolver::id(), "polish", 1);
solver_options->SetOption(drake::solvers::OsqpSolver::id(), "warm_starting",
1);
solver_options->SetOption(drake::solvers::OsqpSolver::id(), "polishing", 1);
solver_options->SetOption(drake::solvers::OsqpSolver::id(),
"polish_refine_iter", 1);
solver_options->SetOption(drake::solvers::OsqpSolver::id(), "rho", 1e-4);
Expand All @@ -45,4 +47,4 @@ class C3QP final : public C3 {
}
};

} // namespace c3
} // namespace c3
8 changes: 4 additions & 4 deletions core/configs/solver_options_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ log_file_name: ""
int_options:
max_iter: 1000
verbose: 0
warm_start: 1
polish: 1
warm_starting: 1
polishing: 1
polish_refine_iter: 3
scaled_termination: 1
check_termination: 25
polish_refine_iter: 3
scaling: 10
adaptive_rho: 1
adaptive_rho_interval: 0
Expand All @@ -25,4 +25,4 @@ double_options:
adaptive_rho_fraction: 0.4
time_limit: 1.0

string_options: {}
string_options: {}
6 changes: 3 additions & 3 deletions core/lcs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ const VectorXd LCS::Simulate(const VectorXd& x_init, const VectorXd& u,
const LCSSimulateConfig& config) const {
VectorXd x_final;
VectorXd force;
drake::solvers::MobyLCPSolver<double> LCPSolver;
drake::solvers::MobyLcpSolver LcpSolver;
if (config.regularized) {
LCPSolver.SolveLcpLemkeRegularized(
LcpSolver.SolveLcpLemkeRegularized(
F_[0], E_[0] * x_init + c_[0] + H_[0] * u, &force, config.min_exp,
config.step_exp, config.max_exp, config.piv_tol, config.zero_tol);
} else {
LCPSolver.SolveLcpLemke(F_[0], E_[0] * x_init + c_[0] + H_[0] * u, &force,
LcpSolver.SolveLcpLemke(F_[0], E_[0] * x_init + c_[0] + H_[0] * u, &force,
config.piv_tol, config.zero_tol);
}
x_final = A_[0] * x_init + B_[0] * u + D_[0] * force + d_[0];
Expand Down
2 changes: 1 addition & 1 deletion core/test/core_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@
};

// Test constructor (maintain backward compatibility if constructor changed)
TEST_F(C3CartpoleTest, InitializationTest) {

Check notice on line 74 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L74

C3CartpoleTest.InitializationTest

Check notice on line 74 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L74

C3CartpoleTest.InitializationTest

Check notice on line 74 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L74

C3CartpoleTest.InitializationTest

Check notice on line 74 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L74

C3CartpoleTest.InitializationTest

Check notice on line 74 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L74

C3CartpoleTest.InitializationTest

Check notice on line 74 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L74

C3CartpoleTest.InitializationTest
// Assert system initialization is working as expected
ASSERT_NE(nullptr, pOpt);
}

// Test if GetLinearConstraints is working as expected
TEST_F(C3CartpoleTest, LinearConstraintsTest) {

Check notice on line 80 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L80

C3CartpoleTest.LinearConstraintsTest

Check notice on line 80 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L80

C3CartpoleTest.LinearConstraintsTest

Check notice on line 80 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L80

C3CartpoleTest.LinearConstraintsTest

Check notice on line 80 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L80

C3CartpoleTest.LinearConstraintsTest

Check notice on line 80 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L80

C3CartpoleTest.LinearConstraintsTest

Check notice on line 80 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L80

C3CartpoleTest.LinearConstraintsTest
std::vector<LinearConstraintBinding> user_constraints;
ASSERT_NO_THROW({ user_constraints = pOpt->GetLinearConstraints(); });
ASSERT_EQ(user_constraints.size(), 0);
Expand All @@ -95,7 +95,7 @@
};

// Test if user can manipulate linear constraints using MatrixXd
TEST_P(C3CartpoleTestParameterizedLinearConstraints, LinearConstraintsTest) {

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/0

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/1

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/2

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/3

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/4

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/5

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/0

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/1

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/2

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/3

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/4

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/5

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/0

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/1

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/2

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/3

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/4

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/5

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/0

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/1

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/2

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/3

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/4

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/5

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/0

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/1

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/2

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/3

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/4

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/5

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/0

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/1

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/2

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/3

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/4

Check notice on line 98 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L98

LinearConstraintTests/C3CartpoleTestParameterizedLinearConstraints.LinearConstraintsTest/5
bool use_row_vector = std::get<0>(GetParam());
c3::ConstraintVariable constraint_type =
static_cast<c3::ConstraintVariable>(std::get<1>(GetParam()));
Expand Down Expand Up @@ -144,7 +144,7 @@
));

// Test if user can remove linear constraints
TEST_F(C3CartpoleTest, RemoveLinearConstraintsTest) {

Check notice on line 147 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L147

C3CartpoleTest.RemoveLinearConstraintsTest

Check notice on line 147 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L147

C3CartpoleTest.RemoveLinearConstraintsTest

Check notice on line 147 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L147

C3CartpoleTest.RemoveLinearConstraintsTest

Check notice on line 147 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L147

C3CartpoleTest.RemoveLinearConstraintsTest

Check notice on line 147 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L147

C3CartpoleTest.RemoveLinearConstraintsTest

Check notice on line 147 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L147

C3CartpoleTest.RemoveLinearConstraintsTest
RowVectorXd Al = RowVectorXd::Constant(n, 1.0);
double lb = 0.0;
double ub = 2.0;
Expand All @@ -168,7 +168,7 @@
}

// Test if user can update the target state
TEST_F(C3CartpoleTest, UpdateTargetTest) {

Check notice on line 171 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L171

C3CartpoleTest.UpdateTargetTest

Check notice on line 171 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L171

C3CartpoleTest.UpdateTargetTest

Check notice on line 171 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L171

C3CartpoleTest.UpdateTargetTest

Check notice on line 171 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L171

C3CartpoleTest.UpdateTargetTest

Check notice on line 171 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L171

C3CartpoleTest.UpdateTargetTest

Check notice on line 171 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L171

C3CartpoleTest.UpdateTargetTest
// Desired state : random state
VectorXd xdesiredinit;
xdesiredinit = Eigen::Vector4d(0.0, 1.0, 2.0, 3.0);
Expand All @@ -191,7 +191,7 @@
}

// Test if user can update the Cost matrices
TEST_F(C3CartpoleTest, UpdateCostMatrix) {

Check notice on line 194 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L194

C3CartpoleTest.UpdateCostMatrix

Check notice on line 194 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L194

C3CartpoleTest.UpdateCostMatrix

Check notice on line 194 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L194

C3CartpoleTest.UpdateCostMatrix

Check notice on line 194 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L194

C3CartpoleTest.UpdateCostMatrix

Check notice on line 194 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L194

C3CartpoleTest.UpdateCostMatrix

Check notice on line 194 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L194

C3CartpoleTest.UpdateCostMatrix
vector<MatrixXd> Q(N + 1, MatrixXd::Zero(n, n));
vector<MatrixXd> R(N, MatrixXd::Zero(k, k));
vector<MatrixXd> G(N, MatrixXd::Zero(n + m + k, n + m + k));
Expand Down Expand Up @@ -233,7 +233,7 @@
// [Regression Test] Ensure that LCS in correctly scaled (if required) and used
// in dynamic constraints. This should be true if C3 initialized or LCS is
// updated.
TEST_P(C3CartpoleTestParameterizedScalingLCSTest, ScalingLCSTest) {

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/0

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/1

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/2

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/3

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/0

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/1

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/2

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/3

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/0

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/1

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/2

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/3

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/0

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/1

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/2

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/3

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/0

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/1

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/2

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/3

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/0

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/1

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/2

Check notice on line 236 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L236

ScalingLCSTests/C3CartpoleTestParameterizedScalingLCSTest.ScalingLCSTest/3
options.scale_lcs = std::get<0>(GetParam());
bool use_update_lcs = std::get<1>(GetParam());

Expand Down Expand Up @@ -278,7 +278,7 @@
// Ensure z_sol values not stale due to INFEASIBLE CONSTRAINTS which had occured
// when initial force constraints were incorrectly updated when H is zero.
// Note: this test only works if options.end_on_qp_step = true
TEST_F(C3CartpoleTest, ZSolStaleTest) {

Check notice on line 281 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L281

C3CartpoleTest.ZSolStaleTest

Check notice on line 281 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L281

C3CartpoleTest.ZSolStaleTest

Check notice on line 281 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L281

C3CartpoleTest.ZSolStaleTest

Check notice on line 281 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L281

C3CartpoleTest.ZSolStaleTest

Check notice on line 281 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L281

C3CartpoleTest.ZSolStaleTest

Check notice on line 281 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L281

C3CartpoleTest.ZSolStaleTest
int timesteps = 5; // number of timesteps for the simulation

// Create state and input arrays
Expand Down Expand Up @@ -306,7 +306,7 @@
}

// Test if CreatePlaceholderLCS works as expected
TEST_F(C3CartpoleTest, CreatePlaceholder) {

Check notice on line 309 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L309

C3CartpoleTest.CreatePlaceholder

Check notice on line 309 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L309

C3CartpoleTest.CreatePlaceholder

Check notice on line 309 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L309

C3CartpoleTest.CreatePlaceholder

Check notice on line 309 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L309

C3CartpoleTest.CreatePlaceholder

Check notice on line 309 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L309

C3CartpoleTest.CreatePlaceholder

Check notice on line 309 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L309

C3CartpoleTest.CreatePlaceholder
// Create a placeholder LCS object
LCS placeholder = LCS::CreatePlaceholderLCS(n, k, m, N, dt);
// Ensure the object is created without any issues
Expand All @@ -314,7 +314,7 @@
}

// Test if the solver works with warm start enabled (smoke test)
TEST_F(C3CartpoleTest, WarmStartSmokeTest) {

Check notice on line 317 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L317

C3CartpoleTest.WarmStartSmokeTest

Check notice on line 317 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L317

C3CartpoleTest.WarmStartSmokeTest

Check notice on line 317 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L317

C3CartpoleTest.WarmStartSmokeTest

Check notice on line 317 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L317

C3CartpoleTest.WarmStartSmokeTest

Check notice on line 317 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L317

C3CartpoleTest.WarmStartSmokeTest

Check notice on line 317 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L317

C3CartpoleTest.WarmStartSmokeTest
// Enable warm start option
options.warm_start = true;
C3MIQP optimizer(*pSystem, cost, xdesired, options);
Expand All @@ -325,7 +325,7 @@

class TrajectoryEvaluatorTest : public testing::Test {};

TEST_F(TrajectoryEvaluatorTest, QuadraticCostMatchesManual) {

Check notice on line 328 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L328

TrajectoryEvaluatorTest.QuadraticCostMatchesManual

Check notice on line 328 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L328

TrajectoryEvaluatorTest.QuadraticCostMatchesManual

Check notice on line 328 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L328

TrajectoryEvaluatorTest.QuadraticCostMatchesManual

Check notice on line 328 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L328

TrajectoryEvaluatorTest.QuadraticCostMatchesManual

Check notice on line 328 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L328

TrajectoryEvaluatorTest.QuadraticCostMatchesManual

Check notice on line 328 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L328

TrajectoryEvaluatorTest.QuadraticCostMatchesManual
std::vector<VectorXd> x(2, VectorXd::Zero(1));
std::vector<VectorXd> u(1, VectorXd::Zero(1));
std::vector<VectorXd> lambda(1, VectorXd::Zero(1));
Expand Down Expand Up @@ -426,7 +426,7 @@
x, x_des, Q, u, u_des, R, lambda, lambda_des, S_wrong_size));
}

TEST_F(TrajectoryEvaluatorTest, SimulatePDControlWithLCSTest) {

Check notice on line 429 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L429

TrajectoryEvaluatorTest.SimulatePDControlWithLCSTest

Check notice on line 429 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L429

TrajectoryEvaluatorTest.SimulatePDControlWithLCSTest

Check notice on line 429 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L429

TrajectoryEvaluatorTest.SimulatePDControlWithLCSTest

Check notice on line 429 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L429

TrajectoryEvaluatorTest.SimulatePDControlWithLCSTest

Check notice on line 429 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L429

TrajectoryEvaluatorTest.SimulatePDControlWithLCSTest

Check notice on line 429 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L429

TrajectoryEvaluatorTest.SimulatePDControlWithLCSTest
const int n = 4; // 4 states: 2 positions, 2 velocities
const int k = 2; // 2 inputs
const int m = 1;
Expand Down Expand Up @@ -509,7 +509,7 @@
x_plan, u_plan, Kp_wrong_count, Kd, lcs));
}

TEST_F(TrajectoryEvaluatorTest, ZeroOrderHoldAndDownsampleRoundTrip) {

Check notice on line 512 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L512

TrajectoryEvaluatorTest.ZeroOrderHoldAndDownsampleRoundTrip

Check notice on line 512 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L512

TrajectoryEvaluatorTest.ZeroOrderHoldAndDownsampleRoundTrip

Check notice on line 512 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L512

TrajectoryEvaluatorTest.ZeroOrderHoldAndDownsampleRoundTrip

Check notice on line 512 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L512

TrajectoryEvaluatorTest.ZeroOrderHoldAndDownsampleRoundTrip

Check notice on line 512 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L512

TrajectoryEvaluatorTest.ZeroOrderHoldAndDownsampleRoundTrip

Check notice on line 512 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L512

TrajectoryEvaluatorTest.ZeroOrderHoldAndDownsampleRoundTrip
std::vector<VectorXd> coarse(2, VectorXd::Zero(2));
coarse[0] << 1.0, 2.0;
coarse[1] << 3.0, 4.0;
Expand All @@ -530,7 +530,7 @@
EXPECT_TRUE(downsampled[1].isApprox(coarse[1]));
}

TEST_F(TrajectoryEvaluatorTest, MultiZeroOrderHoldAndDownsampleRoundTrip) {

Check notice on line 533 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L533

TrajectoryEvaluatorTest.MultiZeroOrderHoldAndDownsampleRoundTrip

Check notice on line 533 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L533

TrajectoryEvaluatorTest.MultiZeroOrderHoldAndDownsampleRoundTrip

Check notice on line 533 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L533

TrajectoryEvaluatorTest.MultiZeroOrderHoldAndDownsampleRoundTrip

Check notice on line 533 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L533

TrajectoryEvaluatorTest.MultiZeroOrderHoldAndDownsampleRoundTrip

Check notice on line 533 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L533

TrajectoryEvaluatorTest.MultiZeroOrderHoldAndDownsampleRoundTrip

Check notice on line 533 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L533

TrajectoryEvaluatorTest.MultiZeroOrderHoldAndDownsampleRoundTrip
std::vector<VectorXd> x_coarse(3, VectorXd::Zero(2));
x_coarse[0] << 1.0, 2.0;
x_coarse[1] << 3.0, 4.0;
Expand Down Expand Up @@ -586,7 +586,7 @@
}

TEST_F(TrajectoryEvaluatorTest,
SimulateLCSOverTrajectoryMatchesLinearDynamics) {

Check notice on line 589 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L589

TrajectoryEvaluatorTest.SimulateLCSOverTrajectoryMatchesLinearDynamics

Check notice on line 589 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L589

TrajectoryEvaluatorTest.SimulateLCSOverTrajectoryMatchesLinearDynamics

Check notice on line 589 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L589

TrajectoryEvaluatorTest.SimulateLCSOverTrajectoryMatchesLinearDynamics

Check notice on line 589 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L589

TrajectoryEvaluatorTest.SimulateLCSOverTrajectoryMatchesLinearDynamics

Check notice on line 589 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L589

TrajectoryEvaluatorTest.SimulateLCSOverTrajectoryMatchesLinearDynamics

Check notice on line 589 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L589

TrajectoryEvaluatorTest.SimulateLCSOverTrajectoryMatchesLinearDynamics
const int n = 2;
const int k = 2;
const int m = 1;
Expand Down Expand Up @@ -654,7 +654,7 @@
TYPED_TEST_SUITE(C3CartpoleTypedTest, projection_types);

// Test if user can update the LCS for the C3 problem
TYPED_TEST(C3CartpoleTypedTest, UpdateLCSTest) {

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L657

C3CartpoleTypedTest/0.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L657

C3CartpoleTypedTest/1.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L657

C3CartpoleTypedTest/2.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L657

C3CartpoleTypedTest/0.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L657

C3CartpoleTypedTest/1.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L657

C3CartpoleTypedTest/2.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L657

C3CartpoleTypedTest/0.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L657

C3CartpoleTypedTest/1.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L657

C3CartpoleTypedTest/2.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L657

C3CartpoleTypedTest/0.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L657

C3CartpoleTypedTest/1.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L657

C3CartpoleTypedTest/2.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L657

C3CartpoleTypedTest/0.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L657

C3CartpoleTypedTest/1.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L657

C3CartpoleTypedTest/2.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L657

C3CartpoleTypedTest/0.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L657

C3CartpoleTypedTest/1.UpdateLCSTest

Check notice on line 657 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L657

C3CartpoleTypedTest/2.UpdateLCSTest
c3::C3* pOpt = this->pOpt.get();
auto dt = this->dt;
std::vector<drake::solvers::LinearEqualityConstraint*>
Expand Down Expand Up @@ -695,7 +695,7 @@

// Test the cartpole example
// This test will take some time to complete ~30s
TYPED_TEST(C3CartpoleTypedTest, End2EndCartpoleTest) {

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L698

C3CartpoleTypedTest/0.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L698

C3CartpoleTypedTest/1.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L698

C3CartpoleTypedTest/2.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L698

C3CartpoleTypedTest/0.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L698

C3CartpoleTypedTest/1.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L698

C3CartpoleTypedTest/2.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L698

C3CartpoleTypedTest/0.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L698

C3CartpoleTypedTest/1.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L698

C3CartpoleTypedTest/2.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L698

C3CartpoleTypedTest/0.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L698

C3CartpoleTypedTest/1.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L698

C3CartpoleTypedTest/2.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L698

C3CartpoleTypedTest/0.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L698

C3CartpoleTypedTest/1.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L698

C3CartpoleTypedTest/2.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L698

C3CartpoleTypedTest/0.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L698

C3CartpoleTypedTest/1.End2EndCartpoleTest

Check notice on line 698 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L698

C3CartpoleTypedTest/2.End2EndCartpoleTest
int timesteps = 1000; // number of timesteps for the simulation

/// create state and input arrays
Expand Down Expand Up @@ -723,7 +723,7 @@
ASSERT_EQ(x[timesteps - 1].isZero(0.1), true);
}

TYPED_TEST(C3CartpoleTypedTest, ComputeCost) {

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L726

C3CartpoleTypedTest/0.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L726

C3CartpoleTypedTest/1.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L726

C3CartpoleTypedTest/2.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L726

C3CartpoleTypedTest/0.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L726

C3CartpoleTypedTest/1.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L726

C3CartpoleTypedTest/2.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L726

C3CartpoleTypedTest/0.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L726

C3CartpoleTypedTest/1.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / jammy

core/test/core_test.cc#L726

C3CartpoleTypedTest/2.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L726

C3CartpoleTypedTest/0.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L726

C3CartpoleTypedTest/1.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L726

C3CartpoleTypedTest/2.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L726

C3CartpoleTypedTest/0.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L726

C3CartpoleTypedTest/1.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L726

C3CartpoleTypedTest/2.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L726

C3CartpoleTypedTest/0.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L726

C3CartpoleTypedTest/1.ComputeCost

Check notice on line 726 in core/test/core_test.cc

View check run for this annotation

Cirrus CI / noble

core/test/core_test.cc#L726

C3CartpoleTypedTest/2.ComputeCost
C3Options options_no_input_change = this->options;
options_no_input_change.penalize_input_change = false;
TypeParam optimizer(*this->pSystem, this->cost, this->xdesired,
Expand Down Expand Up @@ -777,4 +777,4 @@
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
}
2 changes: 1 addition & 1 deletion multibody/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ cc_test(
],
deps = [
":lcs_factory",
"@gtest//:main",
"@googletest//:gtest_main",
],
size = "small",
)
Expand Down
6 changes: 3 additions & 3 deletions systems/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ cc_test(
deps = [
":systems",
"//core:c3_cartpole_problem",
"@gtest//:main",
"@googletest//:gtest_main",
],
env_inherit = [
"GUROBI_HOME",
Expand All @@ -141,7 +141,7 @@ cc_test(
deps = [
":systems",
":framework",
"@gtest//:main",
"@googletest//:gtest_main",
],
size = "small",
)
Expand All @@ -159,7 +159,7 @@ cc_test(
deps = [
"//core:c3",
":systems",
"@gtest//:main",
"@googletest//:gtest_main",
],
size = "small",
)
Expand Down
Loading