-
Notifications
You must be signed in to change notification settings - Fork 71
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
Feature/29/complete semantic checks merged #57
Conversation
Squashed commit of the following: commit c997a70 Author: Nuno Guedelha <nuno.guedelha@iit.it> Date: Wed Jun 17 15:16:19 2015 +0200 fixed and compiled Position and Rotation classes commit e0cd94e Author: Nuno Guedelha <nuno.guedelha@iit.it> Date: Tue Jun 16 13:14:26 2015 +0200 initial cleanup, refactoring Position and Rotation classes
/** | ||
* Copy constructor: create a Rotation from another RotationRaw and another RotationSemantics. | ||
*/ | ||
Rotation(const RotationRaw & other, RotationSemantics & semantics); |
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.
Why private?
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.
It was initially private
I think, and I left it this way since I always protect attributes as much as possible. But here, we should use protected
otherwise any derivate class won't have access to this attribute.
I can change it in my next push if it's ok for you.
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.
I was referring to the constructor.
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.
This constructor is only for internal use in semantic operations of Rotation class (compose
, inverse2
,...)
General comments:
|
@@ -54,47 +61,40 @@ namespace iDynTree | |||
|
|||
void RotationSemantics::setReferenceOrientationFrame(int _refOrientationFrame) | |||
{ | |||
this->refOrientationFrame = _refOrientationFrame; | |||
this->refOrientationFrame = this->coordinateFrame = _refOrientationFrame; |
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.
Good way of enforcing the constraint on semantic, but we should mention it in the doxygen documentation, otherways this behaviour is really counterintuitive.
|
I revert the matlab generated files to the swig commit agreed in #53 , so we can merge. We can always fix the issue of cout/cerr redirection once the pr is merged. |
I had some glitches but now all test pass, merging. |
…cksMerged Feature/29/complete semantic checks merged
Thanks. I forked the swig repo and added my changes. |
This change is a further step in the implementation of #29. (requirements 1,3,4 of requirements document which can be found here:
https://github.com/nunoguedelha/DevAnalysis/tree/feature/29/CompleteSemanticChecks/issue%2329_completeSemanticChecks)
Rotation and Position semantics fully working with errors redirected to Matlab even if not launching from terminal.
Transform semantics to be completed in next push.