示例#1
0
def multiple_goals_starter():

    rospy.init_node('multiple_goals_starter')

#    wfg = WaitForGoalState() # We don't want multiple subscribers so we need one WaitForGoal state

    runner = Runner(rgoap_subclasses)
    sm = util.simple_state_wrapper(AutonomousRGOAPState(runner))

    print sm

    util.execute_smach_container(sm, True, '/MULTIPLE_GOALS')

    print 'DONE!'
 def exec_state(state):
     sm = simple_state_wrapper(state)
     return execute_smach_container(sm, userdata=ud)
 def exec_state(state):
     sm = simple_state_wrapper(state)
     return execute_smach_container(sm, userdata=ud)