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

Issue while running layered_planner.py #2

Closed
Scientist786 opened this issue Apr 7, 2020 · 1 comment
Closed

Issue while running layered_planner.py #2

Scientist786 opened this issue Apr 7, 2020 · 1 comment

Comments

@Scientist786
Copy link

Scientist786 commented Apr 7, 2020

Hello
I have been searching in pip for swarmlib package as included in requirements.txt but I cannot find one. I tried pip3 to search the package and it was successfully installed but it does not contain Drone function. I get this error while running it.

Traceback (most recent call last):
File "layered_planner.py", line 14, in
from swarmlib import Drone, Obstacle
ImportError: cannot import name 'Drone' from 'swarmlib' (/usr/local/lib/python3.7/dist-packages/swarmlib/init.py)

I have looked into swarmlib functions and all I could find was
Firefly Algorithm
Cuckoo Search
Particle Swarm Optimization
Ant Colony Optimization

There was no Drone or Obstacle in it as shown by your code

from swarmlib import Drone, Obstacle

Kindly a reply back would be helpful.
Thanks

@RuslanAgishev
Copy link
Owner

I apologize, I forgot to include the file:
https://github.com/RuslanAgishev/adaptive_swarm/blob/master/scripts/swarmlib.py

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