ROS bag类中的成员函数都有哪些?
时间: 2023-04-11 22:01:27 浏览: 174
ROS bag类中的成员函数包括:open、close、isOpen、write、writeAsync、compress、decompress、setCompression、getCompression、setChunkThreshold、getChunkThreshold、setCompressionThreshold、getCompressionThreshold、setBufferSize、getBufferSize、setMetadata、getMetadata、getFileName、getBagSize、getCompressionRatio、getMessages、getStart、getEnd、getConnections、getTypes、getCompressionInfo、getBagInfo。
相关问题
ROS bag类中的成员函数都有哪些?包不包含getTopicTypes?
ROS bag类中的成员函数包括:open、close、isOpen、write、read、getFileName、getMode、getCompressionMode、getCompressionFormat、setCompression、setChunkThreshold、setCompressionThreshold、setMetadata、getMetadata、getStartTime、getEndTime、getBagSize、getCompressionRatio、getMessages、getConnections、getTypes、getTopicInfo、getTopicList、getCompressionStatistics、getUnindexedChunkCount、getChunkCount、getChunkInfo、getChunkMetadata、getChunkUri、getChunkSize、getChunkOffset、getChunkDuration、getChunkMessageCount、getChunkStartTime、getChunkEndTime、getChunkConnections、getChunkTypes、getChunkTopicInfo、getChunkTopicList、getChunkCompressionStatistics、getChunkUnindexedMessageCount、getChunkMessageOffsets、getChunkMessageSizes、getChunkMessageTimes、getChunkMessageDurations、getChunkMessageTopics、getChunkMessageTypes、getChunkMessageConnections、getChunkMessageCompressionStatistics。
其中包含getTopicTypes函数。
rosbag::MessageInstance有哪些成员函数和变量?
rosbag::MessageInstance有以下成员函数和变量:
成员函数:
- getMessage():返回消息实例中的消息。
- getDataType():返回消息实例中的消息类型。
- getTime():返回消息实例中的时间戳。
- getConnectionHeader():返回消息实例中的连接头。
- getMD5Sum():返回消息实例中的MD5校验和。
- getTopic():返回消息实例中的主题名称。
- isLatching():返回消息实例中的是否为持久化消息。
成员变量:
- message:消息实例中的消息。
- data_type:消息实例中的消息类型。
- time:消息实例中的时间戳。
- connection_header:消息实例中的连接头。
- md5sum:消息实例中的MD5校验和。
- topic:消息实例中的主题名称。
- latching:消息实例中的是否为持久化消息。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)