def takeoff_sequence(self, seconds_taking_off=1): # Before taking off be sure that cmd_vel value there is is null to avoid drifts self.reset_cmd_vel_commands() takeoff_msg = EmptyTopicMsg() print "Taking-Off Start" self.takeoff_pub.publish(takeoff_msg) time.sleep(seconds_taking_off) print "Taking-Off sequence completed"
def takeoff_sequence(self, seconds_taking_off=2): takeoff_msg = EmptyTopicMsg() rospy.loginfo("Taking-Off Start") pos_cmd = Point() pos_cmd.z = 5.0 self.pos_pub.publish(pos_cmd) self.takeoff_pub.publish(takeoff_msg) rospy.sleep(seconds_taking_off) rospy.loginfo("Taking-Off sequence completed")
def takeoff_sequence(self, seconds_taking_off=1): rospy.loginfo("Takeoff sequence starting") # Before taking off be sure that cmd_vel value there is is null to avoid drifts self.reset_cmd_vel_commands() rospy.loginfo("Takeoff reset cmd_vel") takeoff_msg = EmptyTopicMsg() rospy.loginfo( "Taking-Off Start") self.takeoff_pub.publish(takeoff_msg) time.sleep(seconds_taking_off) rospy.loginfo( "Taking-Off sequence completed")
def takeoff_sequence(self, seconds_taking_off=10): # Before taking off be sure that cmd_vel value there is is null to avoid drifts self.reset_cmd_vel_commands() takeoff_msg = EmptyTopicMsg() rospy.loginfo("Taking-Off Start") self.takeoff_pub.publish(takeoff_msg) time.sleep(seconds_taking_off) t = time.time() while (time.time() - t < 5): self.initial_flight() rospy.loginfo("Taking-Off sequence completed")
def takeoff_sequence(self, seconds_taking_off=2): # Before taking off be sure that cmd_vel value there is is null to avoid drifts self.reset_cmd_vel_commands() takeoff_msg = EmptyTopicMsg() rospy.loginfo("Taking-Off Start") pos_cmd = Point() pos_cmd.z = 1.0 self.pos_pub.publish(pos_cmd) self.takeoff_pub.publish(takeoff_msg) time.sleep(seconds_taking_off) rospy.loginfo("Taking-Off sequence completed")