Main Content

特化メッセージ

特化したセンサーおよび入力からの ROS および ROS 2 メッセージにアクセスする

特化したメッセージ関数を使用すると、特定の ROS および ROS 2 メッセージ タイプを使用したセンサーおよびデータ型を作成してアクセスできます。同じ関数を使用して、特定の ROS および ROS 2 特化メッセージ タイプを操作できます。これらのセンサーからデータにアクセスする例は、Work with Specialized ROS Messagesを参照してください。

関数

すべて展開する

rosReadImageROS または ROS 2 イメージ データを MATLAB イメージに変換 (R2021a 以降)
rosWriteImageWrite MATLAB image to ROS or ROS 2 image message (R2021a 以降)
rosWriteCameraInfoWrite monocular or stereo camera parameters to ROS or ROS 2 message structure (R2022a 以降)
rosReadLidarScanROS または ROS 2 メッセージ構造体からの LIDAR スキャンまたは点群の表示 (R2021a 以降)
rosReadCartesianRead laser scan ranges in Cartesian coordinates from ROS or ROS 2 message structure (R2021a 以降)
rosReadScanAnglesReturn scan angles from ROS or ROS 2 message structure (R2021a 以降)
rosPlotROS または ROS 2 メッセージ構造体からの LIDAR スキャンまたは点群の表示 (R2021a 以降)
rosReadXYZROS または ROS 2 点群メッセージ構造体からの XYZ 座標の抽出 (R2021a 以降)
rosWriteXYZWrite data points in x, y and z coordinates to a ROS or ROS 2 PointCloud2 message structure (R2023a 以降)
rosReadRGBROS または ROS 2 点群メッセージ構造体からの RGB カラー値の抽出 (R2021a 以降)
rosWriteRGBWrite RGB color information to a ROS or ROS 2 PointCloud2 message structure (R2023a 以降)
rosReadAllFieldNamesROS または ROS 2 点群メッセージ構造体から使用可能なすべてのフィールド名を取得 (R2021a 以降)
rosReadFieldフィールド名に基づいて ROS または ROS 2 メッセージ構造体から点群データを読み取る (R2021a 以降)
rosWriteIntensityWrite intensity data points to a ROS or ROS 2 PointCloud2 message structure (R2023a 以降)
rosPlotROS または ROS 2 メッセージ構造体からの LIDAR スキャンまたは点群の表示 (R2021a 以降)
rosReadQuaternionROS または ROS 2 メッセージ構造体からの MATLAB quaternion オブジェクトの作成 (R2021a 以降)
quaternionquaternion 配列の作成
rosReadBinaryOccupancyGridRead binary occupancy grid data from ROS or ROS 2 message structure (R2021a 以降)
rosReadOccupancyGridROS または ROS 2 メッセージ構造体から占有グリッド データを読み取る (R2021a 以降)
rosReadOccupancyMap3DROS または ROS 2 Octomap メッセージ構造体からの 3 次元マップの読み取り (R2021a 以降)
rosWriteBinaryOccupancyGridWrite values from binary occupancy grid to ROS or ROS 2 message structure (R2021a 以降)
rosWriteOccupancyGrid占有グリッドの値を ROS または ROS 2 メッセージ構造体に書き込み (R2021a 以降)
rosReadTransformReturn transformation from ROS or ROS 2 TransformStamped message structure (R2023b 以降)
rosApplyTransformTransform ROS and ROS 2 message entities into target frame (R2021a 以降)
se3SE(3) 同次変換 (R2023b 以降)
so3SO(3) 回転 (R2023b 以降)
se2SE(2) 同次変換 (R2023b 以降)
so2SO(2) 回転 (R2023b 以降)
velodyneROSMessageReaderRead Velodyne ROS messages (R2020b 以降)
hasFrameDetermine if another Velodyne point cloud is available in the ROS messages (R2020b 以降)
readFrameRead point cloud frame from ROS message (R2020b 以降)
resetReset CurrentTime property of velodyneROSMessageReader object to default value (R2020b 以降)
ousterROSMessageReaderRead Ouster ROS messages (R2024a 以降)
hasFrameDetermine if another Ouster point cloud is available in the ROS messages (R2024a 以降)
readFrameRead Ouster point cloud frame from ROS message (R2024a 以降)
resetReset CurrentTime property of ousterROSMessageReader object to default value (R2024a 以降)

ブロック

すべて展開する

Read ImageExtract image from ROS Image message (R2019b 以降)
Read ImageExtract image from ROS 2 Image message (R2021b 以降)
ROS Write Image, ROS 2 Write ImageWrite image data to a ROS or ROS 2 message (R2022a 以降)
ROS Read Scan, ROS 2 Read ScanExtract scan data from ROS or ROS 2 laser scan message (R2022a 以降)
Read Point CloudExtract point cloud from ROS PointCloud2 message (R2019b 以降)
Read Point CloudExtract point cloud from ROS 2 PointCloud2 message (R2021b 以降)
ROS Write Point Cloud, ROS 2 Write Point CloudWrite point cloud data to a ROS or ROS 2 message (R2022a 以降)
ROS Apply Transform, ROS 2 Apply TransformTransform input ROS or ROS 2 message to target frame (R2023b 以降)
Get TransformGet transformation between source and target frame from ROS network (R2023b 以降)
Get TransformGet transformation between source and target frame from ROS 2 network (R2023b 以降)

トピック

ROS 特化メッセージ