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

obstacle avoidance? #21

Closed
ngthanhtin opened this issue Apr 1, 2022 · 2 comments
Closed

obstacle avoidance? #21

ngthanhtin opened this issue Apr 1, 2022 · 2 comments

Comments

@ngthanhtin
Copy link

Hi i would like to ask how to adjust the env for terminating when encounter an obstacle.
In vision_env.cpp, I have changed the code as following:
Screenshot from 2022-04-01 15-31-49
and then,
catkin build flightlib
But the agent still is going through obstacles as the following video:
https://www.youtube.com/watch?v=350ardLDI1Q&ab_channel=T%C3%ADnNguy%E1%BB%85n

So could you tell me how to do this?

Thanks

@yun-long
Copy link
Contributor

yun-long commented Apr 1, 2022

this code is used for reinforcement learning, which does not use any ROS.

when you change the vision_env.cpp, you should do

cd flightlib/build
cmake ..
make -j10
pip install . 

by doing so, the flightgym python package will be updated.
the flightgym package is used in the run_vision_ppo.py

@ngthanhtin
Copy link
Author

Thanks, I did it.

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