Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 475

memory mapping in ros bag

$
0
0
Instead of reading all the data from the ros bag file, is their any ros provided method to read the bag file using memory mapped methode? For example right now i am using below program to read the ros bag named obj.bag using memory mapped i/o, #include #include #include #include #include namespace bip = boost::interprocess; int main() { std::string filename = "obj.bag"; bip::file_mapping mapping(filename.c_str(), bip::read_only); bip::mapped_region mapped_rgn(mapping, bip::read_only); char const* const mmaped_data = static _cast(mapped_rgn.get_address()); std::size_t const mmap_size = mapped_rgn.get_size(); std::cout<

Viewing all articles
Browse latest Browse all 475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>