isServerAvailable
Description
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 *
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. This service client
enables you to send requests to the service server.
Output Arguments
Status of service server availability, returned as a logical
scalar. If a server of the same name and type as client
is not
available, status
will be false
.
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 R2021b
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)