from common.delay import PreciseDelay
from common.generic_distance_sensor import GenericDistanceSensor, MB10X3
from common.ez_can_jaguar import EzCANJaguar
igus_can = 1
l_actuator_can = 2
igus_can = EzCanJaguar(igus_can)
l_actuator = EzCanJaguar(l_actuator_can)
__init__.py
ez_can_jaguar.py
delay.py
generic_distance_sensor.py
C:\Users\Ethan_000\workspace\2014\aerial_assist\robot\source>python robot.py
Traceback (most recent call last):
File "robot.py", line 67, in <module>
igus_can = EzCanJaguar(igus_can)
NameError: name 'EzCanJaguar' is not defined
__init__.py
为空
我在eclipse中使用pydev并在所有导入中给出“未解决的导入”错误
答案 0 :(得分:4)
EzCANJaguar
和EzCanJaguar
不是一回事。 Python区分大小写。