Skip to content

Commit

Permalink
feat(object_merger): add glog
Browse files Browse the repository at this point in the history
Signed-off-by: kminoda <[email protected]>
  • Loading branch information
kminoda committed Apr 9, 2024
1 parent dd2ff22 commit 4badabf
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
9 changes: 6 additions & 3 deletions perception/object_merger/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ target_link_libraries(object_association_merger
Eigen3::Eigen
)

rclcpp_components_register_node(object_association_merger
PLUGIN "object_association::ObjectAssociationMergerNode"
EXECUTABLE object_association_merger_node
ament_auto_add_executable(object_association_merger_node
src/object_association_merger/main.cpp
)

target_link_libraries(object_association_merger_node
object_association_merger glog
)

ament_auto_package(INSTALL_TO_SHARE
Expand Down
34 changes: 34 additions & 0 deletions perception/object_merger/src/object_association_merger/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright 2024 TIER IV, inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "object_merger/node.hpp"

#include <rclcpp/rclcpp.hpp>

#include <glog/logging.h>

int main(int argc, char ** argv)
{
google::InitGoogleLogging(argv[0]); // NOLINT
google::InstallFailureSignalHandler();

rclcpp::init(argc, argv);
rclcpp::NodeOptions options;
auto object_association_merger = std::make_shared<object_association::ObjectAssociationMergerNode>(options);
rclcpp::executors::SingleThreadedExecutor exec;
exec.add_node(object_association_merger);
exec.spin();
rclcpp::shutdown();
return 0;
}

0 comments on commit 4badabf

Please sign in to comment.