Code Monkey home page Code Monkey logo

Comments (3)

Shuijing725 avatar Shuijing725 commented on June 4, 2024

See #22

from crowdnav_dsrnn.

why0504 avatar why0504 commented on June 4, 2024

Hi,
I've seen https://github.com/Shuijing725/CrowdNav_DSRNN/issues/22
If I want to train two robots, then after adding the second robot instance, as follows:
Under the two programs crowd_sim/envs/crowd_sim.py and crowd_sim/envs/crowd_sim_dict.py

rob_RL = Robot(config, 'robot') rob2_RL = Robot(config,'robot2') self.set_robot(rob_RL) self.set_robot(rob2_RL)
ob['robot_node2'] = self.robot2.get_full_state_list_noV()

I assume that both robots use the same reinforcement learning strategy, and the episode ends with both robots reaching the same target point. Then, referring to the training of the first robot, what procedures do I need to modify in the project file? Do I just need to modify the environment's code? For example, the related functions in crowd_sim_dict.py.
Secondly, does the render() function in crowd_sim.py also need to be modified?
Do I need to add code to train.py?
Sorry to bother you.
Thank you so much!

from crowdnav_dsrnn.

Shuijing725 avatar Shuijing725 commented on June 4, 2024

Yes, besides the gym environment, multiple modifications are needed. For example, you probably need to modify the main scripts including train.py and test.py.
Also, the code for network and ppo in pytorchBaselines folder needs to be adapted. For example, dsrnn network and RL replay buffer are only designed for single robot scenarios.

Besides changing our repo, another way to achieve your purpose is to look at open-source implementations of other multi-agent social navigation papers. For example, you can search for works that used environments like this one.

from crowdnav_dsrnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.