Skip to content

Commit 545fd51

Browse files
authored
Merge pull request #280 from compas-dev/joint_config
Move Configuration to compas
2 parents 2f61550 + 0c4f26c commit 545fd51

23 files changed

+44
-835
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ _Put an `x` in the boxes that apply. You can also fill these out after creating
1616
- [ ] I added a line to the `CHANGELOG.rst` file in the `Unreleased` section under the most fitting heading (e.g. `Added`, `Changed`, `Removed`).
1717
- [ ] I ran all tests on my computer and it's all green (i.e. `invoke test`).
1818
- [ ] I ran lint on my computer and there are no errors (i.e. `invoke lint`).
19-
- [ ] I added new functions/classes and made them available on a second-level import, e.g. `compas_fab.robots.Configuration`.
19+
- [ ] I added new functions/classes and made them available on a second-level import, e.g. `compas_fab.robots.CollisionMesh`.
2020
- [ ] I have added tests that prove my fix is effective or that my feature works.
2121
- [ ] I have added necessary documentation (if appropriate)

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ Unreleased
1616

1717
**Changed**
1818

19+
* The `Configuration` class has moved to `compas.robots`, but is still aliased within `compas_fab.robots`
20+
1921
**Fixed**
2022

2123
* Fix ``repr()`` of ``ROSmsg`` class
2224
* Fix data type of secs and nsecs in ``Time`` ROS message
2325

2426
**Deprecated**
2527

28+
* `compas_fab.robots.Configuration` is being deprecated in favor of `compas.robots.Configuration`
29+
2630
**Removed**
2731

2832
0.17.0

docs/examples/02_description_models/files/02_robot_artist_grasshopper.ghx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ robot = st[robot_key]
502502
<chunk name="Container">
503503
<items count="11">
504504
<item name="CodeInput" type_name="gh_string" type_code="10">import math
505-
from compas_fab.robots import Configuration
505+
from compas.robots import Configuration
506506

507507
if robot:
508508
joint_values = [a1, a2, a3, a4, a5, a6]

docs/examples/02_description_models/files/02_robot_artist_grasshopper_panda.ghx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ robot = st[robot_key]
497497
<chunk name="Container">
498498
<items count="11">
499499
<item name="CodeInput" type_name="gh_string" type_code="10">import math
500-
from compas_fab.robots import Configuration
500+
from compas.robots import Configuration
501501

502502
if robot:
503503
joint_values = [a1, a2, a3, a4, a5, a6, a7]
@@ -2651,7 +2651,7 @@ W = 3</item>
26512651
<items count="11">
26522652
<item name="CodeInput" type_name="gh_string" type_code="10">import math
26532653
from compas.robots import Joint
2654-
from compas_fab.robots import Configuration
2654+
from compas.robots import Configuration
26552655

26562656
if robot:
26572657
joint_values = [j1]

docs/examples/03_backends_ros/files/03_forward_kinematics.py

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

44
with RosClient() as client:
55
robot = client.load_robot()

docs/examples/03_backends_ros/files/03_forward_kinematics_urdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from compas_fab.robots import Configuration
1+
from compas.robots import Configuration
22
from compas_fab.robots.ur5 import Robot
33

44
robot = Robot()

docs/examples/03_backends_ros/files/05_plan_cartesian_motion.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
from compas.datastructures import Mesh
44
from compas.geometry import Frame
5+
from compas.robots import Configuration
56

67
import compas_fab
78
from compas_fab.backends import RosClient
8-
from compas_fab.robots import Configuration, CollisionMesh, AttachedCollisionMesh
9+
from compas_fab.robots import CollisionMesh, AttachedCollisionMesh
910

1011
with RosClient() as client:
1112
robot = client.load_robot()

docs/examples/03_backends_ros/files/05_plan_motion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import math
22
from compas.geometry import Frame
3-
from compas_fab.robots import Configuration
3+
from compas.robots import Configuration
44
from compas_fab.backends import RosClient
55

66
with RosClient() as client:

docs/examples/03_backends_ros/files/robot-playground.ghx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ unload_modules("roslibpy")</item>
833833
<item name="CodeInput" type_name="gh_string" type_code="10">import math
834834
import Grasshopper
835835
from compas.robots import Joint
836-
from compas_fab.robots import Configuration
836+
from compas.robots import Configuration
837837

838838
if set_joint_positions:
839839

@@ -3048,7 +3048,7 @@ robot = st[robot_key]
30483048
<chunks count="1">
30493049
<chunk name="Container">
30503050
<items count="11">
3051-
<item name="CodeInput" type_name="gh_string" type_code="10">from compas_fab.robots import Configuration
3051+
<item name="CodeInput" type_name="gh_string" type_code="10">from compas.robots import Configuration
30523052

30533053
if robot:
30543054
types = robot.get_configurable_joint_types()
@@ -3914,7 +3914,7 @@ print planes</item>
39143914
<chunks count="1">
39153915
<chunk name="Container">
39163916
<items count="11">
3917-
<item name="CodeInput" type_name="gh_string" type_code="10">from compas_fab.robots import Configuration
3917+
<item name="CodeInput" type_name="gh_string" type_code="10">from compas.robots import Configuration
39183918

39193919
if robot:
39203920
types = robot.get_configurable_joint_types()
@@ -7162,7 +7162,7 @@ Add path constraints</item>
71627162
<chunks count="1">
71637163
<chunk name="Container">
71647164
<items count="11">
7165-
<item name="CodeInput" type_name="gh_string" type_code="10">from compas_fab.robots import Configuration
7165+
<item name="CodeInput" type_name="gh_string" type_code="10">from compas.robots import Configuration
71667166

71677167
if robot:
71687168
types = robot.get_configurable_joint_types()

docs/examples/04_backends_vrep/01_simulation_with_vrep.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ forward kinematics:
5252

5353
.. code-block:: python
5454
55+
from compas.robots import Configuration
5556
from compas_fab.robots import *
5657
from compas_fab.robots import rfl
5758
from compas_fab.backends import VrepClient
@@ -114,6 +115,7 @@ Here is an example of such a request:
114115
.. code-block:: python
115116
116117
from compas.geometry import Frame
118+
from compas.robots import Configuration
117119
from compas_fab.robots import *
118120
from compas_fab.robots import rfl
119121
from compas_fab.backends import VrepClient

0 commit comments

Comments
 (0)