diff --git a/genindex.html b/genindex.html index c91cea5..067b4c0 100644 --- a/genindex.html +++ b/genindex.html @@ -157,15 +157,73 @@
+ |
+ |
+ | + |
+ |
+ |
+ |
+ | + |
compLib.Api.
Seeding
¶Class used for communicating with seeding api
+get_park
() → Tuple[Dict, int]¶Get a parkingsapce from the api.
+Json Object and status code as returned by the api.
+Tuple[Dict, int]
+pay_park
() → int¶Pay for parking.
+Status code as returned by the api.
+int
+simon_says
() → Tuple[Dict, int]¶Get next simon says zone from the api.
+Json Object and status code as returned by the api.
+Tuple[Dict, int]
+compLib.Api.
DoubleElim
¶Class used for communicating with double elimination api
+get_goal
() → Tuple[compLib.Api.Position, int]¶Get position of the goal
+A Position object with x and y coordinates of the goal, rotation is always -1
+Tuple[Position, int]
+get_items
() → Tuple[List[Dict], int]¶Get a list with all current items
+A list will all items currently on the game field. Items are dictionaries that look like: {“id”: 0, “x”: 0, “y”: 0}
+Tuple[List[Dict], int]
+get_opponent
() → Tuple[compLib.Api.Position, int]¶Get position of the opponents robot
+A Position object with opponents robot position
+Tuple[Position, int]
+get_position
() → Tuple[compLib.Api.Position, int]¶Get position of the robot
+A Position object with robot position
+Tuple[Position, int]
+get_scores
() → Tuple[Dict, int]¶Get the current scores
+A dictionary with all scores included like: {“self”:2,”opponent”:0}
+Tuple[Dict, int]
+compLib.Motor.
Motor
¶Class used to control the motors
+all_off
()¶Turns of all motors
+power
(port: int, percent: float)¶Set specified motor to percentage power
+port – Port, which the motor is connected to. 0-3, 0 -> top left, 3 -> top right
percent – Percentage of max speed. between -100 and 100
IndexError
+compLib.Servo.
Servo
¶Control the servo ports on the robot
+set_position
(channel: int, angle: int, offset: float = 90)¶Set position of servo connected to port
+channel – channel between 0 and 7
angle – Angle of servo
setup_position
()¶Set position of servos to the position used during the setup process
+Because of the rtmp stream needing to buffer some frames and waiting for P-Frames, importing this module might take up to 5 Seconds.
+compLib.Vision.
__Streaming
¶Class that handles rtmp streaming for opencv.
+DO NOT CREATE AN INSTANCE OF THIS CLASS YOURSELF!
+This is automatically done when importing this module. Use Vision.Streaming which is +an instance of this class!
+grab frames -> do your own processing -> publish frame -> view on http server
+get_frame
()¶Grab the newest frame from the rtmp stream.
+An opencv frame
+publish_frame
(image)¶Publish an opencv frame to the http webserver.
+image – Opencv frame that will be published
+None
+