generalized-intelligence / GAAS

GAAS is an open-source program designed for fully autonomous VTOL(a.k.a flying cars) and drones. GAAS stands for Generalized Autonomy Aviation System.
https://www.gaas.dev
BSD 3-Clause "New" or "Revised" License
1.94k stars 444 forks source link

ImportError: No module named ros_kcf.srv #98

Closed Lndulge666 closed 4 years ago

Lndulge666 commented 4 years ago

在Tutorial 6中,运行set_init.py时出现错误:ImportError: No module named ros_kcf.srv,请问该如何解决

hddgi commented 4 years ago

Please read our tutorial carefully。 In order to keep the environmental variables lean, you have to manually modify set_init.py to add dependencies for ROS Service to the list of environmental variables.

mubbvyhf commented 4 years ago

the error still exists after I modified the file set_init.py,line 8,as sys.path.append('/home/GAAS/demo/tutorial_6/GAAS-Object-Tracking-master/KCF/build/devel/lib/python2.7/dist-packages').If I modified in a wrong way?

liangpu597 commented 4 years ago

@Ryan18281613101 I change the file path, and it works, you can try again

omargazebo commented 4 years ago

@hddgi I did the same steps in the tuto still got the same error: ImportError: No module named ros_kcf.srv . Is there a tutorial that shows more details please ? @liangpu597 can you please share the path that you used to make it work.

Myocat commented 1 week ago

the error still exists after I modified the file set_init.py,line 8,as sys.path.append('/home/GAAS/demo/tutorial_6/GAAS-Object-Tracking-master/KCF/build/devel/lib/python2.7/dist-packages').If I modified in a wrong way?

You got the file path wrong. There is a username between /home and /GAAS. Like this: /home/(username)/GAAS...