Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serialization the data and save them #8

Open
feixiao5566 opened this issue Feb 18, 2016 · 2 comments
Open

serialization the data and save them #8

feixiao5566 opened this issue Feb 18, 2016 · 2 comments

Comments

@feixiao5566
Copy link

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!

@mryellow
Copy link
Owner

Not mine originally and I'm not completely across the code so not sure what the intentions are in places.

With a bit more work it could be rather functional. I like the general organisation of the code, easy enough to read.

@mryellow
Copy link
Owner

What I'm doing with that goal order reversal is experimenting with training DQN to make good Ratslam map topology. Became a bit busy on other stuff but had some promising results with the DQN side. Haven't gone to actor-critic, actor-learner style models or any LTSM implementation which would enable bypassing walls to approach goals, but with a goal placed not far in the past walls shouldn't be too much of an issue.

The idea is to place a goal behind the agent and by turning around have Ratslam develop experiences in both directions (without omni-direction offset feature), thinking rats themselves do this running back and forth a lot. Hoped it would strengthen those paths and connect nodes rather than gradually becoming a mess.

https://github.com/mryellow/ros-dqn-rat-js
https://github.com/mryellow/reinforcejs/tree/demo-multiagent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants