Skip to content

Commit

Permalink
Add mobile platform planning and notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
m-decoster committed Aug 1, 2024
1 parent ff48846 commit 6fb404e
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 712 deletions.
5 changes: 4 additions & 1 deletion airo_planner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,23 @@
convert_dual_arm_path_chooser_to_single_arm,
)

from airo_planner.interfaces import DualArmPlanner, SingleArmPlanner
from airo_planner.interfaces import DualArmPlanner, SingleArmPlanner, MobilePlatformPlanner

from airo_planner.ompl.single_arm_ompl_planner import SingleArmOmplPlanner
from airo_planner.ompl.dual_arm_ompl_planner import DualArmOmplPlanner
from airo_planner.ompl.mobile_platform_ompl_planner import MobilePlatformOmplPlanner


__all__ = [
"SingleArmPlanner",
"DualArmPlanner",
"MobilePlatformPlanner",
"MultipleGoalPlanner",
"JointConfigurationsModifierType",
"JointPathChooserType",
"SingleArmOmplPlanner",
"DualArmOmplPlanner",
"MobilePlatformOmplPlanner",
"JointBoundsType",
"is_within_bounds",
"uniform_symmetric_joint_bounds",
Expand Down
7 changes: 4 additions & 3 deletions airo_planner/ompl/mobile_platform_ompl_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ class MobilePlatformOmplPlanner(MobilePlatformPlanner):
"""

def __init__(self, is_state_valid_fn: JointConfigurationCheckerType):
# TODO: JointConfigurationCheckerType is not ideal here, should be a new type.
# TODO: JointConfigurationCheckerType is not ideal here, should be a new type or rename this type?
self.is_state_valid_fn = is_state_valid_fn

# TODO: Allow user to set these bounds.
joint_bounds = (
np.full(3, -np.inf),
np.full(3, np.inf),
np.array([-10.0, -10.0, -4 * np.pi]),
np.array([10.0, 10.0, 4 * np.pi])
)
self._simple_setup = create_simple_setup(self.is_state_valid_fn, joint_bounds)

Expand Down
Loading

0 comments on commit 6fb404e

Please sign in to comment.