Skip to content

Commit f59c6d2

Browse files
Test also for multi_cm of ex15
1 parent 78d115b commit f59c6d2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

example_15/test/test_multi_controller_manager_launch.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,20 @@ def tearDown(self):
8383
def test_node_start(self, proc_output):
8484
check_node_running(self.node, "robot_state_publisher")
8585

86-
def test_controller_running_cm1(self, proc_output):
86+
def test_controller_running(self, proc_output):
8787

8888
cnames = [
8989
"forward_position_controller",
9090
"joint_state_broadcaster",
9191
]
92-
check_controllers_running(self.node, cnames, "/rrbot_1")
93-
check_controllers_running(self.node, cnames, "/rrbot_2")
92+
check_controllers_running(self.node, cnames, "/rrbot_1", "active")
93+
check_controllers_running(self.node, cnames, "/rrbot_2", "active")
94+
95+
cnames = [
96+
"position_trajectory_controller",
97+
]
98+
check_controllers_running(self.node, cnames, "/rrbot_1", "inactive")
99+
check_controllers_running(self.node, cnames, "/rrbot_2", "inactive")
94100

95101
def test_check_if_msgs_published(self):
96102
check_if_js_published("/rrbot_1/joint_states", ["rrbot_1_joint1", "rrbot_1_joint2"])

0 commit comments

Comments
 (0)