浏览代码

增加smbus的import,解决运行错误

corvin 5 年之前
父节点
当前提交
464c1225d3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/ros_arduino_bridge/ros_arduino_python/src/ros_arduino_python/arduino_driver.py

+ 1 - 1
src/ros_arduino_bridge/ros_arduino_python/src/ros_arduino_python/arduino_driver.py

@@ -5,12 +5,12 @@
     ROSArduinoBridge firmware.
 """
 
-
 from math import pi as PI
 import sys, traceback
 from serial.serialutil import SerialException
 from serial import Serial
 import thread
+import smbus
 import rospy
 import time
 import os