Skip to content

Commit

Permalink
move headers to include/autoware/efk_localier
Browse files Browse the repository at this point in the history
Signed-off-by: a-maumau <[email protected]>
  • Loading branch information
a-maumau committed Sep 17, 2024
1 parent 822d941 commit 0750dcf
Show file tree
Hide file tree
Showing 33 changed files with 87 additions and 91 deletions.
4 changes: 0 additions & 4 deletions localization/autoware_ekf_localizer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ function(add_testcase filepath)
endfunction()

if(BUILD_TESTING)
include_directories(
src
)

add_launch_test(
test/test_ekf_localizer_launch.py
TIMEOUT "30"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef AGED_OBJECT_QUEUE_HPP_
#define AGED_OBJECT_QUEUE_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__AGED_OBJECT_QUEUE_HPP_
#define AUTOWARE__EKF_LOCALIZER__AGED_OBJECT_QUEUE_HPP_

#include <cstddef>
#include <queue>
Expand Down Expand Up @@ -68,4 +68,4 @@ class AgedObjectQueue

} // namespace autoware::ekf_localizer

#endif // AGED_OBJECT_QUEUE_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__AGED_OBJECT_QUEUE_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef COVARIANCE_HPP_
#define COVARIANCE_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__COVARIANCE_HPP_
#define AUTOWARE__EKF_LOCALIZER__COVARIANCE_HPP_

#include "matrix_types.hpp"
#include "autoware/ekf_localizer/matrix_types.hpp"

namespace autoware::ekf_localizer
{
Expand All @@ -25,4 +25,4 @@ std::array<double, 36> ekf_covariance_to_twist_message_covariance(const Matrix6d

} // namespace autoware::ekf_localizer

#endif // COVARIANCE_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__COVARIANCE_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef DIAGNOSTICS_HPP_
#define DIAGNOSTICS_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__DIAGNOSTICS_HPP_
#define AUTOWARE__EKF_LOCALIZER__DIAGNOSTICS_HPP_

#include <diagnostic_msgs/msg/diagnostic_status.hpp>

Expand Down Expand Up @@ -45,4 +45,4 @@ diagnostic_msgs::msg::DiagnosticStatus merge_diagnostic_status(

} // namespace autoware::ekf_localizer

#endif // DIAGNOSTICS_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__DIAGNOSTICS_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EKF_LOCALIZER_HPP_
#define EKF_LOCALIZER_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__EKF_LOCALIZER_HPP_
#define AUTOWARE__EKF_LOCALIZER__EKF_LOCALIZER_HPP_

#include "aged_object_queue.hpp"
#include "ekf_module.hpp"
#include "hyper_parameters.hpp"
#include "warning.hpp"
#include "autoware/ekf_localizer/aged_object_queue.hpp"
#include "autoware/ekf_localizer/ekf_module.hpp"
#include "autoware/ekf_localizer/hyper_parameters.hpp"
#include "autoware/ekf_localizer/warning.hpp"

#include <autoware/universe_utils/geometry/geometry.hpp>
#include <autoware/universe_utils/ros/logger_level_configure.hpp>
Expand Down Expand Up @@ -198,4 +198,4 @@ class EKFLocalizer : public rclcpp::Node

} // namespace autoware::ekf_localizer

#endif // EKF_LOCALIZER_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__EKF_LOCALIZER_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EKF_MODULE_HPP_
#define EKF_MODULE_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__EKF_MODULE_HPP_
#define AUTOWARE__EKF_LOCALIZER__EKF_MODULE_HPP_

#include "hyper_parameters.hpp"
#include "state_index.hpp"
#include "warning.hpp"
#include "autoware/ekf_localizer/hyper_parameters.hpp"
#include "autoware/ekf_localizer/state_index.hpp"
#include "autoware/ekf_localizer/warning.hpp"

#include <autoware/kalman_filter/kalman_filter.hpp>
#include <autoware/kalman_filter/time_delay_kalman_filter.hpp>
Expand Down Expand Up @@ -153,4 +153,4 @@ class EKFModule

} // namespace autoware::ekf_localizer

