주요 콘텐츠

rosrate

Execute loop at fixed frequency

Description

The rosrate object allows you to execute a loop at a fixed frequency. The rosrate object uses the global ROS node as a source for time information. Therefore, it can use the ROS simulation or wall clock time (see the IsSimulationTime property).

The performance of the rosrate object, and the ability to maintain the desiredRate value depend on the publishing of the clock information in ROS network. Because the rosrate object relies on the pause function, disabling pause will result in inaccurate execution.

If rosinit creates a ROS master in MATLAB®, the global node uses wall clock time.

Tip

The scheduling resolution of your operating system and the level of other system activity can affect rate execution accuracy. As a result, accurate rate timing is limited to 100 Hz for execution of MATLAB code. To improve performance and execution speeds, use code generation.

Creation

Description

rate = rosrate(desiredRate) creates a Rate object, which enables you to execute a loop at a fixed frequency, DesiredRate. This syntax sets the DesiredRate and DesiredPeriod properties of the Rate object. The time source is linked to the time source of the global ROS node, which requires you to connect MATLAB to a ROS network using rosinit.

example

rate = ros.Rate(node,desiredRate) creates a Rate object that operates loops at a fixed rate based on the time source linked to the specified ROS node, node.

example

Properties

expand all

This property is read-only.

Indicator if simulation or wall clock time is used, returned as true or false. The value of this property is same as that of the use_sim_time parameter with these behaviors:

  • false — The Rate object uses wall clock time to regulate the rate of loop execution.

  • true — The Rate object uses ROS simulation time published on the /clock topic to regulate the rate of loop execution.

To set the use_sim_time parameter, follow these steps:

ptree = rosparam;
set(ptree,'/use_sim_time',true)

This property is read-only.

Desired execution rate of loop, specified as a scalar in hertz. When using waitfor, the loop operates every DesiredRate seconds, unless the loop takes longer. It then begins the next loop based on the specified OverRunAction.

This property is set during the object creation.

This property is read-only.

Desired time period between executions, specified as a scalar in seconds. This property is equal to the inverse of DesiredRate.

This property is set during the object creation.

This property is read-only.

Elapsed time since construction or reset, specified as a scalar in seconds.

This property is read-only.

Elapsed time between last two calls to waitfor, specified as a scalar. By default, LastPeriod is set to NaN until waitfor is called for the first time. After the first call, LastPeriod equals TotalElapsedTime.

Method for handling overruns, specified as one of these character vectors:

  • 'drop' — waits until the next time interval equal to a multiple of DesiredPeriod

  • 'slip' — immediately executes the loop again

Workflow of drop and slip overrun handling methods.

Each code section calls waitfor (Robotics System Toolbox) at the end of execution.

Object Functions

waitforPause code execution to achieve desired execution rate
statisticsStatistics of past execution periods
resetReset Rate object

Examples

collapse all

Initialize the ROS master and the global node.

rosinit
Launching ROS Core...
Status before launching ros core :0
result before launching ros core:     889 ?        Ssl    5:42 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1173 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 169688 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169718 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169731 ?        S      0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169784 ?        S      0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 170910 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 170912 pts/0    S+     0:00 grep -E ros|python

Done in 0.39575 seconds.
* Inside getProcessPID function *
Process Name: /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3
Status before getting PID :0
Result before getting PID :    889 ?        Ssl    5:42 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1173 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 169688 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169718 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169731 ?        S      0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169784 ?        S      0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 170915 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3
 170929 pts/0    R      0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58080 -w 3
 170933 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 170935 pts/0    S+     0:00 grep -E ros|python

Result:  170915 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3

Status: 0
PID obtained: 170915
Status after getting PID :0
Result after getting PID :    889 ?        Ssl    5:42 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1173 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 169688 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169718 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169731 ?        S      0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169784 ?        S      0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 170915 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3
 170929 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58080 -w 3
 170944 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 170946 pts/0    S+     0:00 grep -E ros|python

* Exiting getProcessPID function *
Status after launching ros core :0
result after launching ros core:     889 ?        Ssl    5:42 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1173 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 169688 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169718 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169731 ?        S      0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169784 ?        S      0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 170915 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3
 170929 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58080 -w 3
 170947 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 170949 pts/0    S+     0:00 grep -E ros|python

Status before deleting node :0
Result before deleting node :    889 ?        Ssl    5:42 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1173 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 169688 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169718 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169731 ?        S      0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169784 ?        S      0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 170915 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3
 170929 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58080 -w 3
 170950 ?        Sl     0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 595 -1 -mvmOutputPipe -1 747
 170955 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 170957 pts/0    S+     0:00 grep -E ros|python

Status after deleting node :0
Result after deleting node :    889 ?        Ssl    5:42 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1173 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 169688 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169718 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169731 ?        S      0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169784 ?        S      0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 170915 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3
 170929 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58080 -w 3
 170961 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 170963 pts/0    S+     0:00 grep -E ros|python

ROS master failed on port 58080; retrying on 57245.
Launching ROS Core...
Status before launching ros core :0
result before launching ros core:     889 ?        Ssl    5:42 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1173 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 169688 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169718 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169731 ?        S      0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169784 ?        S      0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 170915 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3
 170929 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58080 -w 3
 170965 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 170967 pts/0    S+     0:00 grep -E ros|python

Done in 0.3863 seconds.
* Inside getProcessPID function *
Process Name: /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 57245 -w 3
Status before getting PID :0
Result before getting PID :    889 ?        Ssl    5:42 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1173 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 169688 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169718 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169731 ?        S      0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169784 ?        S      0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 170915 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3
 170929 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58080 -w 3
 170970 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 57245 -w 3
 170982 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 57245 -w 3
 170990 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 170992 pts/0    S+     0:00 grep -E ros|python

