Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def calibrate(self, controllers):
print("Launched: %s" % ', '.join(launched))

# Starts the launched controllers
self.switch_controller(launched, [], controller_manager_srvs.SwitchControllerRequest.BEST_EFFORT)
self.switch_controller(launched, [], controller_manager_srvs.SwitchControllerRequest.BEST_EFFORT, False, 0)

# Sets up callbacks for calibration completion
waiting_for = launched[:]
Expand All @@ -80,7 +80,7 @@ def calibrated(msg, name): # Somewhat not thread-safe
for name in launched:
try:
resp_stop = self.switch_controller([], [name],
controller_manager_srvs.SwitchControllerRequest.STRICT)
controller_manager_srvs.SwitchControllerRequest.STRICT, False, 0)
if (resp_stop == 0):
rospy.logerr("Failed to stop controller %s" % name)
resp_unload = self.unload_controller(name)
Expand Down