#endif // EKF_MODULE_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__EKF_MODULE_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef HYPER_PARAMETERS_HPP_
#define HYPER_PARAMETERS_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__HYPER_PARAMETERS_HPP_
#define AUTOWARE__EKF_LOCALIZER__HYPER_PARAMETERS_HPP_

#include <rclcpp/rclcpp.hpp>

Expand Down Expand Up @@ -107,4 +107,4 @@ class HyperParameters

} // namespace autoware::ekf_localizer

#endif // HYPER_PARAMETERS_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__HYPER_PARAMETERS_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef MAHALANOBIS_HPP_
#define MAHALANOBIS_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__MAHALANOBIS_HPP_
#define AUTOWARE__EKF_LOCALIZER__MAHALANOBIS_HPP_

#include <Eigen/Core>
#include <Eigen/Dense>
Expand All @@ -28,4 +28,4 @@ double mahalanobis(const Eigen::VectorXd & x, const Eigen::VectorXd & y, const E

} // namespace autoware::ekf_localizer

#endif // MAHALANOBIS_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__MAHALANOBIS_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef MATRIX_TYPES_HPP_
#define MATRIX_TYPES_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__MATRIX_TYPES_HPP_
#define AUTOWARE__EKF_LOCALIZER__MATRIX_TYPES_HPP_

#include <Eigen/Core>

Expand All @@ -25,4 +25,4 @@ using Matrix6d = Eigen::Matrix<double, 6, 6>;

} // namespace autoware::ekf_localizer

#endif // MATRIX_TYPES_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__MATRIX_TYPES_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef MEASUREMENT_HPP_
#define MEASUREMENT_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__MEASUREMENT_HPP_
#define AUTOWARE__EKF_LOCALIZER__MEASUREMENT_HPP_

#include <Eigen/Core>

Expand All @@ -29,4 +29,4 @@ Eigen::Matrix2d twist_measurement_covariance(

} // namespace autoware::ekf_localizer

#endif // MEASUREMENT_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__MEASUREMENT_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef NUMERIC_HPP_
#define NUMERIC_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__NUMERIC_HPP_
#define AUTOWARE__EKF_LOCALIZER__NUMERIC_HPP_

#include <Eigen/Core>

Expand All @@ -34,4 +34,4 @@ inline bool has_nan(const Eigen::MatrixXd & v)

} // namespace autoware::ekf_localizer

#endif // NUMERIC_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__NUMERIC_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef STATE_INDEX_HPP_
#define STATE_INDEX_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__STATE_INDEX_HPP_
#define AUTOWARE__EKF_LOCALIZER__STATE_INDEX_HPP_

namespace autoware::ekf_localizer
{
Expand All @@ -29,4 +29,4 @@ enum IDX {

} // namespace autoware::ekf_localizer

#endif // STATE_INDEX_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__STATE_INDEX_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef STATE_TRANSITION_HPP_
#define STATE_TRANSITION_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__STATE_TRANSITION_HPP_
#define AUTOWARE__EKF_LOCALIZER__STATE_TRANSITION_HPP_

#include "matrix_types.hpp"
#include "autoware/ekf_localizer/matrix_types.hpp"

namespace autoware::ekf_localizer
{
Expand All @@ -28,4 +28,4 @@ Matrix6d process_noise_covariance(

} // namespace autoware::ekf_localizer

#endif // STATE_TRANSITION_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__STATE_TRANSITION_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef STRING_HPP_
#define STRING_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__STRING_HPP_
#define AUTOWARE__EKF_LOCALIZER__STRING_HPP_

#include <string>

Expand All @@ -31,4 +31,4 @@ inline std::string erase_leading_slash(const std::string & s)

} // namespace autoware::ekf_localizer

#endif // STRING_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__STRING_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef WARNING_HPP_
#define WARNING_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__WARNING_HPP_
#define AUTOWARE__EKF_LOCALIZER__WARNING_HPP_

#include <rclcpp/rclcpp.hpp>

Expand Down Expand Up @@ -45,4 +45,4 @@ class Warning

} // namespace autoware::ekf_localizer

