Skip to content

Commit

Permalink
urdf/model.h -> urdf/model.hpp (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeferguson authored Oct 2, 2024
1 parent ba89eab commit badcf6e
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 Michael Ferguson
* Copyright (C) 2018-2024 Michael Ferguson
* Copyright (C) 2014 Fetch Robotics Inc.
* Copyright (C) 2013-2014 Unbounded Robotics Inc.
*
Expand All @@ -24,7 +24,11 @@
#include <memory>
#include <ceres/ceres.h>

#if __has_include(<urdf/model.hpp>)
#include <urdf/model.hpp>
#else
#include <urdf/model.h>
#endif
#include <kdl_parser/kdl_parser.hpp>
#include <rclcpp/logger.hpp>
#include <robot_calibration_msgs/msg/calibration_data.hpp>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 Michael Ferguson
* Copyright (C) 2022-2024 Michael Ferguson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -24,7 +24,11 @@
#include <vector>

#include <geometric_shapes/shape_operations.h>
#if __has_include(<urdf/model.hpp>)
#include <urdf/model.hpp>
#else
#include <urdf/model.h>
#endif

namespace robot_calibration
{
Expand Down
6 changes: 5 additions & 1 deletion robot_calibration/src/nodes/viz.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 Michael Ferguson
* Copyright (C) 2018-2024 Michael Ferguson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -22,7 +22,11 @@
#include <sensor_msgs/msg/point_cloud2.hpp>
#include <visualization_msgs/msg/marker_array.hpp>

#if __has_include(<urdf/model.hpp>)
#include <urdf/model.hpp>
#else
#include <urdf/model.h>
#endif
#include <kdl_parser/kdl_parser.hpp>

#include <robot_calibration/optimization/offsets.hpp>
Expand Down
6 changes: 5 additions & 1 deletion robot_calibration/src/nodes/viz_mesh.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 Michael Ferguson
* Copyright (C) 2018-2024 Michael Ferguson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,7 +17,11 @@
// Author: Michael Ferguson

#include <rclcpp/rclcpp.hpp>
#if __has_include(<urdf/model.hpp>)
#include <urdf/model.hpp>
#else
#include <urdf/model.h>
#endif
#include <robot_calibration/util/mesh_loader.hpp>
#include <visualization_msgs/msg/marker_array.hpp>

Expand Down
6 changes: 5 additions & 1 deletion robot_calibration/src/optimization/ceres_optimizer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2023 Michael Ferguson
* Copyright (C) 2018-2024 Michael Ferguson
* Copyright (C) 2014-2015 Fetch Robotics Inc.
* Copyright (C) 2013-2014 Unbounded Robotics Inc.
*
Expand All @@ -23,7 +23,11 @@
#include <memory>
#include <ceres/ceres.h>

#if __has_include(<urdf/model.hpp>)
#include <urdf/model.hpp>
#else
#include <urdf/model.h>
#endif
#include <kdl_parser/kdl_parser.hpp>
#include <robot_calibration_msgs/msg/calibration_data.hpp>

Expand Down
6 changes: 5 additions & 1 deletion robot_calibration/test/error_block_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 Michael Ferguson
* Copyright (C) 2022-2024 Michael Ferguson
* Copyright (C) 2015 Fetch Robotics Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,7 +15,11 @@
* limitations under the License.
*/

#if __has_include(<urdf/model.hpp>)
#include <urdf/model.hpp>
#else
#include <urdf/model.h>
#endif
#include <robot_calibration/cost_functions/chain3d_to_mesh_error.hpp>
#include <robot_calibration/optimization/ceres_optimizer.hpp>
#include <robot_calibration/util/calibration_data.hpp>
Expand Down
6 changes: 5 additions & 1 deletion robot_calibration/test/error_block_tests2.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 Michael Ferguson
* Copyright (C) 2022-2024 Michael Ferguson
* Copyright (C) 2015 Fetch Robotics Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,7 +15,11 @@
* limitations under the License.
*/

#if __has_include(<urdf/model.hpp>)
#include <urdf/model.hpp>
#else
#include <urdf/model.h>
#endif
#include <robot_calibration/optimization/ceres_optimizer.hpp>
#include <gtest/gtest.h>

Expand Down
4 changes: 4 additions & 0 deletions robot_calibration/test/optimization_offsets_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include <boost/algorithm/string.hpp>
#if __has_include(<urdf/model.hpp>)
#include <urdf/model.hpp>
#else
#include <urdf/model.h>
#endif
#include <robot_calibration/optimization/offsets.hpp>
#include <robot_calibration/models/chain3d.hpp> // for rotation functions
#include <gtest/gtest.h>
Expand Down

0 comments on commit badcf6e

Please sign in to comment.