Example #1
0
#!/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)

Example #2
0
#!/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)