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

Evolve NEAT into PyRoSim #7

Closed
huchanwei123 opened this issue Jul 5, 2018 · 3 comments
Closed

Evolve NEAT into PyRoSim #7

huchanwei123 opened this issue Jul 5, 2018 · 3 comments

Comments

@huchanwei123
Copy link

Dear ccappelle,
I'm currently working on generalizing locomotion of modular robot using PyRoSim for simple algo. testing. My goal is to apply evolutionary algorithm (such as NEAT) on robot, and I'm wondering if I can reach the sensor data in simulation rather than after the whole simulation done. Can the user extracts sensor data at each time step?

Thanks!!

@ccappelle
Copy link
Owner

Within the c++ code you can access the sensor data at each time step but not from the python code. Pyrosim makes one batched send and one batched receive command where all the data is transferred. If you need to modify the simulation based on sensor values at each time step, you have to edit the c++ code.

@huchanwei123
Copy link
Author

Got it! Seems that I need to dig deeper into ODE engine.
Thanks for the quick reply :)

@undera
Copy link

undera commented Jul 18, 2018

I have made a simple implementation of what you have asked @huchanwei123
Check it out from my branch, and let's hope @ccappelle will accept the feature :)

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

3 participants