ヘルプ センターヘルプ センター
ROS または ROS 2 点群メッセージ構造体から使用可能なすべてのフィールド名を取得
R2021a 以降
names = rosReadAllFieldNames(pcloud)
names = rosReadAllFieldNames(pcloud) は、ROS または ROS 2 'sensor_msgs/PointCloud2' メッセージ構造体 (pcloud) に保存されているすべてのフィールドを返し、それらを names で返します。
names
pcloud
'sensor_msgs/PointCloud2'
すべて折りたたむ
点群。ROS または ROS 2 'sensor_msgs/PointCloud2' メッセージのメッセージ構造体として指定します。
PointCloud2
'sensor_msgs/PointCloud2' メッセージのフィールド名のリスト。文字ベクトルの cell 配列として返されます。メッセージにフィールドが存在しない場合、fieldname は空の cell 配列を返します。
fieldname
使用に関するメモと制限:
MATLAB Function ブロックでの使用はサポートされていません。
R2021a で導入
rosReadXYZ | rosReadField | rosReadRGB | rosReadCartesian
rosReadXYZ
rosReadField
rosReadRGB
rosReadCartesian
次の 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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office