#!/usr/bin/env python from lib.bvehicle import BVehicle import rospy # # Braitenberg Vehicle # Love behaviour implementation # #Init try: #Create the braitenberg vehicle bot = BVehicle() bot.type = 'love' #Start fear behaviour while bot.Running(): bot.Run() rospy.spin() except Exception as e: print(e)
#!/usr/bin/env python from lib.bvehicle import BVehicle import rospy # # Braitenberg Vehicle # Fear behaviour implementation # #Init try: #Create the braitenberg vehicle bot = BVehicle() bot.type = 'fear' #Start fear behaviour while bot.Running(): bot.Run() rospy.spin() except Exception as e: print(e)