This repository has been archived by the owner on Dec 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: implement state machine shutdown (#412)
Implement shutdown state machine * Add preemption for launch state * Implement shutdown state * Add safety and health state preemption * Fix sound scheduler wait loop * Add preemption from idle state * Refactor and rename * Add preemption * Fix test * Remove leftover * Implement preemption on ROS shutdown * Fix imports * Fix warning message * Add kill gazebo on shutdown * Use better super * Remove wrong preempt transitions * More better super
- Loading branch information
1 parent
02c1328
commit 958b30b
Showing
46 changed files
with
379 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env python | ||
|
||
from march_state_machine import StateMachine | ||
from march_state_machine import state_machine | ||
|
||
if __name__ == '__main__': | ||
StateMachine.main() | ||
state_machine.main() |
41 changes: 0 additions & 41 deletions
41
march_state_machine/src/march_state_machine/SafetyState.py
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
march_state_machine/src/march_state_machine/StateMachine.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
march_state_machine/src/march_state_machine/rough_terrain_high_step_sm.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
#!/usr/bin/env python | ||
import smach | ||
|
||
from march_state_machine.states.GaitState import GaitState | ||
from march_state_machine.states.gait_state import GaitState | ||
|
||
|
||
def create(): | ||
sm_rough_terrain_high_step = smach.StateMachine(outcomes=['succeeded', 'preempted', 'failed']) | ||
with sm_rough_terrain_high_step: | ||
smach.StateMachine.add('RIGHT OPEN', GaitState("rough_terrain_high_step", "right_open"), | ||
transitions={'succeeded': 'LEFT CLOSE', 'preempted': 'failed', 'aborted': 'failed'}) | ||
transitions={'succeeded': 'LEFT CLOSE', 'aborted': 'failed'}) | ||
smach.StateMachine.add('LEFT CLOSE', GaitState("rough_terrain_high_step", "left_close"), | ||
transitions={'succeeded': 'succeeded', 'preempted': 'preempted', 'aborted': 'failed'}) | ||
transitions={'succeeded': 'succeeded', 'aborted': 'failed'}) | ||
return sm_rough_terrain_high_step |
Oops, something went wrong.