合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
## 示教模式 ``` #!/usr/bin/env python import rospy from gauss_python_api.gauss_api import Gauss if __name__ == '__main__': rospy.init_node('activate_learning_mode') g = Gauss() g.activate_learning_mode(1) print "now in learning mode" rospy.spin() ``` ## 非示教模式 ``` #!/usr/bin/env python import rospy from gauss_python_api.gauss_api import Gauss if __name__ == '__main__': rospy.init_node('deactivate_learning_mode') g = Gauss() g.activate_learning_mode(0) print "now not in learning mode" rospy.spin() ```