Skip to content

Commit b21c009

Browse files
committed
refactor: update include paths for debugger and processor modules
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
1 parent b233929 commit b21c009

27 files changed

+46
-44
lines changed

perception/multi_object_tracker/CMakeLists.txt

+22-20
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,34 @@ include_directories(
2020
)
2121

2222
# Generate exe file
23-
set(MULTI_OBJECT_TRACKER_SRC
24-
src/multi_object_tracker_core.cpp
23+
set(${PROJECT_NAME}_src
24+
src/multi_object_tracker_node.cpp
2525
src/debugger/debugger.cpp
2626
src/debugger/debug_object.cpp
2727
src/processor/processor.cpp
2828
src/processor/input_manager.cpp
29-
src/data_association/data_association.cpp
30-
src/data_association/mu_successive_shortest_path/mu_successive_shortest_path_wrapper.cpp
31-
src/tracker/motion_model/motion_model_base.cpp
32-
src/tracker/motion_model/bicycle_motion_model.cpp
29+
)
30+
set(${PROJECT_NAME}_lib
31+
lib/data_association/data_association.cpp
32+
lib/data_association/mu_successive_shortest_path/mu_successive_shortest_path_wrapper.cpp
33+
lib/tracker/motion_model/motion_model_base.cpp
34+
lib/tracker/motion_model/bicycle_motion_model.cpp
3335
# cspell: ignore ctrv
34-
src/tracker/motion_model/ctrv_motion_model.cpp
35-
src/tracker/motion_model/cv_motion_model.cpp
36-
src/tracker/model/tracker_base.cpp
37-
src/tracker/model/big_vehicle_tracker.cpp
38-
src/tracker/model/normal_vehicle_tracker.cpp
39-
src/tracker/model/multiple_vehicle_tracker.cpp
40-
src/tracker/model/bicycle_tracker.cpp
41-
src/tracker/model/pedestrian_tracker.cpp
42-
src/tracker/model/pedestrian_and_bicycle_tracker.cpp
43-
src/tracker/model/unknown_tracker.cpp
44-
src/tracker/model/pass_through_tracker.cpp
36+
lib/tracker/motion_model/ctrv_motion_model.cpp
37+
lib/tracker/motion_model/cv_motion_model.cpp
38+
lib/tracker/model/tracker_base.cpp
39+
lib/tracker/model/big_vehicle_tracker.cpp
40+
lib/tracker/model/normal_vehicle_tracker.cpp
41+
lib/tracker/model/multiple_vehicle_tracker.cpp
42+
lib/tracker/model/bicycle_tracker.cpp
43+
lib/tracker/model/pedestrian_tracker.cpp
44+
lib/tracker/model/pedestrian_and_bicycle_tracker.cpp
45+
lib/tracker/model/unknown_tracker.cpp
46+
lib/tracker/model/pass_through_tracker.cpp
4547
)
46-
4748
ament_auto_add_library(${PROJECT_NAME} SHARED
48-
${MULTI_OBJECT_TRACKER_SRC}
49+
${${PROJECT_NAME}_src}
50+
${${PROJECT_NAME}_lib}
4951
)
5052

5153
target_link_libraries(${PROJECT_NAME}
@@ -55,7 +57,7 @@ target_link_libraries(${PROJECT_NAME}
5557

5658
rclcpp_components_register_node(${PROJECT_NAME}
5759
PLUGIN "multi_object_tracker::MultiObjectTracker"
58-
EXECUTABLE ${PROJECT_NAME}_node
60+
EXECUTABLE multi_object_tracker_node
5961
)
6062

6163
ament_auto_package(INSTALL_TO_SHARE

perception/multi_object_tracker/src/debugger/debug_object.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "multi_object_tracker/debugger/debug_object.hpp"
15+
#include "debug_object.hpp"
1616

1717
#include "autoware_perception_msgs/msg/tracked_object.hpp"
1818

perception/multi_object_tracker/include/multi_object_tracker/debugger/debug_object.hpp perception/multi_object_tracker/src/debugger/debug_object.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef MULTI_OBJECT_TRACKER__DEBUGGER__DEBUG_OBJECT_HPP_
16-
#define MULTI_OBJECT_TRACKER__DEBUGGER__DEBUG_OBJECT_HPP_
15+
#ifndef DEBUGGER__DEBUG_OBJECT_HPP_
16+
#define DEBUGGER__DEBUG_OBJECT_HPP_
1717

1818
#include "autoware/universe_utils/ros/uuid_helper.hpp"
1919
#include "multi_object_tracker/tracker/model/tracker_base.hpp"
@@ -99,4 +99,4 @@ class TrackerObjectDebugger
9999
void getMessage(visualization_msgs::msg::MarkerArray & marker_array) const;
100100
};
101101

102-
#endif // MULTI_OBJECT_TRACKER__DEBUGGER__DEBUG_OBJECT_HPP_
102+
#endif // DEBUGGER__DEBUG_OBJECT_HPP_

perception/multi_object_tracker/src/debugger/debugger.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "multi_object_tracker/debugger/debugger.hpp"
15+
#include "debugger.hpp"
1616

1717
#include <memory>
1818

perception/multi_object_tracker/include/multi_object_tracker/debugger/debugger.hpp perception/multi_object_tracker/src/debugger/debugger.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef MULTI_OBJECT_TRACKER__DEBUGGER__DEBUGGER_HPP_
16-
#define MULTI_OBJECT_TRACKER__DEBUGGER__DEBUGGER_HPP_
15+
#ifndef DEBUGGER__DEBUGGER_HPP_
16+
#define DEBUGGER__DEBUGGER_HPP_
1717

1818
#include "autoware/universe_utils/ros/debug_publisher.hpp"
1919
#include "autoware/universe_utils/ros/published_time_publisher.hpp"
20-
#include "multi_object_tracker/debugger/debug_object.hpp"
20+
#include "debug_object.hpp"
2121

2222
#include <diagnostic_updater/diagnostic_updater.hpp>
2323
#include <diagnostic_updater/publisher.hpp>
@@ -104,4 +104,4 @@ class TrackerDebugger
104104
void publishObjectsMarkers();
105105
};
106106

107-
#endif // MULTI_OBJECT_TRACKER__DEBUGGER__DEBUGGER_HPP_
107+
#endif // DEBUGGER__DEBUGGER_HPP_

perception/multi_object_tracker/src/multi_object_tracker_core.cpp perception/multi_object_tracker/src/multi_object_tracker_node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//
1616
#define EIGEN_MPL2_ONLY
1717

18-
#include "multi_object_tracker/multi_object_tracker_core.hpp"
18+
#include "multi_object_tracker_node.hpp"
1919

2020
#include "multi_object_tracker/utils/utils.hpp"
2121

perception/multi_object_tracker/include/multi_object_tracker/multi_object_tracker_core.hpp perception/multi_object_tracker/src/multi_object_tracker_node.hpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
// Author: v1.0 Yukihiro Saito
1717
///
1818

19-
#ifndef MULTI_OBJECT_TRACKER__MULTI_OBJECT_TRACKER_CORE_HPP_
20-
#define MULTI_OBJECT_TRACKER__MULTI_OBJECT_TRACKER_CORE_HPP_
19+
#ifndef MULTI_OBJECT_TRACKER_NODE_HPP_
20+
#define MULTI_OBJECT_TRACKER_NODE_HPP_
2121

22+
#include "debugger/debugger.hpp"
2223
#include "multi_object_tracker/data_association/data_association.hpp"
23-
#include "multi_object_tracker/debugger/debugger.hpp"
24-
#include "multi_object_tracker/processor/input_manager.hpp"
25-
#include "multi_object_tracker/processor/processor.hpp"
2624
#include "multi_object_tracker/tracker/model/tracker_base.hpp"
25+
#include "processor/input_manager.hpp"
26+
#include "processor/processor.hpp"
2727

2828
#include <rclcpp/rclcpp.hpp>
2929

@@ -105,4 +105,4 @@ class MultiObjectTracker : public rclcpp::Node
105105

106106
} // namespace multi_object_tracker
107107

108-
#endif // MULTI_OBJECT_TRACKER__MULTI_OBJECT_TRACKER_CORE_HPP_
108+
#endif // MULTI_OBJECT_TRACKER_NODE_HPP_

perception/multi_object_tracker/src/processor/input_manager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "multi_object_tracker/processor/input_manager.hpp"
15+
#include "input_manager.hpp"
1616

1717
#include <cassert>
1818

perception/multi_object_tracker/include/multi_object_tracker/processor/input_manager.hpp perception/multi_object_tracker/src/processor/input_manager.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef MULTI_OBJECT_TRACKER__PROCESSOR__INPUT_MANAGER_HPP_
16-
#define MULTI_OBJECT_TRACKER__PROCESSOR__INPUT_MANAGER_HPP_
15+
#ifndef PROCESSOR__INPUT_MANAGER_HPP_
16+
#define PROCESSOR__INPUT_MANAGER_HPP_
1717

1818
#include "rclcpp/rclcpp.hpp"
1919

@@ -157,4 +157,4 @@ class InputManager
157157

158158
} // namespace multi_object_tracker
159159

