File tree 3 files changed +40
-8
lines changed
perception/multi_object_tracker
3 files changed +40
-8
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,14 @@ ament_auto_add_library(multi_object_tracker_node SHARED
47
47
48
48
target_link_libraries (multi_object_tracker_node
49
49
Eigen3::Eigen
50
- glog::glog
51
50
)
52
51
53
- rclcpp_components_register_node(multi_object_tracker_node
54
- PLUGIN "MultiObjectTracker"
55
- EXECUTABLE multi_object_tracker
52
+ ament_auto_add_executable(${PROJECT_NAME}
53
+ src/multi_object_tracker_node.cpp
54
+ )
55
+
56
+ target_link_libraries (${PROJECT_NAME}
57
+ multi_object_tracker_node glog
56
58
)
57
59
58
60
ament_auto_package(INSTALL_TO_SHARE
Original file line number Diff line number Diff line change @@ -72,10 +72,6 @@ MultiObjectTracker::MultiObjectTracker(const rclcpp::NodeOptions & node_options)
72
72
tf_buffer_(this ->get_clock ()),
73
73
tf_listener_(tf_buffer_)
74
74
{
75
- // glog for debug
76
- google::InitGoogleLogging (" multi_object_tracker" );
77
- google::InstallFailureSignalHandler ();
78
-
79
75
// Create publishers and subscribers
80
76
detected_object_sub_ = create_subscription<autoware_auto_perception_msgs::msg::DetectedObjects>(
81
77
" input" , rclcpp::QoS{1 },
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 TIER IV, inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ #include " multi_object_tracker/multi_object_tracker_core.hpp"
16
+
17
+ #include < rclcpp/rclcpp.hpp>
18
+
19
+ #include < glog/logging.h>
20
+
21
+ int main (int argc, char ** argv)
22
+ {
23
+ google::InitGoogleLogging (argv[0 ]); // NOLINT
24
+ google::InstallFailureSignalHandler ();
25
+
26
+ rclcpp::init (argc, argv);
27
+ rclcpp::NodeOptions options;
28
+ auto multi_object_tracker = std::make_shared<MultiObjectTracker>(options);
29
+ rclcpp::executors::SingleThreadedExecutor exec;
30
+ exec.add_node (multi_object_tracker);
31
+ exec.spin ();
32
+ rclcpp::shutdown ();
33
+ return 0 ;
34
+ }
You can’t perform that action at this time.
0 commit comments