centroidal_control_collection
console.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef CCC_STANDALONE
4 # include <iostream>
5 # define CCC_ERROR_STREAM(x) std::cerr << x << "\n"
6 # define CCC_WARN_STREAM(x) std::cerr << x << "\n"
7 # define CCC_INFO_STREAM(x) std::cout << x << "\n"
8 #else
9 # include <rclcpp/rclcpp.hpp>
10 # define CCC_ERROR_STREAM(msg) RCLCPP_ERROR_STREAM(rclcpp::get_logger("CentroidalControlCollection"), msg)
11 # define CCC_WARN_STREAM(msg) RCLCPP_WARN_STREAM(rclcpp::get_logger("CentroidalControlCollection"), msg)
12 # define CCC_INFO_STREAM(msg) RCLCPP_INFO_STREAM(rclcpp::get_logger("CentroidalControlCollection"), msg)
13 #endif