Skip to content

Commit

Permalink
Revert test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahr committed Oct 27, 2023
1 parent c4679dc commit 5250855
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions moveit_py/test/unit/test_robot_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ def test_robot_model_property(self):

self.assertEqual(robot_state.robot_model, robot_model)

def test_getFrameTransform(self):
def test_get_frame_transform(self):
"""
Test that the frame transform is correct
"""
robot_model = get_robot_model()
robot_state = RobotState(robot_model)
robot_state.update()
frame_transform = robot_state.getFrameTransform("panda_link0")
frame_transform = robot_state.get_frame_transform("panda_link0")

self.assertIsInstance(frame_transform, np.ndarray)
# TODO(peterdavidfagan): add assertion for particular values
Expand All @@ -60,7 +60,7 @@ def test_get_pose(self):
robot_model = get_robot_model()
robot_state = RobotState(robot_model)
robot_state.update()
pose = robot_state.getPose(link_name="panda_link8")
pose = robot_state.get_pose(link_name="panda_link8")

self.assertIsInstance(pose, Pose)
# TODO(peterdavidfagan): add assertion for particular values
Expand All @@ -72,22 +72,22 @@ def test_get_jacobian_1(self):
robot_model = get_robot_model()
robot_state = RobotState(robot_model)
robot_state.update()
jacobian = robot_state.getJacobian(
jacobian = robot_state.get_jacobian(
joint_model_group_name="panda_arm",
reference_point_position=np.array([0.0, 0.0, 0.0]),
)

self.assertIsInstance(jacobian, np.ndarray)
# TODO(peterdavidfagan): add assertion for particular values

def test_getJacobian_2(self):
def test_get_jacobian_2(self):
"""
Test that the jacobian is correct
"""
robot_model = get_robot_model()
robot_state = RobotState(robot_model)
robot_state.update()
jacobian = robot_state.getJacobian(
jacobian = robot_state.get_jacobian(
joint_model_group_name="panda_arm",
link_name="panda_link6",
reference_point_position=np.array([0.0, 0.0, 0.0]),
Expand Down Expand Up @@ -170,7 +170,7 @@ def test_set_joint_group_accelerations(self):
# tip_name="panda_link8",
# )

# self.assertEqual(robot_state.getPose("panda_link8"), pose)
# self.assertEqual(robot_state.get_pose("panda_link8"), pose)


if __name__ == "__main__":
Expand Down

0 comments on commit 5250855

Please sign in to comment.