updated docs

This commit is contained in:
Joel Klimont 2022-02-16 13:16:04 +01:00
parent a6af166fd1
commit e277a83c5f

View file

@ -84,9 +84,9 @@ class Seeding:
@staticmethod
def get_cargo(color: str) -> Tuple[Dict, int]:
"""Makes the /api/listCargo call to the api.
"""Makes the /api/getCargo call to the api.
:param color: Color parameter which specifies which cargo should be taken. (A string which is either "green", "red", "yellow" or "blue"
:param color: Color parameter which specifies which cargo should be taken. (A string which is either "green", "red", "yellow" or "blue") The function only picks up one package.
:return: Json Object and status code as returned by the api.
:rtype: Tuple[Dict, int]
"""
@ -102,6 +102,7 @@ class Seeding:
Logging.get_logger().debug(f"Seeding.get_robot_state {result}, status code = {res.status_code}")
return result, res.status_code
class Position:
"""Datastructure for holding a position
"""