Main Page
Namespaces
Classes
Files
File List
src
flexbe_testing
test
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.test.test_add_state.TestAddState.__init__
def __init__(self, first_arg)
Definition:
test_add_state.py:7
flexbe_testing.test.test_add_state.TestAddState
Definition:
test_add_state.py:5
flexbe_testing.test.test_add_state.TestAddState.execute
def execute(self, userdata)
Definition:
test_add_state.py:15
flexbe_testing.test.test_add_state.TestAddState._first_arg
_first_arg
Definition:
test_add_state.py:12
flexbe_testing
Author(s): Philipp Schillinger
autogenerated on Wed Jun 5 2019 21:52:05