이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
ROS 로그 파일 및 특화된 메시지
ROS 토픽은 파일명이 rosbag인 로그 파일에 저장됩니다. MATLAB®에서 rosbag에 담긴 정보에 액세스하고 필터링할 수 있습니다. rosbag을 사용한 작업에 대한 예제는 Work with rosbag Logfiles 항목을 참조하십시오.
특화된 메시지 함수를 사용하면 특정 ROS 메시지 유형과 ROS 2 메시지 유형을 사용해 센서와 데이터형을 생성하고 액세스할 수 있습니다. 또한 동일한 함수를 사용하여 ROS 및 ROS 2에 특화된 특정 메시지 유형으로 작업할 수 있습니다. 이러한 센서에서 데이터에 액세스하는 예제는 Work with Specialized ROS Messages 항목을 참조하십시오.
함수
객체
BagSelection | Object for storing rosbag selection |
블록
Read Data | Play back data from log file |
Read Image | Extract image from ROS Image message |
Read Scan | Extract scan data from ROS or ROS 2 laser scan message |
Read Point Cloud | Extract point cloud from ROS PointCloud2 message |
Write Image | Write image data to a ROS or ROS 2 message |
Write Point Cloud | Write point cloud data to a ROS or ROS 2 message |
도움말 항목
- ROS Log Files (rosbags)
Summary of the structure of rosbags and the workflow for selecting subsets of messages in a rosbag.
- Log ROS Messages from Simulink to a Rosbag Logfile
Save ROS message data from Simulink® to a rosbag file.
- Work with rosbag Logfiles
Load a
rosbag
, and learn how to select and retrieve the contained messages. - Work with Specialized ROS Messages
Handle message types for laser scans, uncompressed and compressed images, point clouds, camera info, occcupancy 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.