mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-30 22:59:31 +00:00
Code style
This commit is contained in:
@@ -284,13 +284,13 @@ def handle(req):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
with handle_lock:
|
with handle_lock:
|
||||||
stamp = rospy.get_rostime()
|
stamp = rospy.get_rostime()
|
||||||
current_req = req
|
current_req = req
|
||||||
current_pub, current_msg = get_publisher_and_message(req, stamp, False)
|
current_pub, current_msg = get_publisher_and_message(req, stamp, False)
|
||||||
rospy.loginfo('Topic: %s, message: %s', current_pub.name, current_msg)
|
rospy.loginfo('Topic: %s, message: %s', current_pub.name, current_msg)
|
||||||
|
|
||||||
current_msg.header.stamp = stamp
|
current_msg.header.stamp = stamp
|
||||||
current_pub.publish(current_msg)
|
current_pub.publish(current_msg)
|
||||||
|
|
||||||
if req.auto_arm:
|
if req.auto_arm:
|
||||||
offboard_and_arm()
|
offboard_and_arm()
|
||||||
|
|||||||
Reference in New Issue
Block a user