llm version upgraded to 0905
uav api bug fixed in updating environments
This commit is contained in:
@@ -311,14 +311,14 @@ class UAVAPIClient:
|
||||
"""Get current weather conditions"""
|
||||
return self._request('GET', '/environments/current')
|
||||
|
||||
def get_targets(self) -> List[Dict[str, Any]]:
|
||||
"""Get all targets in the session"""
|
||||
fixed = self._request('GET', '/targets/type/fixed')
|
||||
moving = self._request('GET', '/targets/type/moving')
|
||||
waypoint = self._request('GET', '/targets/type/waypoint')
|
||||
circle = self._request('GET', '/targets/type/circle')
|
||||
polygen = self._request('GET', '/targets/type/polygon')
|
||||
return fixed + moving + waypoint + circle + polygen
|
||||
# def get_targets(self) -> List[Dict[str, Any]]:
|
||||
# """Get all targets in the session"""
|
||||
# fixed = self._request('GET', '/targets/type/fixed')
|
||||
# moving = self._request('GET', '/targets/type/moving')
|
||||
# waypoint = self._request('GET', '/targets/type/waypoint')
|
||||
# circle = self._request('GET', '/targets/type/circle')
|
||||
# polygen = self._request('GET', '/targets/type/polygon')
|
||||
# return fixed + moving + waypoint + circle + polygen
|
||||
|
||||
def get_target_status(self, target_id: str) -> Dict[str, Any]:
|
||||
"""Get information about a specific target"""
|
||||
@@ -333,13 +333,13 @@ class UAVAPIClient:
|
||||
return self._request('GET', '/targets/waypoints/nearest',
|
||||
json={'x': x, 'y': y, 'z': z})
|
||||
|
||||
def get_obstacles(self) -> List[Dict[str, Any]]:
|
||||
"""Get all obstacles in the session"""
|
||||
point = self._request('GET', '/obstacles/type/point')
|
||||
circle = self._request('GET', '/obstacles/type/circle')
|
||||
polygon = self._request('GET', '/obstacles/type/polygon')
|
||||
ellipse = self._request('GET', '/obstacles/type/ellipse')
|
||||
return point + circle + polygon + ellipse
|
||||
# def get_obstacles(self) -> List[Dict[str, Any]]:
|
||||
# """Get all obstacles in the session"""
|
||||
# point = self._request('GET', '/obstacles/type/point')
|
||||
# circle = self._request('GET', '/obstacles/type/circle')
|
||||
# polygon = self._request('GET', '/obstacles/type/polygon')
|
||||
# ellipse = self._request('GET', '/obstacles/type/ellipse')
|
||||
# return point + circle + polygon + ellipse
|
||||
|
||||
def get_nearby_entities(self, drone_id: str) -> Dict[str, Any]:
|
||||
"""Get entities near a drone (within perceived radius)"""
|
||||
|
||||
Reference in New Issue
Block a user