-
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.
* Added MoveFromMouth actions * Added MoveFromMouth dummy actions * Update setup.py
- Loading branch information
1 parent
7d5e40e
commit 5c83b69
Showing
8 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
feeding_web_app_ros2_test/feeding_web_app_ros2_test/MoveFromMouthToAbovePlate.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
from ada_feeding_msgs.action import MoveTo | ||
from feeding_web_app_ros2_test.MoveToDummy import MoveToDummy | ||
import rclpy | ||
from rclpy.executors import MultiThreadedExecutor | ||
|
||
|
||
def main(args=None): | ||
rclpy.init(args=args) | ||
|
||
move_above_plate = MoveToDummy("MoveFromMouthToAbovePlate", MoveTo) | ||
|
||
# Use a MultiThreadedExecutor to enable processing goals concurrently | ||
executor = MultiThreadedExecutor() | ||
|
||
rclpy.spin(move_above_plate, executor=executor) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
20 changes: 20 additions & 0 deletions
20
feeding_web_app_ros2_test/feeding_web_app_ros2_test/MoveFromMouthToRestingPosition.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
from ada_feeding_msgs.action import MoveTo | ||
from feeding_web_app_ros2_test.MoveToDummy import MoveToDummy | ||
import rclpy | ||
from rclpy.executors import MultiThreadedExecutor | ||
|
||
|
||
def main(args=None): | ||
rclpy.init(args=args) | ||
|
||
move_to_resting_position = MoveToDummy("MoveFromMouthToRestingPosition", MoveTo) | ||
|
||
# Use a MultiThreadedExecutor to enable processing goals concurrently | ||
executor = MultiThreadedExecutor() | ||
|
||
rclpy.spin(move_to_resting_position, executor=executor) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
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
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