Skip to content

Commit

Permalink
set ros console format
Browse files Browse the repository at this point in the history
  • Loading branch information
mqcmd196 committed Nov 17, 2023
1 parent 9519db7 commit 239a1fe
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/zsh/config/ros.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 239a1fe

Please sign in to comment.