This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2 | |
| import numpy as np | |
| def nothing(x): | |
| pass | |
| cv2.namedWindow("Tracking") | |
| cv2.createTrackbar("LH", "Tracking", 0, 255, nothing) | |
| cv2.createTrackbar("LS", "Tracking", 0, 255, nothing) | |
| cv2.createTrackbar("LV", "Tracking", 0, 255, nothing) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import rospy | |
| from mavros_msgs.srv import SetMode | |
| from mavros_msgs.srv import CommandBool | |
| from mavros_msgs.srv import CommandTOL | |
| import time | |
| rospy.init_node('mavros_takeoff_python') | |
| rate = rospy.Rate(10) |