del
설명
예제
ROS Master에서 파라미터 삭제하기
ROS 네트워크에 연결합니다. 파라미터 트리와 'MyParam'
파라미터를 만듭니다. 파라미터가 존재하는지 확인합니다.
rosinit
Launching ROS Core... Done in 1.0627 seconds. Initializing ROS master on http://172.30.110.111:51205. Initializing global node /matlab_global_node_01141 with NodeURI http://dcc332843glnxa64:34773/ and MasterURI http://localhost:51205.
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_01141 with NodeURI http://dcc332843glnxa64:34773/ and MasterURI http://localhost:51205. Shutting down ROS master on http://172.30.110.111:51205.
입력 인수
ptree
— 파라미터 트리
ParameterTree
객체 핸들
파라미터 트리로, ParameterTree
객체 핸들로 지정됩니다. 이 객체는 rosparam
함수를 사용하여 만듭니다.
paramname
— ROS 파라미터 이름
string형 스칼라 | 문자형 벡터
ROS 파라미터 이름으로, string형 스칼라 또는 문자형 벡터로 지정됩니다. 이 문자열은 파라미터 이름과 정확히 일치해야 합니다.
namespace
— ROS 파라미터 네임스페이스
string형 스칼라 | 문자형 벡터
ROS 파라미터 네임스페이스로, string형 스칼라 또는 문자형 벡터로 지정됩니다. 이 문자열로 시작하는 모든 파라미터 이름은 rosparam("list",namespace)
를 호출하면 나열됩니다.
확장 기능
C/C++ 코드 생성
MATLAB® Coder™를 사용하여 C 코드나 C++ 코드를 생성할 수 있습니다.
버전 내역
R2019b에 개발됨
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 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)