Main Page
Namespaces
Classes
Files
File List
src
phm_task_plan
task_plan_node.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
3
# import the AddTwoInts service
4
from
phm_task_plan.srv
import
*
5
import
rospy
6
7
8
def
task_plan_func
(req):
9
module = req.module
10
rospy.init_node(
'task_plan_node'
)
11
12
task = rospy.get_param(
'~'
+ module)
13
return
TaskServiceResponse(task)
14
15
16
def
task_plan
():
17
rospy.init_node(
'task_plan_node'
)
18
s = rospy.Service(
'task_service'
, TaskService, task_plan_func)
19
20
# spin() keeps Python from exiting until node is shutdown
21
rospy.spin()
22
23
if
__name__ ==
"__main__"
:
24
task_plan
()
phm_task_plan.task_plan_node.task_plan
def task_plan()
Definition:
task_plan_node.py:16
srv
phm_task_plan.task_plan_node.task_plan_func
def task_plan_func(req)
Definition:
task_plan_node.py:8
phm_task_plan
Author(s):
autogenerated on Mon Jun 10 2019 14:13:30