diff options
author | Andreas Antener <antener_a@gmx.ch> | 2015-04-07 00:13:12 +0200 |
---|---|---|
committer | Andreas Antener <antener_a@gmx.ch> | 2015-04-08 13:41:40 +0200 |
commit | 9924f5519f907568351aaa66fba01190b682a396 (patch) | |
tree | 5e5bef67e482a22e82eca22d74efde2992e2996d /integrationtests/demo_tests/mavros_offboard_attctl_test.py | |
parent | f8c8876642857520e85ec8ca027146c11b4301e3 (diff) | |
download | px4-firmware-9924f5519f907568351aaa66fba01190b682a396.tar.gz px4-firmware-9924f5519f907568351aaa66fba01190b682a396.tar.bz2 px4-firmware-9924f5519f907568351aaa66fba01190b682a396.zip |
update attitude and position setpoint topics
Diffstat (limited to 'integrationtests/demo_tests/mavros_offboard_attctl_test.py')
-rwxr-xr-x | integrationtests/demo_tests/mavros_offboard_attctl_test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/integrationtests/demo_tests/mavros_offboard_attctl_test.py b/integrationtests/demo_tests/mavros_offboard_attctl_test.py index ef875ce61..63e2922d0 100755 --- a/integrationtests/demo_tests/mavros_offboard_attctl_test.py +++ b/integrationtests/demo_tests/mavros_offboard_attctl_test.py @@ -67,8 +67,8 @@ class MavrosOffboardAttctlTest(unittest.TestCase): rospy.Subscriber('iris/vehicle_control_mode', vehicle_control_mode, self.vehicle_control_mode_callback) rospy.Subscriber("iris/mavros/position/local", PoseStamped, self.position_callback) - self.pub_att = rospy.Publisher('iris/mavros/setpoint/attitude', PoseStamped, queue_size=10) - self.pub_thr = rospy.Publisher('iris/mavros/setpoint/att_throttle', Float64, queue_size=10) + self.pub_att = rospy.Publisher('iris/mavros/setpoint_attitude/attitude', PoseStamped, queue_size=10) + self.pub_thr = rospy.Publisher('iris/mavros/setpoint_attitude/att_throttle', Float64, queue_size=10) self.rate = rospy.Rate(10) # 10hz self.has_pos = False self.control_mode = vehicle_control_mode() @@ -110,9 +110,9 @@ class MavrosOffboardAttctlTest(unittest.TestCase): att.header.stamp = rospy.Time.now() self.pub_att.publish(att) - self.helper.bag_write('mavros/setpoint/attitude', att) + self.helper.bag_write('mavros/setpoint_attitude/attitude', att) self.pub_thr.publish(throttle) - self.helper.bag_write('mavros/setpoint/att_throttle', throttle) + self.helper.bag_write('mavros/setpoint_attitude/att_throttle', throttle) self.rate.sleep() if (self.local_position.pose.position.x > 5 |