-
Notifications
You must be signed in to change notification settings - Fork 957
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
[indigo] IKFastTemplate: Fix compiler error because of isnan ambiguity. #586
Conversation
c8994e5
to
0439f83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not very sophisticated perhaps, but a practical way to get around C++11 and IKFast problems for now.
@@ -136,8 +136,12 @@ enum IkParameterizationType | |||
/// when serializing the ik parameterizations | |||
}; | |||
|
|||
// HACK to fix isnan ambiguity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While it is sort of a hack, it would be nice if we could call this a work around, as it works around what is currently a limitation of OpenRAVE/IKFast.
@@ -136,8 +136,12 @@ enum IkParameterizationType | |||
/// when serializing the ik parameterizations | |||
}; | |||
|
|||
// HACK to fix isnan ambiguity | |||
#undef isnan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you clarify why you added this additional undef
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isnan could be defined somewhere else and I thought redefining macros would throw an error but it's only a warning so maybe we want to get the warning.
I'm also wondering whether we could perhaps approach this differently: perhaps we could remove the That would localise the effects of this as much as possible. I'm not entirely sure why the @davetcoleman: do you know why the generated source file is |
0439f83
to
e66d292
Compare
I have another fix/work-around for this that is a little less hacky and more maintainable. I'll submit a PR for that later this week. |
@gavanderhoorn I was about to +1 this when you posted the above comment just now. |
@v4hn wrote:
to make the |
You are right. I'm looking ahead to merge your working request :) |
@gavanderhoorn I do not know why it was done this way. I once had a branch for the ikfast plugin that made all generated IKFast plugins depend upon moveit_kinematics package for all wrapper code around the one robot-specific generated file. If implemented, this would allow all IKFast plugins to be automatically updated whenever moveit_kinematics is updated. Just a slightly off-topic thought that involved moving this |
I remember discussing that approach before, yes. The current way of doing things does mean that we have almost total freedom when it comes to breaking things, as existing plugins will not be affected in any way - they are completely stand-alone (as far as that is possible for plugins). It does mean that upgrades - or desirable changes - do not get propagated easily. |
@gavanderhoorn ping |
I'll get back to this, had a EU project deadline. |
closed in favor of #619 |
Fixes #584