Skip to content

Commit

Permalink
QTimer::setInterval expects int argument (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke authored Oct 12, 2024
1 parent 6b9fd8b commit 633c374
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions combined_robot_hw_tests/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@

<depend>combined_robot_hw</depend>
<depend>controller_manager</depend>
<depend>controller_manager_msgs</depend>
<depend>controller_manager_tests</depend>
<depend>hardware_interface</depend> <!-- exec_depend required for plugin -->
<depend>roscpp</depend>

<build_depend>pluginlib</build_depend>

<build_export_depend>pluginlib</build_export_depend>

<test_depend>controller_manager_msgs</test_depend>
<test_depend>controller_manager_tests</test_depend>
<test_depend>rostest</test_depend>

<export>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,13 @@ def __init__(self, context):
# Timer for controller manager updates
self._list_cm = ControllerManagerLister()
self._update_cm_list_timer = QTimer(self)
self._update_cm_list_timer.setInterval(1000.0 /
self._cm_update_freq)
self._update_cm_list_timer.setInterval(int(1000.0 / self._cm_update_freq))
self._update_cm_list_timer.timeout.connect(self._update_cm_list)
self._update_cm_list_timer.start()

# Timer for running controller updates
self._update_ctrl_list_timer = QTimer(self)
self._update_ctrl_list_timer.setInterval(1000.0 /
self._cm_update_freq)
self._update_ctrl_list_timer.setInterval(int(1000.0 / self._cm_update_freq))
self._update_ctrl_list_timer.timeout.connect(self._update_controllers)
self._update_ctrl_list_timer.start()

Expand Down

0 comments on commit 633c374

Please sign in to comment.