Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 import imp
00010 try:
00011 imp.find_module('bayesian_belief_networks')
00012 except:
00013 import roslib; roslib.load_manifest('bayesian_belief_networks')
00014
00015 from bayesian.examples.bbns.monty_hall import *
00016 from bayesian_belief_networks.ros_utils import *
00017
00018 import rospy
00019
00020 rospy.init_node('monty_hall')
00021 g = ros_build_bbn(
00022 f_prize_door,
00023 f_guest_door,
00024 f_monty_door,
00025 domains=dict(
00026 prize_door=['A', 'B', 'C'],
00027 guest_door=['A', 'B', 'C'],
00028 monty_door=['A', 'B', 'C']))
00029
00030 rospy.spin()
00031
00032
00033