특화된 메시지
특화된 센서 및 입력에서 메시지에 액세스
특화된 메시지 함수를 사용하면 특정 ROS 메시지 유형과 ROS 2 메시지 유형을 사용해 센서와 데이터형을 생성하고 액세스할 수 있습니다. 또한 동일한 함수를 사용하여 ROS 및 ROS 2에 특화된 특정 메시지 유형으로 작업할 수 있습니다. 이러한 센서에서 데이터에 액세스하는 예제는 Work with Specialized ROS Messages 항목을 참조하십시오.
함수
블록
ROS Apply Transform, ROS 2 Apply Transform | Transform input ROS or ROS 2 message to target frame (R2023b 이후) |
Get Transform | Get transformation between source and target frame from ROS network (R2023b 이후) |
Get Transform | Get transformation between source and target frame from ROS 2 network (R2023b 이후) |
Read Image | Extract image from ROS Image message (R2019b 이후) |
Read Image | Extract image from ROS 2 Image message (R2021b 이후) |
ROS Read Scan, ROS 2 Read Scan | Extract scan data from ROS or ROS 2 laser scan message (R2022a 이후) |
Read Point Cloud | Extract point cloud from ROS PointCloud2 message (R2019b 이후) |
Read Point Cloud | Extract point cloud from ROS 2 PointCloud2 message (R2021b 이후) |
ROS Write Image, ROS 2 Write Image | Write image data to a ROS or ROS 2 message (R2022a 이후) |
ROS Write Point Cloud, ROS 2 Write Point Cloud | Write point cloud data to a ROS or ROS 2 message (R2022a 이후) |
도움말 항목
특화된 ROS 메시지
- Work with Specialized ROS Messages
Handle message types for laser scans, uncompressed and compressed images, point clouds, camera info, occupancy grid, and octomap messages. - Work with Velodyne ROS Messages
Handle VelodyneScan messages from a Velodyne LiDAR. - Improve Performance of ROS Using Message Structures
Demonstrates the use of ROS message structures, and their benefits and differences from message objects.