rosactionserver
Description
Use rosactionserver
to create an action server as a
SimpleActionServer
object. Then, use the rosactionclient
object to create an action client and connect to the action server
to request the execution of action goals. When a connected client sends a goal execution
request, the server executes the specified callback function. You can use the rosActionServerExecuteGoalFcn
function to customize the callback function based
on a predefined framework. The server can provide periodic feedback on execution progress to
the clients, and stop goal execution if specified or if a new goal is received.
When you create the action server, it registers itself with the ROS
master. To get a list of actions, or to get information about a
particular action that is available on the current ROS network, use the rosaction
function.
An action is defined by a type and three messages: one for the goal, one for the feedback, and one for the result. On receiving a goal, the server goal execution callback must periodically send feedback to the client during goal execution, and return an appropriate result when goal execution completes. The behavior of the action server is inherently asynchronous because it becomes active only when an action client connects to the ROS network and issues a goal execution request.
Creation
Syntax
Description
creates an action server object, server
= rosactionserver(actionname
,actiontype
,ExecuteGoalFcn
=cb)server
, that corresponds to the
ROS action of the specified name, actionname
and type,
actiontype
. You must also specify the
ExecuteGoalFcn
property as a function handle callback,
cb
, which handles the goal execution when the client sends a
request.
[
specifies to use message structures instead of objects, in addition to all input
arguments from the previous syntax. For more information, see Improve Performance of ROS Using Message Structures.server
]
= rosactionserver(___,"DataFormat","struct")
server = ros.SimpleActionServer(
attaches the created action server to the specified ROS node
node
, actionname
,actiontype
,ExecuteGoalFcn
=cb)node
.
[
uses message structures instead of objects. For more information, see Improve Performance of ROS Using Message Structures.server
]
= ros.SimpleActionServer(___,DataFormat="struct")
Properties
This property is read-only.
Name of the action, specified as a string scalar or character vector.
Example: "/fibonacci"
Data Types: char
| string
This property is read-only.
Type of action, specified as a string scalar or character vector.
Example: "actionlib_tutorials/Fibonacci"
Data Types: char
| string
Action callback function, specified as a function handle or cell array. In the first
element of the cell array, specify either a function handle, string scalar, or character
vector representing a function name. In subsequent elements, specify user data. To get a
predefined framework to customize the callback function, use rosActionServerExecuteGoalFcn
.
The action callback function requires at least four input arguments with one output.
The first argument, src
, is the associated action server object. The
second argument, goal
, is the goal message sent by the action client.
The third argument is the default response message, defaultFeedback
.
The fourth argument is the default result message, defaultResultMsg
.
The callback returns a result message, result
, based on the input
goal message and sends it back to the action client. Use the default response message as
a starting point for constructing the request message. The callback also returns
success
as true if the goal was successfully reached, or as false
if the goal was aborted or preempted by another goal. The function header for the
callback is:
function [result,success] = actionCallback(src,goalMsg,defaultFeedbackMsg,defaultResultMsg)
Specify the ExecuteGoalFcn
property while creating the action
server using the name-value pair as:
server = rosactionserver(actionname,actiontype,ExecuteGoalFcn=@actionCallback)
When setting the callback, you pass additional parameters to the callback function by including both the callback function and the parameters as elements of a cell array. The function header for such a callback is:
function [result,success] = actionCallback(src,goalMsg,defaultFeedbackMsg,defaultResultMsg,userData)
Specify the ExecuteGoalFcn
property while creating the action
server using the name-value pair as:
server = rosactionserver(actionname,actiontype,ExecuteGoalFcn={@actionCallback,userData})
Message format, specified as "object"
or
"struct"
. You must set this property on creation using the
name-value input. For more information, see Improve Performance of ROS Using Message Structures.
Object Functions
getFeedbackMessage | Create new action feedback message |
isPreemeptRequested | Check if a goal has been preempted |
sendFeedback | Send feedback to action client during goal execution |
Examples
This example shows how to create a ROS action server, connect an action client to it, receive goal, and execute it.
Connect to a ROS network.
rosinit
Launching ROS Core... ..Done in 2.1278 seconds. Initializing ROS master on http://172.19.136.75:52554. Initializing global node /matlab_global_node_56708 with NodeURI http://vdi-wd1bgl-223:61999/ and MasterURI http://localhost:52554.
Set up an action server for calculating Fibonacci sequence. Use structures for the ROS message data format. Use fibbonacciExecution
function as the callback.
cb = @fibonacciExecution; server = rosactionserver("/fibonacci","actionlib_tutorials/Fibonacci",ExecuteGoalFcn=cb,DataFormat="struct")
server = SimpleActionServer with properties: ActionName: '/fibonacci' ActionType: 'actionlib_tutorials/Fibonacci' ExecuteGoalFcn: @fibonacciExecution DataFormat: 'struct'
Create action client and send a goal to the server to calculate the Fibonacci sequence up to 10 terms past the first two terms, 0
and 1
. Display the result sequence.
client = rosactionclient("/fibonacci","actionlib_tutorials/Fibonacci",DataFormat="struct"); goal = rosmessage(client); goal.Order = int32(10); result = sendGoalAndWait(client,goal); result.Sequence
ans = 12×1 int32 column vector
0
1
1
2
3
5
8
13
21
34
⋮
Shut down ROS network.
rosshutdown;
Shutting down global node /matlab_global_node_56708 with NodeURI http://vdi-wd1bgl-223:61999/ and MasterURI http://localhost:52554. Shutting down ROS master on http://172.19.136.75:52554.
Warning: Error shutting down the ROS master.
Supporting Functions
The callback function fibbonacciExecution
is executed every time the server receives a goal execution request from the client. This function checks if the goal has been preempted, executes the goal and sends feedback to the client during goal execution.
function [result,success] = fibonacciExecution(src,goal,defaultFeedback,defaultResult) % Initialize variables success = true; result = defaultResult; feedback = defaultFeedback; feedback.Sequence = int32([0 1]); for k = 1:goal.Order % Check that the client has not canceled or sent a new goal if isPreemptRequested(src) success = false; break end % Send feedback to the client periodically feedback.Sequence(end+1) = feedback.Sequence(end-1) + feedback.Sequence(end); sendFeedback(src,feedback) % Pause to allow time to complete other callbacks (like client feedback) pause(0.2) end if success result.Sequence = feedback.Sequence; end end
This example shows how to create a custom callback for a ROS action server using rosActionServerExecuteGoalFcn
, which provides a customizable predefined callback framework.
Connect to a ROS network.
rosinit
Launching ROS Core... Status before launching ros core :0 result before launching ros core: 873 ? Ssl 0:12 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1566 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 12623 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12653 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12661 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12716 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 14106 pts/0 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 14108 pts/0 S+ 0:00 grep -E ros|python Done in 0.67901 seconds. * Inside getProcessPID function * Process Name: /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 55726 -w 3 Status before getting PID :0 Result before getting PID : 873 ? Ssl 0:12 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1566 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 12623 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12653 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12661 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12716 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 14111 pts/0 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_749333/tp1b4be5b8_60b3_436c_9bdb_67361d5572b0/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 55726 -w 3 14123 pts/0 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 55726 -w 3 14131 pts/0 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 14133 pts/0 S+ 0:00 grep -E ros|python Result: 14111 pts/0 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_749333/tp1b4be5b8_60b3_436c_9bdb_67361d5572b0/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 55726 -w 3 Status: 0 PID obtained: 14111 Status after getting PID :0 Result after getting PID : 873 ? Ssl 0:12 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1566 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 12623 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12653 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12661 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12716 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 14111 pts/0 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_749333/tp1b4be5b8_60b3_436c_9bdb_67361d5572b0/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 55726 -w 3 14123 pts/0 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 55726 -w 3 14138 pts/0 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 14140 pts/0 S+ 0:00 grep -E ros|python * Exiting getProcessPID function * Status after launching ros core :0 result after launching ros core: 873 ? Ssl 0:12 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1566 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 12623 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12653 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12661 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12716 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 14111 pts/0 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_749333/tp1b4be5b8_60b3_436c_9bdb_67361d5572b0/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 55726 -w 3 14123 pts/0 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 55726 -w 3 14141 pts/0 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 14143 pts/0 S+ 0:00 grep -E ros|python Status before deleting node :0 Result before deleting node : 873 ? Ssl 0:12 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1566 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 12623 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12653 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12661 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12716 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 14111 pts/0 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_749333/tp1b4be5b8_60b3_436c_9bdb_67361d5572b0/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 55726 -w 3 14123 pts/0 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 55726 -w 3 14144 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 595 -1 -mvmOutputPipe -1 599 14159 pts/0 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 14161 pts/0 S+ 0:00 grep -E ros|python Status after deleting node :0 Result after deleting node : 873 ? Ssl 0:12 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1566 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 12623 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12653 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12661 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12716 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 14111 pts/0 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_749333/tp1b4be5b8_60b3_436c_9bdb_67361d5572b0/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 55726 -w 3 14123 pts/0 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 55726 -w 3 14165 pts/0 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 14167 pts/0 S+ 0:00 grep -E ros|python Initializing ROS master on http://172.20.18.150:55726. Initializing global node /matlab_global_node_49454 with NodeURI http://dcc576260glnxa64:44781/ and MasterURI http://localhost:55726.
Set up an action server callback for calculating the Fibonacci sequence using rosActionServerExecuteGoalFcn
. Specify the custom callback functions for the tasks in the callback framework. All the callback functions use a shared object to store data. For definition of these custom functions, see Supporting Functions.
% Store the first two terms 0 and 1 in shared object fibSequence = int32([0 1]); % Create the callback cb = rosActionServerExecuteGoalFcn(IsGoalReachedFcn=@isGoalReached,... StepExecutionFcn=@nextFibNumber,... CreateFeedbackFcn=@assignUserDataToMessage,... CreateSuccessfulResultFcn=@assignUserDataToMessage,... StepDelay=0.2,... UserData=fibSequence);
Use the created custom callback, cb
and set up an action server for calculating Fibonacci sequence. Use structures for the ROS message data format.
server = rosactionserver("/fibonacci","actionlib_tutorials/Fibonacci",ExecuteGoalFcn=cb,DataFormat="struct");
Create action client and send a goal to the server, which calculates the first 10 terms in the Fibonacci sequence. Display the result sequence.
client = rosactionclient("/fibonacci","actionlib_tutorials/Fibonacci",DataFormat="struct"); goal = rosmessage(client); goal.Order = int32(10); result = sendGoalAndWait(client,goal); result.Sequence
ans = 10×1 int32 column vector
0
1
1
2
3
5
8
13
21
34
Shut down ROS network.
rosshutdown
Shutting down global node /matlab_global_node_49454 with NodeURI http://dcc576260glnxa64:44781/ and MasterURI http://localhost:55726. Status before deleting node :0 Result before deleting node : 873 ? Ssl 0:12 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1566 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 12623 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12653 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12661 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12716 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 14111 pts/0 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_749333/tp1b4be5b8_60b3_436c_9bdb_67361d5572b0/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 55726 -w 3 14123 pts/0 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 55726 -w 3 14168 ? Sl 0:00 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/bin/glnxa64/libmwros1server -mvmInputPipe 593 -1 -mvmOutputPipe -1 599 14206 pts/0 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 14208 pts/0 S+ 0:00 grep -E ros|python Status after deleting node :0 Result after deleting node : 873 ? Ssl 0:12 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1566 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 12623 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12653 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12661 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12716 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 14111 pts/0 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_749333/tp1b4be5b8_60b3_436c_9bdb_67361d5572b0/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 55726 -w 3 14123 pts/0 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 55726 -w 3 14213 pts/0 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 14215 pts/0 S+ 0:00 grep -E ros|python Shutting down ROS master on http://172.20.18.150:55726. Status before deleting core :0 Result before deleting core : 873 ? Ssl 0:12 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1566 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 12623 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12653 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12661 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12716 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 14111 pts/0 S 0:00 bash /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/toolbox/ros/mlroscpp/util/+ros/+internal/runroscmd.sh /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1 /tmp/Bdoc25b_2988451_749333/tp1b4be5b8_60b3_436c_9bdb_67361d5572b0/ros1/glnxa64/venv /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/bin/glnxa64 rosmaster --core -p 55726 -w 3 14123 pts/0 Sl 0:00 python3 /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab/sys/ros1/glnxa64/ros1/bin/rosmaster --core -p 55726 -w 3 14216 pts/0 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 14218 pts/0 S+ 0:00 grep -E ros|python * Inside killProcessByPID function * PID of core to be killed: 14111 Status after Child Process Killed: 0 Result after Child Process Killed: Status after deleting core :0 Result after deleting core : 873 ? Ssl 0:12 /usr/bin/python3 /usr/bin/mta-sts-daemon --config /etc/mta-sts-daemon.yml 1566 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal 12623 ? Ss 0:00 /bin/sh /usr/bin/xvfb-run -a -s -screen 0 1280x1024x24 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12653 ? S 0:00 /bin/sh -c export TMPDIR=/tmp/Bdoc25b_2988451_749333 COMPONENT=examples/ros ; cd /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/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/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12661 ? S 0:00 sh ../../tools/build_using_mlpath/mlenv --use-scoped-paths 1 --scoped-cppms-file /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4/scoped_cppms_modules.txt --scoped-cppms-envvar MW_SCOPED_CPPMICROSERVICES_MODULES --tag bml --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --paths /mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MATLAB_LOG_DIR=/mathworks/devel/bat/Bdoc25b/logs/2988451/build.glnxa64.2988451.r001/examples/ros/build.glnxa64.2988451.r001.bml.e755ebeb090542afd4ae92ad7e709ce4 MAKEFLAGS= DISPLAY=:0 MESA_BACK_BUFFER=Pixmap perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 12716 ? S 0:00 perl ../../tools/build_using_matlab/mlrun --verbose --runnable /mathworks/devel/bat/filer/batfs2566-0/Bdoc25b.2988451/build/runnable/matlab --display mwtools.liveCodeToDocbook ../../derived/glnxa64/examples/ros/mlx_to_docbook2.txt ../../derived/glnxa64/examples/ros examples/ros ../../help/examples/ros/glnxa64 //mathworks/hub/3rdparty/R2021a/6299939/glnxa64/pngquant 1 14223 pts/0 S+ 0:00 /bin/bash -c ps ax | grep -E 'ros|python' 14225 pts/0 S+ 0:00 grep -E ros|python * Exiting killProcessByPID function *
Supporting Functions
The function isGoalReached
checks whether the goal is reached. In this case, it checks whether the number of terms in the calculated Fibonacci sequence exceeds the goal from the client.
function status = isGoalReached(sharedObj,goal) status = numel(sharedObj.UserData) >= goal.Order; end
The function nextFibNumber
is the step execution function that calculates the next term in the sequence in every iteration towards goal execution.
function nextFibNumber(sharedObj,~) sharedObj.UserData(end+1) = sharedObj.UserData(end-1) + sharedObj.UserData(end); end
The function assignUserDataToMessage
assigns the current sequence to the appropriate field in the result message. In this specific case of Fibonacci action, the feedback message also uses the same field, Sequence
as the result message. Hence, this function can be used for both creating a feedback message and result message to the client.
function msg = assignUserDataToMessage(sharedObj,msg) msg.Sequence = sharedObj.UserData; end
Limitations
MATLAB® Compiler™ software do not support ROS custom messages and the
rosgenmsg
function.
Extended Capabilities
Usage notes and limitations:
Only the syntax that uses message structures with
DataFormat="struct"
option is supported.Only one action server per ROS node is supported.
The
UserData
specified for the callback created usingrosActionServerExecuteGoalFcn
function must be a 1-D array.
Version History
Introduced in R2022a
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.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- 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)