Closed IanTheEngineer closed 6 years ago
I agree with your magic sentiment. I'll add a comment in there so its clear the type changes between ROS Distros. Fortunately the Joint smart pointer is only used internally, so I feel this simple slide of hand is worth it
This is related to #89
The gcc compiler in bionic (v7.3.0) is (correctly) more strict about requiring include files in headers. This meant we needed to add few additional vector includes.
Additionally,
urdf::Model::getJoint()
has switched from returning aboost::shared_ptr<const urdf::Joint>
to returningstd::shared_ptr<const urdf::Joint>
in ros melodic. To be flexible and simultaneously build on different branches, we're usingauto
to capture the correct type everywhere.