Slide 66
Slide 66 text
class
Vehicle(object,
PositionMixin):
!
#
...
def
set_location_setpoint(self,
setpoint):
"""
Publish
a
SET_POSITION_TARGET_LOCAL_NED
message
with
position
x,
y,
z
and
yaw.
"""
x,
y,
z,
yaw
=
setpoint
!
msg
=
geometry_msgs.msg.PoseStamped()
msg.pose.position.x
=
x
msg.pose.position.y
=
y
msg.pose.position.z
=
z
msg.pose.orientation.z
=
yaw
!
self.location_setpoint_publisher.publish(msg)