Skip to content

Commit

Permalink
[unittest] Used different topic names to avoid duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
cmastalli committed Dec 13, 2023
1 parent 9d9af37 commit d9c1a12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions unittest/test_whole_body_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ def test_communication_with_reduced_model(self):
model, [model.getJointId(name) for name in locked_joints], qref
)
sub = WholeBodyStateRosSubscriber(
model, locked_joints, qref, "whole_body_state"
model, locked_joints, qref, "reduced_whole_body_state"
)
pub = WholeBodyStateRosPublisher(model, locked_joints, qref, "whole_body_state")
pub = WholeBodyStateRosPublisher(model, locked_joints, qref, "reduced_whole_body_state")
time.sleep(1)
# publish whole-body state messages
q = pinocchio.randomConfiguration(model)
Expand Down Expand Up @@ -196,9 +196,9 @@ def test_communication_with_non_locked_joints(self):
model, [model.getJointId(name) for name in locked_joints], qref
)
sub = WholeBodyStateRosSubscriber(
model, locked_joints, qref, "whole_body_state"
model, locked_joints, qref, "non_locked_whole_body_state"
)
pub = WholeBodyStateRosPublisher(model, locked_joints, qref, "whole_body_state")
pub = WholeBodyStateRosPublisher(model, locked_joints, qref, "non_locked_whole_body_state")
time.sleep(1)
# publish whole-body state messages
q = pinocchio.randomConfiguration(model)
Expand Down
8 changes: 4 additions & 4 deletions unittest/test_whole_body_trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ def test_communication_with_reduced_model(self):
model, [model.getJointId(name) for name in locked_joints], qref
)
sub = WholeBodyTrajectoryRosSubscriber(
model, locked_joints, qref, "whole_body_trajectory"
model, locked_joints, qref, "reduced_whole_body_trajectory"
)
pub = WholeBodyTrajectoryRosPublisher(
model, locked_joints, qref, "whole_body_trajectory"
model, locked_joints, qref, "reduced_whole_body_trajectory"
)
time.sleep(1)
# publish whole-body trajectory messages
Expand Down Expand Up @@ -235,10 +235,10 @@ def test_communication_with_non_locked_joints(self):
model, [model.getJointId(name) for name in locked_joints], qref
)
sub = WholeBodyTrajectoryRosSubscriber(
model, locked_joints, qref, "whole_body_trajectory"
model, locked_joints, qref, "non_locked_whole_body_trajectory"
)
pub = WholeBodyTrajectoryRosPublisher(
model, locked_joints, qref, "whole_body_trajectory"
model, locked_joints, qref, "non_locked_whole_body_trajectory"
)
time.sleep(1)
# publish whole-body trajectory messages
Expand Down

0 comments on commit d9c1a12

Please sign in to comment.