主要内容

Read A ROS Scan Message In Simulink®

This example shows how to read in a laser scan message from a ROS network. Calculate the points in Cartesian coordinates and visualize with a 2D plot.

Start a ROS network.

rosinit
Launching ROS Core...
Status before launching ros core :0
result before launching ros core:     872 ?        Ssl    9:36 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1150 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 313594 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313624 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313637 ?        S      0:00 sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313692 ?        S      0:00 perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 314585 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 314587 pts/0    S+     0:00 grep -E ros|python

Done in 0.8308 seconds.
* Inside getProcessPID function *
Process Name: /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50586 -w 3
Status before getting PID :0
Result before getting PID :    872 ?        Ssl    9:36 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1150 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 313594 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313624 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313637 ?        S      0:00 sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313692 ?        S      0:00 perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 314590 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_722924/tp77b022eb_e11d_4f58_bc45_abc1c6783b4f/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50586 -w 3
 314602 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50586 -w 3
 314610 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 314612 pts/0    S+     0:00 grep -E ros|python

Result:  314590 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_722924/tp77b022eb_e11d_4f58_bc45_abc1c6783b4f/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50586 -w 3

Status: 0
PID obtained: 314590
Status after getting PID :0
Result after getting PID :    872 ?        Ssl    9:36 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1150 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 313594 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313624 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313637 ?        S      0:00 sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313692 ?        S      0:00 perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 314590 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_722924/tp77b022eb_e11d_4f58_bc45_abc1c6783b4f/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50586 -w 3
 314602 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50586 -w 3
 314617 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 314619 pts/0    S+     0:00 grep -E ros|python

* Exiting getProcessPID function *
Status after launching ros core :0
result after launching ros core:     872 ?        Ssl    9:36 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1150 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 313594 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313624 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313637 ?        S      0:00 sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313692 ?        S      0:00 perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 314590 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_722924/tp77b022eb_e11d_4f58_bc45_abc1c6783b4f/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50586 -w 3
 314602 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50586 -w 3
 314620 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 314622 pts/0    S+     0:00 grep -E ros|python

Status before deleting node :0
Result before deleting node :    872 ?        Ssl    9:36 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1150 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 313594 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313624 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313637 ?        S      0:00 sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313692 ?        S      0:00 perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 314590 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_722924/tp77b022eb_e11d_4f58_bc45_abc1c6783b4f/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50586 -w 3
 314602 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50586 -w 3
 314623 ?        Sl     0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 585 -1 -mvmOutputPipe -1 639
 314638 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 314640 pts/0    S+     0:00 grep -E ros|python

Status after deleting node :0
Result after deleting node :    872 ?        Ssl    9:36 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1150 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 313594 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313624 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313637 ?        S      0:00 sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313692 ?        S      0:00 perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 314590 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_722924/tp77b022eb_e11d_4f58_bc45_abc1c6783b4f/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50586 -w 3
 314602 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50586 -w 3
 314644 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 314646 pts/0    S+     0:00 grep -E ros|python

Initializing ROS master on http://172.20.224.63:50586.
Initializing global node /matlab_global_node_64036 with NodeURI http://dcc624368glnxa64:36425/ and MasterURI http://localhost:50586.

Load a sample ROS LaserScan message. Create a publisher for the topic /scan and specify the message type as sensor_msgs/LaserScan. Publish the sample LaserScan message on this topic.

exampleHelperROSLoadScan
pub = rospublisher("/scan","sensor_msgs/LaserScan",DataFormat="struct");
send(pub,scan)

Open the Simulink® model for subscribing to a published message and reading the scan message from ROS.

open_system("read_scan_example_model.slx")

Ensure that the Subscribe block is subscribing to the /scan topic.

The model reads the LaserScan message from the ROS network. The Read Scan block extracts range and angle data from the message. These are then fed to the plotXY MATLAB Function block which converts the ranges and angles to points in Cartesian coordinates and visualizes them on a plot. All NaN values are ignored.

Run the model. The plot shows the points in the laser scan.

Shut down the ROS network.

rosshutdown
Shutting down global node /matlab_global_node_64036 with NodeURI http://dcc624368glnxa64:36425/ and MasterURI http://localhost:50586.
Status before deleting node :0
Result before deleting node :    872 ?        Ssl    9:36 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1150 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 313594 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313624 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313637 ?        S      0:00 sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313692 ?        S      0:00 perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 314590 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_722924/tp77b022eb_e11d_4f58_bc45_abc1c6783b4f/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50586 -w 3
 314602 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50586 -w 3
 314647 ?        Sl     0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 585 -1 -mvmOutputPipe -1 639
 314723 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 314725 pts/0    S+     0:00 grep -E ros|python

Status after deleting node :0
Result after deleting node :    872 ?        Ssl    9:36 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1150 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 313594 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313624 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313637 ?        S      0:00 sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313692 ?        S      0:00 perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 314590 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_722924/tp77b022eb_e11d_4f58_bc45_abc1c6783b4f/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50586 -w 3
 314602 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50586 -w 3
 314729 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 314731 pts/0    S+     0:00 grep -E ros|python

Shutting down ROS master on http://172.20.224.63:50586.
Status before deleting core :0
Result before deleting core :    872 ?        Ssl    9:36 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1150 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 313594 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313624 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313637 ?        S      0:00 sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313692 ?        S      0:00 perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 314590 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_722924/tp77b022eb_e11d_4f58_bc45_abc1c6783b4f/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50586 -w 3
 314602 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50586 -w 3
 314732 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 314734 pts/0    S+     0:00 grep -E ros|python

* Inside killProcessByPID function *
PID of core to be killed: 314590
Status after Child Process Killed: 0
Result after Child Process Killed: 
Status after deleting core :0
Result after deleting core :    872 ?        Ssl    9:36 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1150 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 313594 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313624 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_722924 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/matlab/examples/ros/html ; //mathworks/hub/bat/common/bin/mw   sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313637 ?        S      0:00 sh ../../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.b27ce1f56c7c88b867133d20b65593f0 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 313692 ?        S      0:00 perl ../../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display ../../../derived/glnxa64/examples/ros/html/matlab_build_script/publish_examples0.m
 314739 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 314741 pts/0    S+     0:00 grep -E ros|python

* Exiting killProcessByPID function *