test_add_state.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 import rospy
3 from flexbe_core import EventState
4 
5 class TestAddState(EventState):
6 
7  def __init__(self, first_arg):
8  '''Constructor'''
9  super(TestAddState, self).__init__(outcomes=['done'],
10  input_keys=['second_arg'],
11  output_keys=['output_value'])
12  self._first_arg = first_arg
13 
14 
15  def execute(self, userdata):
16  userdata.output_value = userdata.second_arg.data + self._first_arg
17  return 'done'
18 


flexbe_testing
Author(s): Philipp Schillinger
autogenerated on Wed Jun 5 2019 21:52:05