Main Page
Namespaces
Classes
Files
File List
test
fake_multi_trigger_controller.py
Go to the documentation of this file.
1
#! /usr/bin/env python
2
3
import
roslib
4
roslib.load_manifest(
'pr2_camera_synchronizer'
)
5
import
rospy
6
import
time
7
8
from
ethercat_trigger_controllers.srv
import
SetMultiWaveform, SetMultiWaveformResponse
9
from
ethercat_trigger_controllers.msg
import
MultiWaveform
10
11
class
Main
:
12
def
__init__
(self):
13
rospy.init_node(
'fake_multi_trigger_controller'
, anonymous =
True
)
14
rospy.Service(
'~set_waveform'
, SetMultiWaveform, self.
waveform_set
)
15
self.
pub
= rospy.Publisher(
'~waveform'
, MultiWaveform, latch =
True
)
16
17
def
waveform_set
(self, req):
18
self.pub.publish(req.waveform)
19
return
SetMultiWaveformResponse(success =
True
)
20
21
if
__name__ ==
"__main__"
:
22
Main
()
23
while
not
rospy.is_shutdown():
24
time.sleep(0.1)
fake_multi_trigger_controller.Main.waveform_set
def waveform_set(self, req)
Definition:
fake_multi_trigger_controller.py:17
fake_multi_trigger_controller.Main.__init__
def __init__(self)
Definition:
fake_multi_trigger_controller.py:12
fake_multi_trigger_controller.Main.pub
pub
Definition:
fake_multi_trigger_controller.py:15
fake_multi_trigger_controller.Main
Definition:
fake_multi_trigger_controller.py:11
pr2_camera_synchronizer
Author(s): Blaise Gassend
autogenerated on Tue Jun 1 2021 02:50:50