Skip to content

Commit 1b4bf7d

Browse files
committed
arrange imports on examples
1 parent 0bc10e4 commit 1b4bf7d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+78
-118
lines changed

docs/backends/pybullet/files/01_set_robot_cell_state.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from compas_fab.robots import RigidBody
1010
from compas_fab.robots import RobotCellLibrary
1111

12-
1312
with PyBulletClient() as client:
1413
# ---------------------------------------------------------------------
1514
# Create a robot cell and add objects to it

docs/backends/pybullet/files/02_check_collision.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import time
22

3-
import compas_fab
4-
from compas_robots import Configuration
3+
from compas_fab.backends import CollisionCheckError
54
from compas_fab.backends import PyBulletClient
65
from compas_fab.backends import PyBulletPlanner
7-
from compas_fab.robots import RobotCell
8-
from compas_fab.robots import RobotCellState
96
from compas_fab.robots import RobotCellLibrary
10-
from compas_fab.backends import CollisionCheckError
117

128
with PyBulletClient("gui") as client:
139
planner = PyBulletPlanner(client)

docs/backends/pybullet/files/04_ik_errors.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
from compas.geometry import Frame
2+
23
from compas_fab.backends import PyBulletClient
34
from compas_fab.backends import PyBulletPlanner
4-
5+
from compas_fab.backends.exceptions import InverseKinematicsError
56
from compas_fab.robots import FrameTarget
6-
from compas_fab.robots import RobotCellLibrary
77
from compas_fab.robots import RigidBodyLibrary
88
from compas_fab.robots import RigidBodyState
9+
from compas_fab.robots import RobotCellLibrary
910
from compas_fab.robots import TargetMode
1011

11-
from compas_fab.backends.exceptions import InverseKinematicsError
12-
1312
with PyBulletClient() as client:
1413

1514
# Load a pre-made robot cell with one tool from the RobotCellLibrary

docs/backends/pybullet/files/04_ik_point_axis_target.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from compas_fab.backends import PyBulletClient
22
from compas_fab.backends import PyBulletPlanner
3-
43
from compas_fab.robots import PointAxisTarget
54
from compas_fab.robots import RobotCellLibrary
65
from compas_fab.robots import TargetMode

docs/backends/pybullet/files/04_ik_point_axis_target_obstacle.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# This example demonstrates the ability of PointAxisTarget to search a valid
22
# configuration around collision objects
33

4-
from compas.geometry import Frame
54
from compas.geometry import Box
5+
from compas.geometry import Frame
6+
67
from compas_fab.backends import PyBulletClient
78
from compas_fab.backends import PyBulletPlanner
8-
99
from compas_fab.robots import PointAxisTarget
10+
from compas_fab.robots import RigidBody
11+
from compas_fab.robots import RigidBodyState
1012
from compas_fab.robots import RobotCellLibrary
1113
from compas_fab.robots import TargetMode
12-
from compas_fab.robots import RigidBodyState
13-
from compas_fab.robots import RigidBody
1414

1515
with PyBulletClient() as client:
1616

docs/backends/pybullet/files/04_ik_semi_constrained.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@
77

88
from compas_fab.backends import PyBulletClient
99
from compas_fab.backends import PyBulletPlanner
10-
1110
from compas_fab.robots import FrameTarget
12-
from compas_fab.robots import RobotCellLibrary
1311
from compas_fab.robots import RigidBodyLibrary
14-
from compas_fab.robots import RobotCellState
1512
from compas_fab.robots import RobotCellLibrary
1613
from compas_fab.robots import TargetMode
1714

docs/backends/pybullet/files/04_ik_tool_target_mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from compas.geometry import Frame
2+
23
from compas_fab.backends import PyBulletClient
34
from compas_fab.backends import PyBulletPlanner
4-
55
from compas_fab.robots import FrameTarget
66
from compas_fab.robots import RobotCellLibrary
77
from compas_fab.robots import TargetMode

docs/backends/pybullet/files/07_plan_motion_config_target.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from _pybullet_demo_helper import trajectory_replay
22
from compas.geometry import Box
33
from compas.geometry import Frame
4-
from compas.geometry import Point
5-
from compas.geometry import Vector
64

75
from compas_fab.backends import MPNoIKSolutionError
86
from compas_fab.backends import MPNoPlanFoundError
@@ -12,7 +10,6 @@
1210
from compas_fab.robots import RigidBody
1311
from compas_fab.robots import RigidBodyState
1412
from compas_fab.robots import RobotCellLibrary
15-
from compas_fab.robots import RobotCellState
1613

1714
with PyBulletClient("gui") as client:
1815
planner = PyBulletPlanner(client)

docs/backends/ros/files/02_load_robot_cell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from compas_fab.backends import RosClient
21
from compas_fab.backends import MoveItPlanner
2+
from compas_fab.backends import RosClient
33

44
with RosClient() as client:
55
robot_cell = client.load_robot_cell()

docs/backends/ros/files/02_set_robot_cell.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
from compas_fab.backends import RosClient
2-
from compas_fab.backends import MoveItPlanner
1+
from compas.geometry import Box
32

4-
from compas_fab.robots import ToolLibrary
3+
from compas_fab.backends import MoveItPlanner
4+
from compas_fab.backends import RosClient
55
from compas_fab.robots import RigidBody
66
from compas_fab.robots import RigidBodyLibrary
7-
8-
from compas.geometry import Box
7+
from compas_fab.robots import ToolLibrary
98

109
with RosClient() as client:
1110
robot_cell = client.load_robot_cell()

0 commit comments

Comments
 (0)