Skip to content

Commit

Permalink
Moves 'multibody/constraint' into a private location. Remove old (wro…
Browse files Browse the repository at this point in the history
…ng) references in our Doxygen documentation.
  • Loading branch information
amcastro-tri committed May 21, 2024
1 parent 91e03c5 commit 0f4c04a
Show file tree
Hide file tree
Showing 12 changed files with 149 additions and 151 deletions.
5 changes: 0 additions & 5 deletions doc/doxygen_cxx/doxygen.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,6 @@ namespace solvers {
*/
} // namespace solvers

/**
@defgroup constraint_overview Multibody Dynamics Constraints
@ingroup multibody
*/

// TODO(russt): Take a thorough pass through the algorithms group
// documentation, adding brief descriptions of each and tagging the relevant
// algorithms throughout the code.
Expand Down
6 changes: 3 additions & 3 deletions examples/rod2d/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ drake_cc_library(
hdrs = [
"rod2d.h",
],
visibility = ["//multibody/constraint:__pkg__"],
visibility = ["//examples/rod2d/constraint:__pkg__"],
deps = [
":rod2d_state_vector",
"//common:essential",
"//multibody/constraint",
"//examples/rod2d/constraint",
"//solvers:mathematical_program",
"//systems/framework:leaf_system",
],
Expand Down Expand Up @@ -84,7 +84,7 @@ drake_cc_googletest(
"//common:essential",
"//common/test_utilities:eigen_matrix_compare",
"//common/test_utilities:expect_no_throw",
"//multibody/constraint",
"//examples/rod2d/constraint",
"//systems/analysis:simulator",
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ load(
"drake_cc_package_library",
)

package(default_visibility = ["//visibility:public"])
package(default_visibility = ["//visibility:private"])

drake_cc_package_library(
name = "constraint",
visibility = ["//visibility:public"],
visibility = ["//examples/rod2d:__pkg__"],
deps = [
":constraint_problem_data",
":constraint_solver",
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "drake/multibody/constraint/constraint_solver.h"
#include "drake/examples/rod2d/constraint/constraint_solver.h"

namespace drake {
namespace multibody {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "drake/common/fmt_eigen.h"
#include "drake/common/text_logging.h"
#include "drake/multibody/constraint/constraint_problem_data.h"
#include "drake/examples/rod2d/constraint/constraint_problem_data.h"
#include "drake/solvers/moby_lcp_solver.h"

namespace drake {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "drake/multibody/constraint/constraint_solver.h"
#include "drake/examples/rod2d/constraint/constraint_solver.h"

#include <cmath>
#include <memory>
Expand Down
4 changes: 2 additions & 2 deletions examples/rod2d/rod2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#include <utility>
#include <vector>

#include "drake/examples/rod2d/constraint/constraint_problem_data.h"
#include "drake/examples/rod2d/constraint/constraint_solver.h"
#include "drake/examples/rod2d/rod2d_state_vector.h"
#include "drake/multibody/constraint/constraint_problem_data.h"
#include "drake/multibody/constraint/constraint_solver.h"
#include "drake/solvers/moby_lcp_solver.h"
#include "drake/systems/framework/leaf_system.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/rod2d/test/rod2d_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

#include "drake/common/test_utilities/eigen_matrix_compare.h"
#include "drake/common/test_utilities/expect_no_throw.h"
#include "drake/multibody/constraint/constraint_problem_data.h"
#include "drake/multibody/constraint/constraint_solver.h"
#include "drake/examples/rod2d/constraint/constraint_problem_data.h"
#include "drake/examples/rod2d/constraint/constraint_solver.h"
#include "drake/systems/analysis/simulator.h"

using drake::multibody::constraint::ConstraintAccelProblemData;
Expand Down
1 change: 0 additions & 1 deletion tools/install/libdrake/build_components.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ LIBDRAKE_COMPONENTS = [
"//multibody/benchmarks/kuka_iiwa_robot",
"//multibody/benchmarks/mass_damper_spring",
"//multibody/benchmarks/pendulum",
"//multibody/constraint",
"//multibody/contact_solvers",
"//multibody/contact_solvers/sap",
"//multibody/fem",
Expand Down

0 comments on commit 0f4c04a

Please sign in to comment.