Commit 95583fbf authored by Larkin Heintzman's avatar Larkin Heintzman

fixed some typos

parent e37e77e9
......@@ -146,28 +146,28 @@ class WaypointDriver():
# make service proxies for all services we need
rospy.loginfo("waiting for services...")
rospy.wait_for_service('/dji_sdk/sdk_control_authority')
rospy.wait_for_service('/dji_sdk/mission_waypoint_upload')
rospy.wait_for_service('/dji_sdk/mission_waypoint_action')
rospy.wait_for_service('/dji_sdk/drone_task_control')
rospy.wait_for_service('dji_sdk/sdk_control_authority')
rospy.wait_for_service('dji_sdk/mission_waypoint_upload')
rospy.wait_for_service('dji_sdk/mission_waypoint_action')
rospy.wait_for_service('dji_sdk/drone_task_control')
rospy.loginfo("all services ready!")
rospy.loginfo("waiting for parameters...")
while not rospy.has_param("~drone_id"):
while not rospy.has_param("drone_id"):
rospy.loginfo("waiting for drone_id param...")
self.droneId = rospy.get_param("~drone_id")
self.droneId = rospy.get_param("drone_id")
while not rospy.has_param("~base_speed"):
while not rospy.has_param("base_speed"):
rospy.loginfo("waiting for base_speed param...")
self.baseSpeed = rospy.get_param("~base_speed")
self.baseSpeed = rospy.get_param("base_speed")
rospy.loginfo("all parameters recieved!")
self.sdkControlProxy = rospy.ServiceProxy('/dji_sdk/sdk_control_authority', SDKControlAuthority)
self.missionWaypointUploadProxy = rospy.ServiceProxy('/dji_sdk/mission_waypoint_upload', MissionWpUpload)
self.missionWaypointActionProxy = rospy.ServiceProxy('/dji_sdk/mission_waypoint_action', MissionWpAction)
self.droneTaskControlProxy = rospy.ServiceProxy('/dji_sdk/drone_task_control', DroneTaskControl)
self.sdkControlProxy = rospy.ServiceProxy('dji_sdk/sdk_control_authority', SDKControlAuthority)
self.missionWaypointUploadProxy = rospy.ServiceProxy('dji_sdk/mission_waypoint_upload', MissionWpUpload)
self.missionWaypointActionProxy = rospy.ServiceProxy('dji_sdk/mission_waypoint_action', MissionWpAction)
self.droneTaskControlProxy = rospy.ServiceProxy('dji_sdk/drone_task_control', DroneTaskControl)
rospy.Service('waypoint_control', WaypointControl, self.controlService)
rospy.loginfo("requesting sdk control authority...")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment