Skip to content

Commit a5bf491

Browse files
committed
fixed scaled frames in plan cartesian
1 parent 3f4c455 commit a5bf491

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/compas_fab/robots/robot.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,10 @@ def plan_cartesian_motion(self, frames_WCF, start_configuration=None,
11461146

11471147
max_step_scaled = max_step / self.scale_factor
11481148

1149+
frames_WCF_scaled = []
1150+
for frame in frames_WCF:
1151+
frames_WCF_scaled.append(Frame(frame.point * 1/self.scale_factor, frame.xaxis, frame.yaxis))
1152+
11491153
if path_constraints:
11501154
path_constraints_WCF_scaled = []
11511155
for c in path_constraints:
@@ -1168,7 +1172,7 @@ def plan_cartesian_motion(self, frames_WCF, start_configuration=None,
11681172

11691173
trajectory = self.client.plan_cartesian_motion(
11701174
robot=self,
1171-
frames=frames_WCF,
1175+
frames=frames_WCF_scaled,
11721176
start_configuration=start_configuration_scaled,
11731177
group=group,
11741178
max_step=max_step_scaled,

0 commit comments

Comments
 (0)