#endif // WARNING_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__WARNING_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef WARNING_MESSAGE_HPP_
#define WARNING_MESSAGE_HPP_
#ifndef AUTOWARE__EKF_LOCALIZER__WARNING_MESSAGE_HPP_
#define AUTOWARE__EKF_LOCALIZER__WARNING_MESSAGE_HPP_

#include <string>

Expand All @@ -30,4 +30,4 @@ std::string mahalanobis_warning_message(const double distance, const double max_

} // namespace autoware::ekf_localizer

#endif // WARNING_MESSAGE_HPP_
#endif // AUTOWARE__EKF_LOCALIZER__WARNING_MESSAGE_HPP_
4 changes: 2 additions & 2 deletions localization/autoware_ekf_localizer/src/covariance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "covariance.hpp"
#include "autoware/ekf_localizer/covariance.hpp"

#include "autoware/ekf_localizer/state_index.hpp"
#include "autoware/universe_utils/ros/msg_covariance.hpp"
#include "state_index.hpp"

namespace autoware::ekf_localizer
{
Expand Down
2 changes: 1 addition & 1 deletion localization/autoware_ekf_localizer/src/diagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "diagnostics.hpp"
#include "autoware/ekf_localizer/diagnostics.hpp"

#include <diagnostic_msgs/msg/diagnostic_status.hpp>

Expand Down
8 changes: 4 additions & 4 deletions localization/autoware_ekf_localizer/src/ekf_localizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "ekf_localizer.hpp"
#include "autoware/ekf_localizer/ekf_localizer.hpp"

#include "diagnostics.hpp"
#include "autoware/ekf_localizer/diagnostics.hpp"
#include "autoware/ekf_localizer/string.hpp"
#include "autoware/ekf_localizer/warning_message.hpp"
#include "localization_util/covariance_ellipse.hpp"
#include "string.hpp"
#include "warning_message.hpp"

#include <autoware/universe_utils/geometry/geometry.hpp>
#include <autoware/universe_utils/math/unit_conversion.hpp>
Expand Down
18 changes: 9 additions & 9 deletions localization/autoware_ekf_localizer/src/ekf_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "ekf_module.hpp"

#include "covariance.hpp"
#include "mahalanobis.hpp"
#include "matrix_types.hpp"
#include "measurement.hpp"
#include "numeric.hpp"
#include "state_transition.hpp"
#include "warning_message.hpp"
#include "autoware/ekf_localizer/ekf_module.hpp"

#include "autoware/ekf_localizer/covariance.hpp"
#include "autoware/ekf_localizer/mahalanobis.hpp"
#include "autoware/ekf_localizer/matrix_types.hpp"
#include "autoware/ekf_localizer/measurement.hpp"
#include "autoware/ekf_localizer/numeric.hpp"
#include "autoware/ekf_localizer/state_transition.hpp"
#include "autoware/ekf_localizer/warning_message.hpp"

#include <autoware/universe_utils/geometry/geometry.hpp>
#include <autoware/universe_utils/ros/msg_covariance.hpp>
Expand Down
2 changes: 1 addition & 1 deletion localization/autoware_ekf_localizer/src/mahalanobis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "mahalanobis.hpp"
#include "autoware/ekf_localizer/mahalanobis.hpp"

namespace autoware::ekf_localizer
{
Expand Down
4 changes: 2 additions & 2 deletions localization/autoware_ekf_localizer/src/measurement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "measurement.hpp"
#include "autoware/ekf_localizer/measurement.hpp"

#include "autoware/ekf_localizer/state_index.hpp"
#include "autoware/universe_utils/ros/msg_covariance.hpp"
#include "state_index.hpp"

namespace autoware::ekf_localizer
{
Expand Down
6 changes: 3 additions & 3 deletions localization/autoware_ekf_localizer/src/state_transition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "state_transition.hpp"
#include "autoware/ekf_localizer/state_transition.hpp"

#include "matrix_types.hpp"
#include "state_index.hpp"
#include "autoware/ekf_localizer/matrix_types.hpp"
#include "autoware/ekf_localizer/state_index.hpp"

#include <cmath>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "warning_message.hpp"
#include "autoware/ekf_localizer/warning_message.hpp"

#include <fmt/core.h>

Expand Down
Loading

0 comments on commit 0750dcf

Please sign in to comment.