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.80635 seconds.
Initializing ROS master on http://172.20.24.202:52623.
Initializing global node /matlab_global_node_56566 with NodeURI http://dcc2856820glnxa64:36449/ and MasterURI http://localhost:52623.
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_56566 with NodeURI http://dcc2856820glnxa64:36449/ and MasterURI http://localhost:52623.
Shutting down ROS master on http://172.20.24.202:52623.
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.
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.