Skip to content

Commit

Permalink
Merge pull request #96 from shadow-robot/fix_melodic
Browse files Browse the repository at this point in the history
updating switchcontrollers
  • Loading branch information
Beatriz Leon authored Feb 11, 2020
2 parents 041eee3 + c555626 commit dbf667c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ros_ethercat_model/src/ros_ethercat_model/calibrate_class.py
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

0 comments on commit dbf667c

Please sign in to comment.