ROSCONSOLE prints function Argument Types instead of function Name

asked 2020-02-29 19:20:07 -0500

rwbot gravatar image

I'm trying to use ROSCONSOLE_FORMAT as shown on the wiki http://wiki.ros.org/rosconsole. I'm trying to print my function name. For the main function, it works fine. But for other functions, it prints the function argument types and the closing argument parentheses, rather than the function name.

For example, I've defined this function and also my main:

// Random Function
void makeDockMarker(geometry_msgs::Pose pose, bool fixed6DoF = false) { }
// Main Function
int main(int argc, char **argv) { }

And the output from ROSCONSOLE is:

[/dock_gazebo_interactive_marker.Pose, bool)]:  Creating Green Pose Marker
[/dock_gazebo_interactive_marker.main]:  applying changes to interactive marker server

My ROSCONSOLE_FORMAT is set to:

export ROSCONSOLE_FORMAT='[${node}.${function}]: ${message}'

Environment: Ubuntu 18.04 ROS: Melodic

edit retag flag offensive close merge delete