You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/getting_started/general.rst
+2-2
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@ Welcome to the LSY Drone Racing Project! This is a platform developed by the LSY
5
5
6
6
Implementing Your Own Algorithms
7
7
--------------------------------
8
-
To implement your own controller, you need to implement a ``Controller`` class in the :mod:`lsy_drone_racing.control` module. The only restriction we place on controllers is that they have to implement the interface defined by the :class:`BaseController <lsy_drone_racing.control.controller.BaseController>` class. Apart from that, you are encouraged to use the full spectrum of control algorithms, e.g., MPC, trajectory optimization, reinforcement learning, etc., to compete in the challenge. Please make sure to put your controller implementation in the :mod:`lsy_drone_racing.control` module to make sure that it is correctly recognized by our scripts.
8
+
To implement your own controller, you need to implement a ``Controller`` class in the :mod:`lsy_drone_racing.control` module. The only restriction we place on controllers is that they have to implement the interface defined by the :class:`Controller <lsy_drone_racing.control.controller.Controller>` class. Apart from that, you are encouraged to use the full spectrum of control algorithms, e.g., MPC, trajectory optimization, reinforcement learning, etc., to compete in the challenge. Please make sure to put your controller implementation in the :mod:`lsy_drone_racing.control` module to make sure that it is correctly recognized by our scripts.
9
9
10
10
.. note::
11
11
Make sure to inherit from the base class for your controller implementation. This ensures that your controller is compatible with our scripts. Also make sure to only create one controller class per file. Otherwise, we do not know which controller to load from the file.
12
12
13
13
.. warning::
14
-
You are not allowed to modify the interface of the :class:`BaseController <lsy_drone_racing.control.controller.BaseController>` class. Doing so will make your controller incompatible with the deployment environment and we won't be able to run your controller on our setup.
14
+
You are not allowed to modify the interface of the :class:`Controller <lsy_drone_racing.control.controller.Controller>` class. Doing so will make your controller incompatible with the deployment environment and we won't be able to run your controller on our setup.
15
15
16
16
.. warning::
17
17
Many students are enthusiastic about deep reinforcement learning and try to use it to solve the challenge. While you are completely free in choosing your control algorithm, we know from experience that training good agents is non-trivial, requires significant compute, and can be difficult to transfer into the real world setup. Students taking this approach should make sure they already have some experience with RL, and take their policies to the real world setup early to address potential sim2real issues.
Copy file name to clipboardexpand all lines: lsy_drone_racing/control/attitude_controller.py
+2-2
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,13 @@
18
18
fromscipy.interpolateimportCubicSpline
19
19
fromscipy.spatial.transformimportRotationasR
20
20
21
-
fromlsy_drone_racing.controlimportBaseController
21
+
fromlsy_drone_racing.controlimportController
22
22
23
23
ifTYPE_CHECKING:
24
24
fromnumpy.typingimportNDArray
25
25
26
26
27
-
classAttitudeController(BaseController):
27
+
classAttitudeController(Controller):
28
28
"""Example of a controller using the collective thrust and attitude interface.
29
29
30
30
Modified from https://github.com/utiasDSL/crazyswarm-import/blob/ad2f7ea987f458a504248a1754b124ba39fc2f21/ros_ws/src/crazyswarm/scripts/position_ctl_m.py
0 commit comments