ros2 run pkg_name node_name --ros-args --log-level WARN
#include "rcutils/error_handling.h"
auto ret = rcutils_logging_set_logger_level(get_logger().get_name(), RCUTILS_LOG_SEVERITY_WARN);
if (ret != RCUTILS_RET_OK) {
RCLCPP_ERROR(get_logger(), "Error setting severity: %s", rcutils_get_error_string().str);
rcutils_reset_error();
}
def generate_launch_description():
log_level = 'warn'
node = Node(
package='uusv_pkg',
executable='communication_node',
ros_arguments=['--log-level', log_level]
)
return LaunchDescription(node)