Result:  170970 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 57245 -w 3

Status: 0
PID obtained: 170970
Status after getting PID :0
Result after getting PID :    889 ?        Ssl    5:42 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1173 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 169688 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169718 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169731 ?        S      0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169784 ?        S      0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 170915 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3
 170929 pts/0    Rl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58080 -w 3
 170970 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 57245 -w 3
 170982 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 57245 -w 3
 170997 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 170999 pts/0    R+     0:00 grep -E ros|python

* Exiting getProcessPID function *
Status after launching ros core :0
result after launching ros core:     889 ?        Ssl    5:42 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1173 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 169688 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169718 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169731 ?        S      0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169784 ?        S      0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 170915 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3
 170929 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58080 -w 3
 170970 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 57245 -w 3
 170982 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 57245 -w 3
 171000 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 171002 pts/0    S+     0:00 grep -E ros|python

Initializing ROS master on http://172.23.99.52:57245.
Initializing global node /matlab_global_node_04462 with NodeURI http://dcc3066298glnxa64:40069/ and MasterURI http://localhost:57245.

Create a rate object that runs at 1 Hz.

r = rosrate(1);

Start loop that prints iteration and time elapsed. Use waitfor to pause the loop until the next time interval. Reset r prior to the loop execution. Notice that each iteration executes at a 1-second interval.

reset(r)
for i = 1:10
	time = r.TotalElapsedTime;
	fprintf('Iteration: %d - Time Elapsed: %f\n',i,time)
	waitfor(r);
end
Iteration: 1 - Time Elapsed: 0.001298
Iteration: 2 - Time Elapsed: 1.004772
Iteration: 3 - Time Elapsed: 2.000384
Iteration: 4 - Time Elapsed: 3.000815
Iteration: 5 - Time Elapsed: 4.001716
Iteration: 6 - Time Elapsed: 5.000383
Iteration: 7 - Time Elapsed: 6.000555
Iteration: 8 - Time Elapsed: 7.000717
Iteration: 9 - Time Elapsed: 8.000157
Iteration: 10 - Time Elapsed: 9.000170

Shut down the ROS network.

rosshutdown
Shutting down global node /matlab_global_node_04462 with NodeURI http://dcc3066298glnxa64:40069/ and MasterURI http://localhost:57245.
Status before deleting node :0
Result before deleting node :    889 ?        Ssl    5:42 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1173 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 169688 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169718 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169731 ?        S      0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169784 ?        S      0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 170915 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3
 170929 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58080 -w 3
 170970 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 57245 -w 3
 170982 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 57245 -w 3
 171003 ?        Sl     0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 704 -1 -mvmOutputPipe -1 786
 171022 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 171024 pts/0    S+     0:00 grep -E ros|python

Status after deleting node :0
Result after deleting node :    889 ?        Ssl    5:42 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1173 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 169688 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169718 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169731 ?        S      0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169784 ?        S      0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 170915 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3
 170929 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58080 -w 3
 170970 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 57245 -w 3
 170982 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 57245 -w 3
 171028 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 171030 pts/0    S+     0:00 grep -E ros|python

Shutting down ROS master on http://172.23.99.52:57245.
Status before deleting core :0
Result before deleting core :    889 ?        Ssl    5:42 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1173 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 169688 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169718 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169731 ?        S      0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169784 ?        S      0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 170915 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3
 170929 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58080 -w 3
 170970 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 57245 -w 3
 170982 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 57245 -w 3
 171031 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 171033 pts/0    S+     0:00 grep -E ros|python

* Inside killProcessByPID function *
PID of core to be killed: 170970
Status after Child Process Killed: 0
Result after Child Process Killed: 
Status after deleting core :0
Result after deleting core :    889 ?        Ssl    5:42 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml
   1173 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
 169688 ?        Ss     0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169718 ?        S      0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248641 COMPONENT=examples/ros ;   cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw   sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169731 ?        S      0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.8a0672ac9b49152569df99eed4417168 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 169784 ?        S      0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook7.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1
 170915 pts/0    S      0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh   /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248641/tpa61db3f0_6aea_44b2_8b8f_10411a782a32/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58080 -w 3
 170929 pts/0    Sl     0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58080 -w 3
 171038 pts/0    S+     0:00 /bin/bash -c ps ax | grep -E 'ros|python'
 171040 pts/0    S+     0:00 grep -E ros|python

* Exiting killProcessByPID function *

Initialize the ROS master and node.

rosinit
Launching ROS Core...
....Done in 4.1733 seconds.
Initializing ROS master on http://192.168.88.1:51279.
Initializing global node /matlab_global_node_86106 with NodeURI http://ah-avijayar:50550/
node = ros.Node('/testTime');
Using Master URI http://localhost:51279 from the global node to connect to the ROS master.

Create a ros.Rate object running at 20 Hz.

r = ros.Rate(node,20);

Reset the object to restart the timer and run the loop for 30 iterations. Insert code you want to run in the loop before calling waitfor.

reset(r)
for i = 1:30
	% User code goes here.
	waitfor(r);
end

Shut down ROS node.

rosshutdown
Shutting down global node /matlab_global_node_86106 with NodeURI http://ah-avijayar:50550/
Shutting down ROS master on http://192.168.88.1:51279.

Extended Capabilities

expand all

Version History

Introduced in R2019b

See Also

(Robotics System Toolbox) |