Read and Apply Transformation to ROS Message in Simulink
This example shows how to read transformations from ROS network and use them to transform a pose message using Simulink®.
Publish Transformation and Pose Messages on ROS Network
Initialize the ROS network.
rosinit
Launching ROS Core... Status before launching ros core :0 result before launching ros core: 883 ? Ssl 15:06 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1508 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 335629 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335659 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335672 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335723 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 337082 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 337084 pts/2 S+ 0:00 grep -E ros|python Done in 0.75351 seconds. * Inside getProcessPID function * Process Name: /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 56766 -w 3 Status before getting PID :0 Result before getting PID : 883 ? Ssl 15:06 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1508 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 335629 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335659 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335672 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335723 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 337087 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248102/tp382e9d22_f9b8_4766_bd47_ac28a373345a/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 56766 -w 3 337099 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 56766 -w 3 337107 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 337109 pts/2 S+ 0:00 grep -E ros|python Result: 337087 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248102/tp382e9d22_f9b8_4766_bd47_ac28a373345a/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 56766 -w 3 Status: 0 PID obtained: 337087 Status after getting PID :0 Result after getting PID : 883 ? Ssl 15:06 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1508 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 335629 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335659 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335672 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335723 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 337087 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248102/tp382e9d22_f9b8_4766_bd47_ac28a373345a/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 56766 -w 3 337099 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 56766 -w 3 337114 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 337116 pts/2 S+ 0:00 grep -E ros|python * Exiting getProcessPID function * Status after launching ros core :0 result after launching ros core: 883 ? Ssl 15:06 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1508 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 335629 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335659 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335672 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335723 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 337087 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248102/tp382e9d22_f9b8_4766_bd47_ac28a373345a/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 56766 -w 3 337099 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 56766 -w 3 337117 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 337119 pts/2 S+ 0:00 grep -E ros|python Status before deleting node :0 Result before deleting node : 883 ? Ssl 15:06 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1508 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 335629 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335659 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335672 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335723 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 337087 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248102/tp382e9d22_f9b8_4766_bd47_ac28a373345a/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 56766 -w 3 337099 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 56766 -w 3 337122 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 605 -1 -mvmOutputPipe -1 780 337137 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 337139 pts/2 S+ 0:00 grep -E ros|python Status after deleting node :0 Result after deleting node : 883 ? Ssl 15:06 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1508 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 335629 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335659 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335672 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335723 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 337087 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248102/tp382e9d22_f9b8_4766_bd47_ac28a373345a/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 56766 -w 3 337099 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 56766 -w 3 337143 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 337145 pts/2 S+ 0:00 grep -E ros|python Initializing ROS master on http://172.30.153.187:56766. Initializing global node /matlab_global_node_36389 with NodeURI http://dcc2850139glnxa64:42419/ and MasterURI http://localhost:56766.
Use the exampleHelperROSStartTfPublisher function to start publishing transformation data. The function publishes transformations between these frames:
robot_basecamera_centermounting_point
exampleHelperROSStartTfPublisher
Create a ROS publisher to publish pose messages.
[posePub,poseMsg] = rospublisher("/pose","geometry_msgs/PoseStamped",DataFormat="struct");
Create and publish the pose message.
poseMsg.Pose.Position.X = 1; poseMsg.Pose.Position.Y = 1; poseMsg.Pose.Position.Z = 0.5; send(posePub,poseMsg)
Read and Apply Transformation
Open the readAndApplyROSTransform model. The Get Transform block reads the transformation between the target robot_base and the source camera_center frames as a geometry_msgs/TransformStamped bus. The Header Assignment block assigns the frame ID camera_center to the pose message. Then, the Apply Transform block transforms the pose message using the read transformation value. The model then writes the transformed pose message into MATLAB® workspace.
modelName = "readAndApplyROSTransform";
open_system(modelName)
The readAndApplyROSTransform model uses Simulation Pacing to run at a pace where the simulation time is same as the wall clock time. This is important to ensure that Simulink synchronizes correctly with the transforms being published to the transformation tree in the ROS network.
Simulate the model.
out = sim(modelName);
Status before deleting node :0 Result before deleting node : 883 ? Ssl 15:07 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1508 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 335629 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335659 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335672 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335723 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 337087 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248102/tp382e9d22_f9b8_4766_bd47_ac28a373345a/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 56766 -w 3 337099 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 56766 -w 3 337150 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 597 -1 -mvmOutputPipe -1 752 337237 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 847 -1 -mvmOutputPipe -1 851 337276 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 337278 pts/2 S+ 0:00 grep -E ros|python Status after deleting node :0 Result after deleting node : 883 ? Ssl 15:07 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1508 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 335629 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335659 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335672 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335723 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 337087 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248102/tp382e9d22_f9b8_4766_bd47_ac28a373345a/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 56766 -w 3 337099 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 56766 -w 3 337150 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 597 -1 -mvmOutputPipe -1 752 337237 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 847 -1 -mvmOutputPipe -1 851 337279 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 337281 pts/2 S+ 0:00 grep -E ros|python
Visualize Input and Transformed Poses
Get transformed pose as geometry_msgs/Pose message from the simulation output variable in the workspace.
transformedPoseMsg = helperGetTransformedROSPoseFromSimout(out);
You can visualize poses as local coordinate frames in the global cartesian coordinates. You can calculate the location and basis axes orientation of the local frames by using the position and orientation information in the poses, respectively. For both input and transformed poses, use the helperGetTransformedAxesVectorsFromROSQuat function to get the basis vectors of the local coordinate frame.
[inputPoseX,inputPoseY,inputPoseZ] = helperGetTransformedAxesVectorsFromROSQuat(poseMsg.Pose.Orientation); [transformedPoseX,transformedPoseY,transformedPoseZ] = helperGetTransformedAxesVectorsFromROSQuat(transformedPoseMsg.Pose.Orientation);
Visualize the poses as local coordinate frames based on the position and orientation values. The quiver3 function visualizes the basis vectors at the specified pose location.
quiver3(poseMsg.Pose.Position.X,poseMsg.Pose.Position.Y,poseMsg.Pose.Position.Z,inputPoseX(1),inputPoseX(2),inputPoseX(3),'r',LineWidth=2) hold on quiver3(poseMsg.Pose.Position.X,poseMsg.Pose.Position.Y,poseMsg.Pose.Position.Z,inputPoseY(1),inputPoseY(2),inputPoseY(3),'b',LineWidth=2) quiver3(poseMsg.Pose.Position.X,poseMsg.Pose.Position.Y,poseMsg.Pose.Position.Z,inputPoseZ(1),inputPoseZ(2),inputPoseZ(3),'g',LineWidth=2) quiver3(transformedPoseMsg.Pose.Position.X,transformedPoseMsg.Pose.Position.Y,transformedPoseMsg.Pose.Position.Z,transformedPoseX(1),transformedPoseX(2),transformedPoseX(3),'c',LineWidth=2) quiver3(transformedPoseMsg.Pose.Position.X,transformedPoseMsg.Pose.Position.Y,transformedPoseMsg.Pose.Position.Z,transformedPoseY(1),transformedPoseY(2),transformedPoseY(3),'m',LineWidth=2) quiver3(transformedPoseMsg.Pose.Position.X,transformedPoseMsg.Pose.Position.Y,transformedPoseMsg.Pose.Position.Z,transformedPoseZ(1),transformedPoseZ(2),transformedPoseZ(3),'k',LineWidth=2) legend("inputX","inputY","inputZ","transformedX","transformedY","transformedZ") xlabel('X') ylabel('Y') zlabel('Z') view([-24.39 11.31])

