Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QTimer::setInterval expects int argument #519

Merged
merged 2 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
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
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
Loading