Autoware.Auto
lidar_integration_common.hpp
Go to the documentation of this file.
1 // Copyright 2020 Silexica GmbH, Lichtstr. 25, Cologne, Germany. All rights reserved.
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 
16 #ifndef LIDAR_INTEGRATION__LIDAR_INTEGRATION_COMMON_HPP_
17 #define LIDAR_INTEGRATION__LIDAR_INTEGRATION_COMMON_HPP_
18 
19 #include <rclcpp/rclcpp.hpp>
20 
21 #define LIDAR_INTEGRATION_LOGGER rclcpp::get_logger("lidar_integration")
22 
23 #define LIDAR_INTEGRATION_INFO(...) \
24  RCLCPP_INFO(LIDAR_INTEGRATION_LOGGER, __VA_ARGS__)
25 
26 #define LIDAR_INTEGRATION_ERROR(...) \
27  RCLCPP_ERROR(LIDAR_INTEGRATION_LOGGER, __VA_ARGS__)
28 
29 #define LIDAR_INTEGRATION_FATAL(...) { \
30  RCLCPP_ERROR(LIDAR_INTEGRATION_LOGGER, __VA_ARGS__); \
31  exit(-1); \
32 }
33 
34 #endif // LIDAR_INTEGRATION__LIDAR_INTEGRATION_COMMON_HPP_