Skip to content

Commit

Permalink
fix import order again
Browse files Browse the repository at this point in the history
  • Loading branch information
Victorlouisdg committed Mar 24, 2024
1 parent 1e2b6e0 commit 282dd8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions airo_drake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

from airo_drake.trajectory.timing import shift_drake_trajectory_in_time # isort:skip


__all__ = [
"add_floor",
"add_wall",
Expand Down
6 changes: 2 additions & 4 deletions airo_drake/building/finish.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
from typing import Optional, Tuple

from pydrake.geometry import Meshcat
from pydrake.planning import RobotDiagram, RobotDiagramBuilder
from pydrake.systems.framework import Context
from pydrake.visualization import ApplyVisualizationConfig, VisualizationConfig


def finish_build(
robot_diagram_builder: RobotDiagramBuilder, meshcat: Optional[Meshcat] = None
) -> Tuple[RobotDiagram, Context]:
robot_diagram_builder: RobotDiagramBuilder, meshcat: Meshcat | None = None
) -> tuple[RobotDiagram, Context]:
"""Finish building the robot diagram and create a context. The reason we create and force publish a context it so
that you can see your robot models visualized in Meshcat. Also if a meshcat is provided, we enable some extra
visualization such as contacts. We do this here because this can only be done after the plant is finalized.
Expand Down
4 changes: 1 addition & 3 deletions airo_drake/building/manipulator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import Tuple

import airo_models
import numpy as np
from airo_typing import HomogeneousMatrixType
Expand All @@ -21,7 +19,7 @@ def add_manipulator(
arm_transform: HomogeneousMatrixType | None = None,
gripper_transform: HomogeneousMatrixType | None = None,
static_gripper: bool = False,
) -> Tuple[ModelInstanceIndex, ModelInstanceIndex]:
) -> tuple[ModelInstanceIndex, ModelInstanceIndex]:
"""Add a manipulator (a robot arm with a gripper) to the robot diagram builder.
Looks up the URDF files for the robot and gripper and welds them together.
Also provides slightly opionatated default transforms for the welds.
Expand Down

0 comments on commit 282dd8d

Please sign in to comment.