160-
#endif // MULTI_OBJECT_TRACKER__PROCESSOR__INPUT_MANAGER_HPP_
160+
#endif // PROCESSOR__INPUT_MANAGER_HPP_

perception/multi_object_tracker/src/processor/processor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "multi_object_tracker/processor/processor.hpp"
15+
#include "processor.hpp"
1616

1717
#include "multi_object_tracker/tracker/tracker.hpp"
1818
#include "object_recognition_utils/object_recognition_utils.hpp"

perception/multi_object_tracker/include/multi_object_tracker/processor/processor.hpp perception/multi_object_tracker/src/processor/processor.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef MULTI_OBJECT_TRACKER__PROCESSOR__PROCESSOR_HPP_
16-
#define MULTI_OBJECT_TRACKER__PROCESSOR__PROCESSOR_HPP_
15+
#ifndef PROCESSOR__PROCESSOR_HPP_
16+
#define PROCESSOR__PROCESSOR_HPP_
1717

1818
#include "multi_object_tracker/tracker/model/tracker_base.hpp"
1919

@@ -78,4 +78,4 @@ class TrackerProcessor
7878
const geometry_msgs::msg::Transform & self_transform, const uint & channel_index) const;
7979
};
8080

81-
#endif // MULTI_OBJECT_TRACKER__PROCESSOR__PROCESSOR_HPP_
81+
#endif // PROCESSOR__PROCESSOR_HPP_

0 commit comments

Comments
 (0)