Commit 650c636
committed
Stop torque_control example after timeout
On a simulated robot, torque_control commands don't have any effect. As
a result, the torque_control example runs forever when being run on a
simulated robot.
This commit makes it use the second argument as a timeout after which
the example is stopped. If the timeout is hit, it will print a warning
stating that this is expected on a simulated robot.
This should make the behavior similar to the other examples and make the
CI run with that example.1 parent e571c4d commit 650c636
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
57 | 64 | | |
58 | 65 | | |
59 | 66 | | |
| |||
89 | 96 | | |
90 | 97 | | |
91 | 98 | | |
| 99 | + | |
92 | 100 | | |
93 | 101 | | |
94 | 102 | | |
| |||
140 | 148 | | |
141 | 149 | | |
142 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
143 | 157 | | |
144 | 158 | | |
145 | 159 | | |
| |||
0 commit comments