forked from LASR-at-Home/Base
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made adjust camera an idividual state machine that runs compleately i…
…ndependent.
- Loading branch information
Benteng Ma
committed
Jul 3, 2024
1 parent
0382916
commit 6fabe99
Showing
4 changed files
with
305 additions
and
484 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import smach | ||
import rospy | ||
|
||
from lasr_skills import AdjustCamera | ||
|
||
if __name__ == "__main__": | ||
rospy.init_node("test_adjust_camera") | ||
sm = smach.StateMachine(outcomes=["end"], output_keys=[]) | ||
with sm: | ||
sm.add( | ||
"AdjustCamera", | ||
AdjustCamera(debug=True), | ||
transitions={"finished": "end", "failed": "end", "truncated": "end"}, | ||
) | ||
sm.execute() | ||
rospy.signal_shutdown("down") |
Oops, something went wrong.