Skip to content

Commit

Permalink
Made adjust camera an idividual state machine that runs compleately i…
Browse files Browse the repository at this point in the history
…ndependent.
  • Loading branch information
Benteng Ma committed Jul 3, 2024
1 parent 0382916 commit 6fabe99
Show file tree
Hide file tree
Showing 4 changed files with 305 additions and 484 deletions.
1 change: 1 addition & 0 deletions skills/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ include_directories(
## in contrast to setup.py, you can choose the destination
catkin_install_python(PROGRAMS
scripts/unit_test_describe_people.py
scripts/unit_test_adjust_camera.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

Expand Down
18 changes: 18 additions & 0 deletions skills/scripts/unit_test_adjust_camera.py
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")
Loading

0 comments on commit 6fabe99

Please sign in to comment.