5 from jsk_footstep_msgs.msg
import Footstep, FootstepArray
10 pub = rospy.Publisher(
"/footsteps", FootstepArray)
14 while not rospy.is_shutdown():
16 now = rospy.Time.now()
17 msg.header.frame_id = FRAME_ID
18 msg.header.stamp = now
24 footstep.leg = Footstep.LEFT
25 footstep.pose.position.y = 0.21
27 footstep.leg = Footstep.RIGHT
28 footstep.pose.position.y = -0.21
29 footstep.pose.orientation.w = 1.0
30 footstep.pose.position.x = xpos
31 footstep.pose.position.z = zpos
32 footstep.dimensions.x = 0.25
33 footstep.dimensions.y = 0.15
34 footstep.dimensions.z = 0.01
35 footstep.footstep_group = i / 5
36 msg.footsteps.append(footstep)
47 if __name__ ==
"__main__":
48 rospy.init_node(
"footstep_sample")