-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Octomap and Misc Bug Fixes (#125)
* Fixed watchdog F/T, added camera info to repub, added behavior logs * Added mask to republisher * added mask * Add manually-defined shadow to mask * Added temporal and spatial postprocessors * Added thresholding * Added extra safeguards when stopping Servo * Add persistent attached food sphere to forkTip * Updated save_image script * Removed food collision object as Octomap doesn't properly filter it out See here for more: moveit/moveit_ros#315 * Added a separate depth octomap topic that removes the forktip and food * Addressed PR comments
- Loading branch information
1 parent
473e356
commit c212f83
Showing
16 changed files
with
751 additions
and
72 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
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,38 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
""" | ||
This module defines the wait_for_secs idiom, which returns a behavior that | ||
waits for a specified number of seconds. | ||
""" | ||
|
||
# Standard imports | ||
|
||
# Third-party imports | ||
import py_trees | ||
|
||
|
||
def wait_for_secs( | ||
name: str, | ||
secs: float, | ||
) -> py_trees.behaviour.Behaviour: | ||
""" | ||
Creates a behavior that returns RUNNING for a specified number of secs | ||
and then returns SUCCESS. | ||
Parameters | ||
---------- | ||
name: The name of the behavior. | ||
secs: The number of seconds to wait. | ||
""" | ||
|
||
# pylint: disable=abstract-class-instantiated | ||
# Creating a Running behavior is not instantiating an abstract class. | ||
|
||
return py_trees.decorators.FailureIsSuccess( | ||
name=name, | ||
child=py_trees.decorators.Timeout( | ||
name=name + "Timeout", | ||
duration=secs, | ||
child=py_trees.behaviours.Running(), | ||
), | ||
) |
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
Oops, something went wrong.