pose_array.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 import rospy
4 import roslib
5 
6 
7 from geometry_msgs.msg import PoseArray
8 from jsk_footstep_msgs.msg import FootstepArray
9 
10 
11 def cb(msg):
12  global p
13  array = PoseArray()
14  array.header = msg.header
15  for footstep in msg.footsteps:
16  array.poses.append(footstep.pose)
17  p.publish(array)
18 
19 rospy.init_node("foo")
20 
21 p = rospy.Publisher("pose_array", PoseArray)
22 s = rospy.Subscriber("/footstep", FootstepArray, cb)
23 
24 rospy.spin()
def cb(msg)
Definition: pose_array.py:11


jsk_footstep_planner
Author(s): Ryohei Ueda
autogenerated on Fri May 14 2021 02:51:52