ROS console macros not printing anything.
Hi,
I am trying to print something using the ROS_* macros for printing to console but it doesn't work for some reason. Below is a sample of the code -
if(T_WS_vec.size() > 0) {
std::cout << "April Tag(s) detected \n";
}else{
ROS_ERROR("%s","No april Tag detected ..");
}
I am certain the else statement is being entered (since regular std::cout in the else statement works ). Regardless, the macros in other parts of the code are also not working.
I am just using catkin_make
( not using catkin_make -DCMAKE_BUILD_TYPE=Release
)
and I have included both the headers -
#include <ros/ros.h>
#include <ros/console.h>
please review the support guidelines:
Apologies for that, was not aware of that in the guideline.
Is your node started by a launch file? If so, did you set
output="screen"
?Hi, yes I am using
output="screen"
in the launch file.It is possible for ROS console macros to not print anything if you don't have a
NodeHandle
in scope.