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

Fix compilation on Ubuntu 18.04 w ROS Melodic #130

Closed
wants to merge 4 commits into from

Conversation

roncapat
Copy link

On systems with qt-moc versione 5 or above, MOC generation fails.

This patch excludes ros includes (and thus the problematic boost includes) from sources during MOC generation.
This patch also migrates to std::shared_ptr, as it seems that URDF library migrated to them, leading to build errors.

k-okada added a commit to knorth55/jsk_robot that referenced this pull request Apr 13, 2020
use RethinkRobotics/baxter_simulator#130 (Fix compilation on Ubuntu 18.04 w ROS Melodic) for baxter_simulator
install only jsk_maps from jsk_demos
@roncapat
Copy link
Author

@knorth55 could you please check? The only difference from your review is the conditional inclusion of the header <memory>

@roncapat
Copy link
Author

PR #129 is also strictly related. Use of auto is better IMHO, but not sure if the header is still explicitly required or not.

@knorth55
Copy link
Member

Oh, I forgot to tell you to include <memory>.
Thank you so much!
I did the same thing in my environment, and I confirmed it works.

@knorth55
Copy link
Member

By the way, this repository is no longer maintained, but no one succeeded the release and maintenance permission.
There is a discussion about the release of this repository.
If you have time, please take a look.
https://discourse.ros.org/t/baxter-release-permissions/8705

@roncapat
Copy link
Author

Thank you for linking.

@@ -34,6 +34,9 @@
#include <cstring>
#include <ros/ros.h>
#include <baxter_sim_kinematics/arm_kinematics.h>
#if ROS_VERSION_MINIMUN(1, 14, 0) //Melodic
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm so sorry, but my original comment was typo.
ROS_VERSION_MINIMUN -> ROS_VERSION_MINIMUM
can you correct this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@@ -245,8 +248,13 @@ bool Kinematics::loadModel(const std::string xml) {
*/
bool Kinematics::readJoints(urdf::Model &robot_model) {
num_joints = 0;
#if ROS_VERSION_MINIMUN(1, 14, 0) // Melodic
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm so sorry, but my original comment was typo.
ROS_VERSION_MINIMUN -> ROS_VERSION_MINIMUM
can you correct this?

@roncapat
Copy link
Author

Closing for obsolescence

@roncapat roncapat closed this Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants