del(ptree,paramname) deletes
a parameter with name paramname from the parameter
tree, ptree. The parameter is also deleted from
the ROS parameter server. If the specified paramname does
not exist, the function displays an error.
Connect to the ROS network. Create a parameter tree and a 'MyParam' parameter. Check that the parameter exists.
rosinit
Launching ROS Core...
Done in 0.57102 seconds.
Initializing ROS master on http://172.20.225.188:59342.
Initializing global node /matlab_global_node_52324 with NodeURI http://dcc2971517glnxa64:42019/ and MasterURI http://localhost:59342.
Delete the parameter. Verify it was deleted. Shut down the ROS network.
del(ptree,'MyParam')
has(ptree,'MyParam')
ans = logical
0
rosshutdown
Shutting down global node /matlab_global_node_52324 with NodeURI http://dcc2971517glnxa64:42019/ and MasterURI http://localhost:59342.
Shutting down ROS master on http://172.20.225.188:59342.
Parameter tree, specified as a ParameterTree object
handle. Create this object using the rosparam function.
ROS parameter name, specified as a string scalar or character vector. This string must match
the parameter name exactly.
ROS parameter namespace, specified as a string scalar or character vector. All parameter names
starting with this string are listed when calling
rosparam("list",namespace).
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.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.