Revision 60b91de0 client/python/hlrc_client/MiddlewareROS.py
client/python/hlrc_client/MiddlewareROS.py | ||
---|---|---|
31 | 31 |
import rospy |
32 | 32 |
import actionlib |
33 | 33 |
from hlrc_server.msg import * |
34 |
from geometry_msgs.msg import Point |
|
34 |
from geometry_msgs.msg import PointStamped
|
|
35 | 35 |
from actionlib_msgs.msg import GoalStatus |
36 | 36 |
|
37 | 37 |
class MiddlewareROS(Middleware): |
... | ... | |
210 | 210 |
|
211 | 211 |
# create a goal to send to the action server. |
212 | 212 |
goal = lookattargetGoal() |
213 |
goal.header.frame_id = frame_id |
|
214 |
goal.header.stamp = rospy.Time.now() |
|
215 |
|
|
216 |
p = Point() |
|
217 |
p.x = float(x) |
|
218 |
p.y = float(y) |
|
219 |
p.z = float(z) |
|
220 |
goal.point = p |
|
213 |
p = goal.point |
|
214 |
p.header.frame_id = frame_id |
|
215 |
p.header.stamp = rospy.Time.now() |
|
216 |
p.point.x = float(x) |
|
217 |
p.point.y = float(y) |
|
218 |
p.point.z = float(z) |
|
221 | 219 |
goal.roll = roll |
222 | 220 |
|
223 | 221 |
# send the goal to the server |
Also available in: Unified diff