test_add_state.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 import rospy
00003 from flexbe_core import EventState
00004 
00005 class TestAddState(EventState):
00006 
00007         def __init__(self, first_arg):
00008                 '''Constructor'''
00009                 super(TestAddState, self).__init__(outcomes=['done'],
00010                                                                                 input_keys=['second_arg'],
00011                                                                                 output_keys=['output_value'])
00012                 self._first_arg = first_arg
00013 
00014                 
00015         def execute(self, userdata):
00016                 userdata.output_value = userdata.second_arg.data + self._first_arg
00017                 return 'done'
00018 


flexbe_testing
Author(s): Philipp Schillinger
autogenerated on Thu Jun 6 2019 19:32:31