Skip to content

Commit

Permalink
Rename foo_sensor.h --> foo.h
Browse files Browse the repository at this point in the history
- Modified references to `foo_sensor.h` to `foo.h` in the .cc and test
   files.
- Updated build file.
  • Loading branch information
SeanCurtis-TRI committed Oct 8, 2020
1 parent 2be3103 commit 22d3e2f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
8 changes: 6 additions & 2 deletions systems/sensors/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ drake_cc_package_library(
drake_cc_library(
name = "accelerometer",
srcs = ["accelerometer.cc"],
hdrs = ["accelerometer_sensor.h"],
hdrs = [
"accelerometer.h",
],
deps = [
"//math:geometric_transform",
"//multibody/math",
Expand Down Expand Up @@ -87,7 +89,9 @@ drake_cc_library(
drake_cc_library(
name = "gyroscope",
srcs = ["gyroscope.cc"],
hdrs = ["gyroscope_sensor.h"],
hdrs = [
"gyroscope.h",
],
deps = [
"//math:geometric_transform",
"//multibody/math",
Expand Down
4 changes: 1 addition & 3 deletions systems/sensors/accelerometer.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/* clang-format off to disable clang-format-includes */
#include "drake/systems/sensors/accelerometer_sensor.h"
/* clang-format on */
#include "drake/systems/sensors/accelerometer.h"

#include "drake/multibody/math/spatial_algebra.h"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
// TODO(Posa): Rename header to accelerometer.h to match the class name.

#include <memory>
#include <vector>

Expand Down
4 changes: 1 addition & 3 deletions systems/sensors/gyroscope.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/* clang-format off to disable clang-format-includes */
#include "drake/systems/sensors/gyroscope_sensor.h"
/* clang-format on */
#include "drake/systems/sensors/gyroscope.h"

#include "drake/multibody/math/spatial_algebra.h"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
// TODO(Posa): Rename header to gyroscope.h to match the class name.

#include <memory>
#include <vector>

Expand Down
3 changes: 2 additions & 1 deletion systems/sensors/test/accelerometer_test.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "drake/systems/sensors/accelerometer.h"

#include <gtest/gtest.h>

#include "drake/common/eigen_types.h"
Expand All @@ -7,7 +9,6 @@
#include "drake/multibody/plant/multibody_plant.h"
#include "drake/systems/framework/diagram_builder.h"
#include "drake/systems/framework/test_utilities/scalar_conversion.h"
#include "drake/systems/sensors/accelerometer_sensor.h"

namespace drake {
namespace {
Expand Down
3 changes: 2 additions & 1 deletion systems/sensors/test/gyroscope_test.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "drake/systems/sensors/gyroscope.h"

#include <gtest/gtest.h>

#include "drake/common/eigen_types.h"
Expand All @@ -7,7 +9,6 @@
#include "drake/multibody/plant/multibody_plant.h"
#include "drake/systems/framework/diagram_builder.h"
#include "drake/systems/framework/test_utilities/scalar_conversion.h"
#include "drake/systems/sensors/gyroscope_sensor.h"

namespace drake {
namespace {
Expand Down

0 comments on commit 22d3e2f

Please sign in to comment.