call
Call ROS or ROS 2 service server and receive a response
Syntax
Description
sends
a default service request message and waits for a service response
= call(serviceclient
)response
.
The default service request message is an empty message of type serviceclient.ServiceType
.
specifies
a service request message, response
= call(serviceclient
,requestmsg
)requestmsg
, to be
sent to the service.
[
returns a response
,status
,statustext
] = call(___)status
indicating whether a
response
has been received successfully, and a
statustext
that captures additional information about the
status
, using any of the arguments from the previous
syntaxes. If the call fails, the status
will be
false
with an empty default response
message, and this function will not display an error.
Examples
Connect to a ROS network.
rosinit
Launching ROS Core... Status before launching ros core :0 result before launching ros core: 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 70046 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 70048 pts/2 S+ 0:00 grep -E ros|python Done in 0.6744 seconds. * Inside getProcessPID function * Process Name: /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58842 -w 3 Status before getting PID :0 Result before getting PID : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 70051 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58842 -w 3 70063 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58842 -w 3 70071 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 70073 pts/2 S+ 0:00 grep -E ros|python Result: 70051 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58842 -w 3 Status: 0 PID obtained: 70051 Status after getting PID :0 Result after getting PID : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 70051 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58842 -w 3 70063 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58842 -w 3 70078 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 70080 pts/2 S+ 0:00 grep -E ros|python * Exiting getProcessPID function * Status after launching ros core :0 result after launching ros core: 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 70051 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58842 -w 3 70063 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58842 -w 3 70081 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 70083 pts/2 S+ 0:00 grep -E ros|python Status before deleting node :0 Result before deleting node : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 70051 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58842 -w 3 70063 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58842 -w 3 70084 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 611 -1 -mvmOutputPipe -1 666 70099 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 70101 pts/2 S+ 0:00 grep -E ros|python Status after deleting node :0 Result after deleting node : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 70051 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58842 -w 3 70063 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58842 -w 3 70105 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 70107 pts/2 S+ 0:00 grep -E ros|python Initializing ROS master on http://172.30.38.188:58842. Initializing global node /matlab_global_node_45959 with NodeURI http://dcc663585glnxa64:46815/ and MasterURI http://localhost:58842.
Set up a service server. Use structures for the ROS message data format.
server = rossvcserver('/test', 'std_srvs/Empty', @exampleHelperROSEmptyCallback,... 'DataFormat','struct'); client = rossvcclient('/test','DataFormat','struct');
Check whether the service server is available. If it is, wait for the service client to connect to the server.
if(isServerAvailable(client)) [connectionStatus,connectionStatustext] = waitForServer(client) end
connectionStatus = logical
1
connectionStatustext = 'success'
Call service server with default message.
response = call(client)
response = struct with fields:
MessageType: 'std_srvs/EmptyResponse'
If the call
function above fails, it results in an error. Instead of an error, if you would prefer to react to a call failure using conditionals, return the status
and statustext
outputs from the call function. The status
output indicates if the call succeeded, while statustext
provides additional information.
numCallFailures = 0; [response,status,statustext] = call(client,"Timeout",3); if ~status numCallFailures = numCallFailues + 1; fprintf("Call failure number %d. Error cause: %s\n",numCallFailures,statustext) else disp(response) end
MessageType: 'std_srvs/EmptyResponse'
Shut down the ROS network.
rosshutdown
Shutting down global node /matlab_global_node_45959 with NodeURI http://dcc663585glnxa64:46815/ and MasterURI http://localhost:58842. Status before deleting node :0 Result before deleting node : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 70051 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58842 -w 3 70063 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58842 -w 3 70108 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 604 -1 -mvmOutputPipe -1 666 70152 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 70154 pts/2 S+ 0:00 grep -E ros|python Status after deleting node :0 Result after deleting node : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 70051 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58842 -w 3 70063 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58842 -w 3 70159 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 70161 pts/2 S+ 0:00 grep -E ros|python Shutting down ROS master on http://172.30.38.188:58842. Status before deleting core :0 Result before deleting core : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 70051 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 58842 -w 3 70063 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 58842 -w 3 70162 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 70164 pts/2 S+ 0:00 grep -E ros|python * Inside killProcessByPID function * PID of core to be killed: 70051 Status after Child Process Killed: 0 Result after Child Process Killed: Status after deleting core :0 Result after deleting core : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 70169 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 70171 pts/2 S+ 0:00 grep -E ros|python * Exiting killProcessByPID function *
Connect to a ROS network.
rosinit
Launching ROS Core... Status before launching ros core :0 result before launching ros core: 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 68695 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 68697 pts/2 S+ 0:00 grep -E ros|python Done in 0.67756 seconds. * Inside getProcessPID function * Process Name: /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50140 -w 3 Status before getting PID :0 Result before getting PID : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 68700 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50140 -w 3 68712 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50140 -w 3 68722 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 68724 pts/2 S+ 0:00 grep -E ros|python Result: 68700 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50140 -w 3 Status: 0 PID obtained: 68700 Status after getting PID :0 Result after getting PID : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 68700 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50140 -w 3 68712 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50140 -w 3 68729 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 68731 pts/2 S+ 0:00 grep -E ros|python * Exiting getProcessPID function * Status after launching ros core :0 result after launching ros core: 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 68700 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50140 -w 3 68712 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50140 -w 3 68732 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 68734 pts/2 S+ 0:00 grep -E ros|python Status before deleting node :0 Result before deleting node : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 68700 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50140 -w 3 68712 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50140 -w 3 68735 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 579 -1 -mvmOutputPipe -1 603 68750 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 68752 pts/2 S+ 0:00 grep -E ros|python Status after deleting node :0 Result after deleting node : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 68700 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50140 -w 3 68712 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50140 -w 3 68756 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 68758 pts/2 S+ 0:00 grep -E ros|python Initializing ROS master on http://172.30.38.188:50140. Initializing global node /matlab_global_node_13387 with NodeURI http://dcc663585glnxa64:36691/ and MasterURI http://localhost:50140.
Set up a service server and client. This server calculates the sum of two integers and is based on a ROS service tutorial.
sumserver = rossvcserver('/sum','roscpp_tutorials/TwoInts',@exampleHelperROSSumCallback); sumclient = rossvcclient('/sum');
Get the request message for the client and modify the parameters.
reqMsg = rosmessage(sumclient); reqMsg.A = 2; reqMsg.B = 1;
Call service and get a response. The response should be the sum of the two integers given in the request message. Wait 5 seconds for the service to time out.
response = call(sumclient,reqMsg,'Timeout',5)
response = ROS TwoIntsResponse message with properties: MessageType: 'roscpp_tutorials/TwoIntsResponse' Sum: 3 Use showdetails to show the contents of the message
Shut down the ROS network.
rosshutdown
Shutting down global node /matlab_global_node_13387 with NodeURI http://dcc663585glnxa64:36691/ and MasterURI http://localhost:50140. Status before deleting node :0 Result before deleting node : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 68700 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50140 -w 3 68712 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50140 -w 3 68759 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 599 -1 -mvmOutputPipe -1 603 68799 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 68801 pts/2 S+ 0:00 grep -E ros|python Status after deleting node :0 Result after deleting node : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 68700 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50140 -w 3 68712 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50140 -w 3 68806 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 68808 pts/2 S+ 0:00 grep -E ros|python Shutting down ROS master on http://172.30.38.188:50140. Status before deleting core :0 Result before deleting core : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 68700 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25a_2864802_2715419/tpebfccb24_9049_4a3d_a466_8d36391eb4d1/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 50140 -w 3 68712 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 50140 -w 3 68809 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 68811 pts/2 S+ 0:00 grep -E ros|python * Inside killProcessByPID function * PID of core to be killed: 68700 Status after Child Process Killed: 0 Result after Child Process Killed: Status after deleting core :0 Result after deleting core : 886 ? Ssl 1:20 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1601 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 66994 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67024 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25a_2864802_2715419 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/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/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67037 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25a/logs/2864802/build.glnxa64.2864802.r001/examples/ros/build.glnxa64.2864802.r001.bml.1b2cf5d6e3975ccf240066d07cb1ec5c MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 67089 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook1.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 68629 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25a.2864802/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros2server -mvmInputPipe 599 -1 -mvmOutputPipe -1 609 68816 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 68818 pts/2 S+ 0:00 grep -E ros|python * Exiting killProcessByPID function *
Create a sample ROS 2 network with two nodes.
node_1 = ros2node('node_1_service_server'); node_2 = ros2node('node_2_service_client');
Set up a service server and attach it to a ROS 2 node. Specify the callback function flipstring
, which flips the input string. The callback function is defined at the end of this example.
server = ros2svcserver(node_1,'/test','test_msgs/BasicTypes',@flipString);
Set up a service client of the same service type and attach it to a different node.
client = ros2svcclient(node_2,'/test','test_msgs/BasicTypes');
Wait for the service client to connect to the server.
[connectionStatus,connectionStatustext] = waitForServer(client)
connectionStatus = logical
1
connectionStatustext = 'success'
Create a request message based on the client. Assign the string to the corresponding field in the message, string_value
.
request = ros2message(client);
request.string_value = 'hello world';
Check whether the service server is available. If it is, send a service request and wait for a response. Specify that the service waits 3 seconds for a response.
if(isServerAvailable(client)) response = call(client,request,'Timeout',3); end
The response is a flipped string from the request message which you see in the string_value
field.
response.string_value
ans = 'dlrow olleh'
If the call
function above fails, it results in an error. Instead of an error, if you would prefer to react to a call failure using conditionals, return the status
and statustext
outputs from the call function. The status
output indicates if the call succeeded, while statustext
provides additional information.
numCallFailures = 0; [response,status,statustext] = call(client,request,"Timeout",3); if ~status numCallFailures = numCallFailues + 1; fprintf("Call failure number %d. Error cause: %s\n",numCallFailures,statustext) else disp(response.string_value) end
dlrow olleh
The callback function used to flip the string is defined below.
function resp = flipString(req,resp) % FLIPSTRING Reverses the order of a string in REQ and returns it in RESP. resp.string_value = fliplr(req.string_value); end
Input Arguments
ROS or ROS 2 service client, specified as a ros.ServiceClient
or
ros2serviceclient
object handle, respectively.
Request message, specified as a Message
object handle or structure. The
default message type is serviceclient.ServiceType
.
Note
In a future release, ROS Toolbox will use message structures instead of objects for ROS messages.
To use message structures now, set the "DataFormat"
name-value
argument to "struct"
. For more information, see ROS Message Structures.
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
Example: "TimeOut",5
Timeout for service response in seconds, specified as a comma-separated pair consisting of
"Timeout"
and a scalar. If the service client
does not receive a service response and the timeout period elapses,
call
displays an error message and lets
MATLAB® continue running the current program. The default value of
inf
prevents MATLAB from running the current program until the service client
receives a service response.
Message format for ROS service clients, specified as
"object"
or "struct"
. Set this
property on creation of the service client using the name-value input.
For more information, see ROS Message Structures. This argument
applies to ROS service clients only.
Output Arguments
Response message sent by the service server, returned as a Message
object
handle or structure.
Status of the service call, returned as a logical
scalar. If the call fails, status will be
false
.
Note
Use the status
output argument when you use call for code
generation. This will avoid runtime errors and outputs the status instead, which can be
reacted to in the calling code.
Status text associated with the service call status, returned as one of the following:
'success'
— The service response was successfully received.'input'
— The input to the function is invalid.'timeout'
— The service response was not received within the specified timeout.'unknown'
— The service response was not received due to unknown errors.
Tips
ROS 2 service servers cannot communicate errors in callback execution directly to clients. In such situations, the servers only return the default response without any indication of failure. Hence, it is recommended to use try-catch blocks within the callback function, and set specific fields in the response message to communicate the success/failure of the callback execution on the server side.
Extended Capabilities
Usage notes and limitations:
Supported only for the Build Type,
Executable
.Usage in MATLAB Function block is not supported.
Version History
Introduced in R2019bYou can now create messages as structures with fields matching the message object properties. Using structures typically improves performance of creating, updating, and using ROS messages, but message fields are no longer validated when set. Message types and corresponding field values from the structures are validated when sent across the network.
To use ROS messages as structures, use the "DataFormat"
name-value
argument when creating your publishers, subscribers, or other ROS objects. Any messages
generated from these objects will utilize structures.
pub = rospublisher("/scan","sensor_msgs/LaserScan","DataFormat","struct") msg = rosmessage(pub)
You can also create messages as structures directly, but make sure to specify the data
format as "struct"
for the publisher, subscriber, or other ROS objects as
well. ROS objects still use message objects by default.
msg = rosmessage("/scan","sensor_msgs/LaserScan","DataFormat","struct") ... pub = rospublisher("/scan","sensor_msgs/LaserScan","DataFormat","struct")
In a future release, ROS messages will use structures by default and ROS message objects will be removed.
For more information, see Improve Performance of ROS Using Message Structures.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: United States.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)