ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Set log level for each node in ROS CPP

I want to set the log level for each node in ROS CPP. The node is defined as follows:

ros::init(argc, argv, "my_ros_node");

What I am looking for is the CPP version of following command:

rospy.init_node('my_ros_node', log_level=rospy.DEBUG)

I am using ROS Indigo on Ubuntu 14.04 LTS. As always thank you very much.