企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 示教模式 ``` #!/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() ```