Skip to content

Commit ed7ad62

Browse files
Python - update execute() API (#692)
1 parent db23ba1 commit ed7ad62

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

doc/examples/jupyter_notebook_prototyping/jupyter_notebook_prototyping_tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ First we create a helper function that we will use later when planning and execu
292292
# execute the plan
293293
if plan_result:
294294
robot_trajectory = plan_result.trajectory
295-
robot.execute(robot_trajectory, blocking=True, controllers=[])
295+
robot.execute(robot_trajectory, controllers=[])
296296
else:
297297
print("Planning failed")
298298

doc/examples/jupyter_notebook_prototyping/src/moveit_notebook_tutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
" # execute the plan\n",
132132
" if plan_result:\n",
133133
" robot_trajectory = plan_result.trajectory\n",
134-
" robot.execute(robot_trajectory, blocking=True, controllers=[])\n",
134+
" robot.execute(robot_trajectory, controllers=[])\n",
135135
" else:\n",
136136
" print(\"Planning failed\")"
137137
]

doc/examples/motion_planning_python_api/motion_planning_python_api_tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Using the planning component represented by the ``panda_arm`` variable we can be
187187
if plan_result:
188188
logger.info("Executing plan")
189189
robot_trajectory = plan_result.trajectory
190-
robot.execute(robot_trajectory, blocking=True, controllers=[])
190+
robot.execute(robot_trajectory, controllers=[])
191191
else:
192192
logger.error("Planning failed")
193193

doc/examples/motion_planning_python_api/scripts/motion_planning_python_api_planning_scene.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def plan_and_execute(
2929
if plan_result:
3030
logger.info("Executing plan")
3131
robot_trajectory = plan_result.trajectory
32-
robot.execute(robot_trajectory, blocking=True, controllers=[])
32+
robot.execute(robot_trajectory, controllers=[])
3333
else:
3434
logger.error("Planning failed")
3535

doc/examples/motion_planning_python_api/scripts/motion_planning_python_api_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def plan_and_execute(
4343
if plan_result:
4444
logger.info("Executing plan")
4545
robot_trajectory = plan_result.trajectory
46-
robot.execute(robot_trajectory, blocking=True, controllers=[])
46+
robot.execute(robot_trajectory, controllers=[])
4747
else:
4848
logger.error("Planning failed")
4949

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
<exec_depend>moveit</exec_depend>
5555
<exec_depend>moveit_resources_panda_moveit_config</exec_depend>
5656
<exec_depend>moveit_configs_utils</exec_depend>
57+
<exec_depend>moveit_py</exec_depend>
5758
<exec_depend>robot_state_publisher</exec_depend>
5859
<exec_depend>ros2_control</exec_depend>
5960
<exec_depend>rviz2</exec_depend>

0 commit comments

Comments
 (0)