Shut down the ROS network.
rosshutdown
Shutting down global node /matlab_global_node_36389 with NodeURI http://dcc2850139glnxa64:42419/ and MasterURI http://localhost:56766. Status before deleting node :0 Result before deleting node : 883 ? Ssl 15:07 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1508 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 335629 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335659 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335672 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335723 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 337087 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248102/tp382e9d22_f9b8_4766_bd47_ac28a373345a/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 56766 -w 3 337099 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 56766 -w 3 337150 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 597 -1 -mvmOutputPipe -1 752 337286 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 337288 pts/2 S+ 0:00 grep -E ros|python Status after deleting node :0 Result after deleting node : 883 ? Ssl 15:07 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1508 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 335629 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335659 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335672 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335723 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 337087 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248102/tp382e9d22_f9b8_4766_bd47_ac28a373345a/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 56766 -w 3 337099 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 56766 -w 3 337292 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 337294 pts/2 S+ 0:00 grep -E ros|python Shutting down ROS master on http://172.30.153.187:56766. Status before deleting core :0 Result before deleting core : 883 ? Ssl 15:07 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1508 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 335629 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335659 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335672 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335723 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 337087 pts/2 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_3168145_248102/tp382e9d22_f9b8_4766_bd47_ac28a373345a/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 56766 -w 3 337099 pts/2 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 56766 -w 3 337295 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 337297 pts/2 S+ 0:00 grep -E ros|python * Inside killProcessByPID function * PID of core to be killed: 337087 Status after Child Process Killed: 0 Result after Child Process Killed: Status after deleting core :0 Result after deleting core : 883 ? Ssl 15:07 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1508 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 335629 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335659 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_3168145_248102 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/matlab/examples/ros ; //mathworks/hub/bat/common/bin/mw sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335672 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/3168145/build.glnxa64.3168145.r009/examples/ros/build.glnxa64.3168145.r009.bml.94e28ee213d9fee82e23c96e6e6778f8 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 335723 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.3168145/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook6.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 337302 pts/2 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 337304 pts/2 S+ 0:00 grep -E ros|python * Exiting killProcessByPID function *