Skip to content

Commit ceb07a1

Browse files
committed
Transformation.from_change_basis instead of change_of_basis
1 parent 3aa7bfa commit ceb07a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compas_fab/robots/robot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def transformation_RCF_WCF(self, group=None):
568568
569569
"""
570570
base_frame = self.get_base_frame(group)
571-
return Transformation.change_of_basis(base_frame, Frame.worldXY())
571+
return Transformation.from_change_basis(base_frame, Frame.worldXY())
572572

573573
def transformation_WCF_RCF(self, group=None):
574574
"""Returns the transformation from the world coordinate system (WCF) to the robot's coordinate system (RCF).
@@ -584,7 +584,7 @@ def transformation_WCF_RCF(self, group=None):
584584
585585
"""
586586
base_frame = self.get_base_frame(group)
587-
return Transformation.change_of_basis(Frame.worldXY(), base_frame)
587+
return Transformation.from_change_basis(Frame.worldXY(), base_frame)
588588

589589
def set_RCF(self, robot_coordinate_frame, group=None):
590590
"""Moves the origin frame of the robot to the robot_coordinate_frame.

src/compas_fab/robots/wrench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def gravity_compensated(self, ft_sensor_frame, mass, center_of_mass):
376376
Available at: http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.552.109.
377377
"""
378378
# transform gravity vector to FT Sensor coordinate system (FTSCS)
379-
gravity_vector_FTSCS = ft_sensor_frame.to_local_coords(gravity_vector)
379+
gravity_vector_FTSCS = ft_sensor_frame.to_local_coordinates(gravity_vector)
380380

381381
# F gravity compensation, F = gravity * mass
382382
force_gravity = gravity_vector_FTSCS * mass

0 commit comments

Comments
 (0)