Skip to content

serialization the data and save them #8

@feixiao5566

Description

@feixiao5566

hello Mryellow, when i fork your code I notice that your vision keeps the serialization, so I guess you want to save the map data, but you don`t finish that. Here is my program, hope that could be useful:^)
main_lv.cpp

#include <fstream>

  ros::spin();

  //add this four line between  ros::spin(); and return 
  std::ofstream ofs( "store.dat" );
  boost::archive::text_oarchive ar(ofs);
  ar & lv;
  ofs.close();

  return 0;

your code helps me a lot, thankyou!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions