UM-ARM-Lab / kuka_iiwa_interface

Developmental controllers for the IIWA 7 robot, including a Catkinized version of the Kuka FRI SDK
BSD 2-Clause "Simplified" License
7 stars 4 forks source link

Upgrade realtime from 16.04 #122

Closed bsaund closed 3 years ago

bsaund commented 3 years ago

Our code stack is moving towards noetic and away from kinetic. E.g. https://github.com/UM-ARM-Lab/arc_utilities/pull/105

Upgrading realtime to 18.04 might be relatively painless. Upgrading to 20.04 would likely be more complicated

PeterMitrano commented 3 years ago

I just tested and this builds as-is on realtime. Why did we think we needed to upgrade? I still think we should update but it seems like we don't need to, at least not yet.

bsaund commented 3 years ago

I believe there was a concern if realtime's gcc supported C++17

PeterMitrano commented 3 years ago

Yea although it seems were not using it at the moment. If that's the only concern it should be super easy to install gcc9 or something. We can built it from source if need be.

PeterMitrano commented 3 years ago

Is there anything special about realtime? Does it actually run the realtime linux kernel?

dmcconachie commented 3 years ago

It is using a realtime patched kernel; yes.

PeterMitrano commented 3 years ago

....why? afaik it's not running any code that is needs to be realtime. It's just the arm wrapper node

dmcconachie commented 3 years ago

It's something @calderpg did; I had the same vague question, but did not pursue it. I think at one point it was due to using the FRI interface for Victor, which requires a very steady 1 kHz signal.

calderpg commented 3 years ago

Because in the spring of 2017, it looked like FRI in torque mode was going to be the best way to achieve compliant motions (it wasn't, for various reasons). Even now, FRI is best used on realtime-patched kernels, although if you have to, core reservation+pinning can be used with some success.

Anyways, PREEMPT-RT patches are easy enough to apply for 18.04 and 20.04, so it shouldn't stop you from updating.

PeterMitrano commented 3 years ago

Thanks! that makes sense, I forgot about FRI. I agree it should be easy to upgrade to a 20.04 realtime kernal. Let's do this after the move & when no one is going to need the robot for a week @powertj

bsaund commented 3 years ago

I'm going to upgrade realtime.

Our new stack does not currently build on realtime. robot_3f_gripper_articulated_gazebo_plugins requires c++20 (or at least 17). Rather than fiddling with gcc updates, I'll just upgrade

bsaund commented 3 years ago

Realtime is now on 20.04. I did no additional patching to make it a "realtime" version