Skip to content

Commit

Permalink
add functions to __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Victorlouisdg committed Mar 5, 2024
1 parent 5678647 commit 72d1a48
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion airo_drake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
from airo_drake.building.manipulator import add_manipulator
from airo_drake.building.meshcat import add_meshcat
from airo_drake.scene import DualArmScene, SingleArmScene
from airo_drake.time_parametrization.toppra import time_parametrize_toppra
from airo_drake.trajectory.discretize import discretize_drake_joint_trajectory
from airo_drake.visualization.frame import visualize_frame
from airo_drake.visualization.joints import animate_joint_configurations
from airo_drake.visualization.joints import animate_joint_configurations, animate_joint_trajectory

__all__ = [
"add_floor",
Expand All @@ -20,4 +22,7 @@
"DualArmScene",
"visualize_frame",
"animate_joint_configurations",
"animate_joint_trajectory",
"time_parametrize_toppra",
"discretize_drake_joint_trajectory",
]
6 changes: 3 additions & 3 deletions notebooks/02_visualization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
"metadata": {},
"outputs": [],
"source": [
"from airo_drake.time_parametrization.toppra import time_parametrize_toppra\n",
"from airo_drake import time_parametrize_toppra\n",
"import airo_models\n",
"from pydrake.planning import RobotDiagram\n",
"\n",
Expand Down Expand Up @@ -270,7 +270,7 @@
"metadata": {},
"outputs": [],
"source": [
"from airo_drake.trajectory.discretize import discretize_drake_joint_trajectory\n",
"from airo_drake import discretize_drake_joint_trajectory\n",
"\n",
"\n",
"joint_trajectory_discretized = discretize_drake_joint_trajectory(joint_trajectory)\n",
Expand All @@ -295,7 +295,7 @@
"metadata": {},
"outputs": [],
"source": [
"from airo_drake.visualization.joints import animate_joint_trajectory\n",
"from airo_drake import animate_joint_trajectory\n",
"\n",
"animate_joint_trajectory(scene.meshcat, scene.robot_diagram, scene.arm_index, joint_trajectory, context)"
]
Expand Down

0 comments on commit 72d1a48

Please sign in to comment.