forked from robotpy/robotpy-commands-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
117 lines (108 loc) · 3.06 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
from .button import Trigger
from .command import Command, InterruptionBehavior
from . import cmd
# from .cmd import (
# deadline,
# either,
# none,
# parallel,
# print_,
# race,
# repeatingSequence,
# run,
# runEnd,
# runOnce,
# select,
# sequence,
# startEnd,
# waitSeconds,
# waitUntil,
# )
from .commandgroup import CommandGroup, IllegalCommandUse
from .commandscheduler import CommandScheduler
from .conditionalcommand import ConditionalCommand
from .functionalcommand import FunctionalCommand
from .instantcommand import InstantCommand
from .notifiercommand import NotifierCommand
from .parallelcommandgroup import ParallelCommandGroup
from .paralleldeadlinegroup import ParallelDeadlineGroup
from .parallelracegroup import ParallelRaceGroup
from .perpetualcommand import PerpetualCommand
from .pidcommand import PIDCommand
from .pidsubsystem import PIDSubsystem
from .printcommand import PrintCommand
from .proxycommand import ProxyCommand
from .proxyschedulecommand import ProxyScheduleCommand
from .ramsetecommand import RamseteCommand
from .repeatcommand import RepeatCommand
from .runcommand import RunCommand
from .schedulecommand import ScheduleCommand
from .selectcommand import SelectCommand
from .sequentialcommandgroup import SequentialCommandGroup
from .startendcommand import StartEndCommand
from .subsystem import Subsystem
from .timedcommandrobot import TimedCommandRobot
from .trapezoidprofilesubsystem import TrapezoidProfileSubsystem
from .waitcommand import WaitCommand
from .waituntilcommand import WaitUntilCommand
from .wrappercommand import WrapperCommand
__all__ = [
"cmd",
"Command",
"CommandGroup",
"CommandScheduler",
"ConditionalCommand",
"FunctionalCommand",
"IllegalCommandUse",
"InstantCommand",
"InterruptionBehavior",
"NotifierCommand",
"ParallelCommandGroup",
"ParallelDeadlineGroup",
"ParallelRaceGroup",
"PerpetualCommand",
"PIDCommand",
"PIDSubsystem",
"PrintCommand",
"ProxyCommand",
"ProxyScheduleCommand",
"RamseteCommand",
"RepeatCommand",
"RunCommand",
"ScheduleCommand",
"SelectCommand",
"SequentialCommandGroup",
"StartEndCommand",
"Subsystem",
"TimedCommandRobot",
"TrapezoidProfileSubsystem",
"WaitCommand",
"WaitUntilCommand",
"WrapperCommand",
# "none",
# "runOnce",
# "run",
# "startEnd",
# "runEnd",
# "print_",
# "waitSeconds",
# "waitUntil",
# "either",
# "select",
# "sequence",
# "repeatingSequence",
# "parallel",
# "race",
# "deadline",
"Trigger", # was here in 2023
]
def __getattr__(attr):
if attr == "SubsystemBase":
import warnings
warnings.warn("SubsystemBase is deprecated", DeprecationWarning, stacklevel=2)
return Subsystem
if attr == "CommandBase":
import warnings
warnings.warn("CommandBase is deprecated", DeprecationWarning, stacklevel=2)
return Command
raise AttributeError("module {!r} has no attribute " "{!r}".format(__name__, attr))