Skip to content

Commit bb6978c

Browse files
authored
Merge pull request #383 from compas-dev/fix-acm-pre-noetic
Fix ACM pre-noetic
2 parents 8725e91 + 1d679ec commit bb6978c

File tree

7 files changed

+19
-11
lines changed

7 files changed

+19
-11
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: |
3939
python -m pip install --upgrade pip
4040
python -m pip install wheel
41-
python -m pip install cython --install-option="--no-cython-compile"
41+
python -m pip install cython --config-settings="--build-option=--no-cython-compile"
4242
- name: Install
4343
run: |
4444
python -m pip install --no-cache-dir -r requirements-dev.txt

.github/workflows/deploy-n-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: |
2525
python -m pip install --upgrade pip
2626
python -m pip install wheel
27-
python -m pip install cython --install-option="--no-cython-compile"
27+
python -m pip install cython --config-settings="--build-option=--no-cython-compile"
2828
- name: 💎 Install
2929
run: |
3030
python -m pip install --no-cache-dir -r requirements-dev.txt

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: |
2727
python -m pip install --upgrade pip
2828
python -m pip install wheel
29-
python -m pip install cython --install-option="--no-cython-compile"
29+
python -m pip install cython --config-settings="--build-option=--no-cython-compile"
3030
- name: Install
3131
run: |
3232
python -m pip install --no-cache-dir -r requirements-dev.txt

CHANGELOG.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10-
**Added**
10+
### Added
1111

1212
* Added `Forward Kinematics` GH component.
1313

14-
**Changed**
14+
### Changed
1515

1616
* Updated install process of GH components.
1717

18-
**Fixed**
18+
### Fixed
19+
20+
* Fixed pre-Noetic support on the MoveIt planner when a tool is attached to the robot.
1921

20-
**Deprecated**
22+
### Deprecated
2123

22-
**Removed**
24+
### Removed
2325

2426
## 0.27.0
2527

src/compas_fab/backends/ros/backend_features/move_it_inverse_kinematics.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,15 @@ def inverse_kinematics_async(
109109
name=start_configuration.joint_names, position=start_configuration.joint_values, header=header
110110
)
111111
start_state = RobotState(joint_state, MultiDOFJointState(header=header))
112-
start_state.filter_fields_for_distro(self.ros_client.ros_distro)
113112

114113
if options.get("attached_collision_meshes"):
115114
for acm in options["attached_collision_meshes"]:
116115
aco = AttachedCollisionObject.from_attached_collision_mesh(acm)
117116
start_state.attached_collision_objects.append(aco)
118117

118+
# Filter needs to happen after all objects have been added
119+
start_state.filter_fields_for_distro(self.ros_client.ros_distro)
120+
119121
constraints = convert_constraints_to_rosmsg(options.get("constraints"), header)
120122

121123
timeout_in_secs = options.get("timeout", 2)

src/compas_fab/backends/ros/backend_features/move_it_plan_cartesian_motion.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,15 @@ def plan_cartesian_motion_async(
113113
header=header, name=start_configuration.joint_names, position=start_configuration.joint_values
114114
)
115115
start_state = RobotState(joint_state, MultiDOFJointState(header=header), is_diff=True)
116-
start_state.filter_fields_for_distro(self.ros_client.ros_distro)
117116

118117
if options.get("attached_collision_meshes"):
119118
for acm in options["attached_collision_meshes"]:
120119
aco = AttachedCollisionObject.from_attached_collision_mesh(acm)
121120
start_state.attached_collision_objects.append(aco)
122121

122+
# Filter needs to happen after all objects have been added
123+
start_state.filter_fields_for_distro(self.ros_client.ros_distro)
124+
123125
path_constraints = convert_constraints_to_rosmsg(options.get("path_constraints"), header)
124126

125127
request = dict(

src/compas_fab/backends/ros/backend_features/move_it_plan_motion.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,15 @@ def plan_motion_async(
110110
header=header, name=start_configuration.joint_names, position=start_configuration.joint_values
111111
)
112112
start_state = RobotState(joint_state, MultiDOFJointState(header=header), is_diff=True)
113-
start_state.filter_fields_for_distro(self.ros_client.ros_distro)
114113

115114
if options.get("attached_collision_meshes"):
116115
for acm in options["attached_collision_meshes"]:
117116
aco = AttachedCollisionObject.from_attached_collision_mesh(acm)
118117
start_state.attached_collision_objects.append(aco)
119118

119+
# Filter needs to happen after all objects have been added
120+
start_state.filter_fields_for_distro(self.ros_client.ros_distro)
121+
120122
# convert constraints
121123
goal_constraints = [convert_constraints_to_rosmsg(goal_constraints, header)]
122124
path_constraints = convert_constraints_to_rosmsg(options.get("path_constraints"), header)

0 commit comments

Comments
 (0)