From 239a1fe49b513351ee88cbc625409f41d7395551 Mon Sep 17 00:00:00 2001 From: Yoshiki Obinata Date: Fri, 17 Nov 2023 11:22:31 +0900 Subject: [PATCH] set ros console format --- roles/zsh/config/ros.zsh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/zsh/config/ros.zsh b/roles/zsh/config/ros.zsh index 86048d4..ed80c06 100644 --- a/roles/zsh/config/ros.zsh +++ b/roles/zsh/config/ros.zsh @@ -11,6 +11,16 @@ init_ros_zsh(){ export ROSCONSOLE_FORMAT='[${severity}][${time}][${node}:${logger}]: ${message}' } +ros_set_debug_console(){ + echo "Set debug style ROSCONSOLE_FORMAT" + export ROSCONSOLE_FORMAT='[${severity}][${time}][${node}:${logger}][${file}:L${line}]: ${message}' +} + +ros_set_default_console(){ + echo "Set default ROSCONSOLE_FORMAT" + export ROSCONSOLE_FORMAT='[${severity}][${time}][${node}:${logger}]: ${message}' +} + ros_workspace_init(){ if [ -e "/opt/ros/melodic/setup.zsh" ]; then source /opt/ros/melodic/setup.zsh # melodic only