kroshu / kuka_drivers

Repository containing ROS2 drivers for multiple KUKA robots
Apache License 2.0
78 stars 23 forks source link

add sched_param to the correct place #76

Closed VX792 closed 1 year ago

VX792 commented 1 year ago

Since the sched_setscheduler function is called in the main, the executor is also spinning on RT priority, which is entirely pointless (especially since it's blocking). This PR solves this by calling the function inside the control_loop thread, where the meaningful stuff happens.

Svastits commented 1 year ago

Ok after green CI

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell E 1 Code Smell

0.0% 0.0% Coverage
100.0% 100.0% Duplication