del
説明
例
ROS マスターでのパラメーターの削除
ROS ネットワークに接続します。パラメーター ツリーと 'MyParam'
パラメーターを作成します。パラメーターが存在するか確認します。
rosinit
Launching ROS Core... Done in 0.47425 seconds. Initializing ROS master on http://172.29.217.125:53125. Initializing global node /matlab_global_node_16352 with NodeURI http://dcc934856glnxa64:39315/ and MasterURI http://localhost:53125.
ptree = rosparam; set(ptree,'MyParam','test') has(ptree,'MyParam')
ans = logical
1
パラメーターを削除します。削除されたか確認します。ROS ネットワークをシャットダウンします。
del(ptree,'MyParam') has(ptree,'MyParam')
ans = logical
0
rosshutdown
Shutting down global node /matlab_global_node_16352 with NodeURI http://dcc934856glnxa64:39315/ and MasterURI http://localhost:53125. Shutting down ROS master on http://172.29.217.125:53125.
入力引数
ptree
— パラメーター ツリー
ParameterTree
オブジェクト ハンドル
パラメーター ツリー。ParameterTree
オブジェクト ハンドルとして指定します。関数 rosparam
を使用してこのオブジェクトを作成します。
paramname
— ROS パラメーター名
string スカラー | 文字ベクトル
ROS パラメーター名。string スカラーまたは文字ベクトルとして指定します。この string はパラメーター名と厳密に一致しなければなりません。
namespace
— ROS パラメーター名前空間
string スカラー | 文字ベクトル
ROS パラメーター名前空間。string スカラーまたは文字ベクトルとして指定します。rosparam("list",namespace)
を呼び出すと、この string から始まるすべてのパラメーター名がリストされます。
拡張機能
C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。
バージョン履歴
R2019b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)