-
Notifications
You must be signed in to change notification settings - Fork 196
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
Vector typedef of VectorOf<double> #1657
Conversation
@Nicogene be considerate and run tests thoroughly before merging this! |
Yes sure! If you know any other test I can do for testing this, please let me know 😉 |
7f4208c
to
35d8a52
Compare
8ef301b
to
758848a
Compare
As soon as I have all green lights I will test the redball demo on the robot, should be enough ? |
@Nicogene, better rather run the simulated red-ball demo using RTF and then go on the real robot. |
This is the test I was mentioning: https://github.com/robotology/icub-tests/tree/master/src/demoRedBall. |
Sucessfully tested with the |
d4d8fa6
to
b61aa56
Compare
00c8177
to
d722c74
Compare
d722c74
to
aab912e
Compare
@drdanz rebased on latest devel, ready for the review |
f49984c
to
554fe06
Compare
554fe06
to
3b90d96
Compare
Thanks to #1773 I figured out that this PR breaks the bindings, so DO NOT MERGE. |
@Nicogene did you used the %template SWIG command? |
3b90d96
to
6dc6741
Compare
Thanks @traversaro , now it should be ok, I had to add |
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.
LGTM, just one minor comment
src/libYARP_sig/src/Vector.cpp
Outdated
@@ -41,6 +41,14 @@ class VectorPortContentHeader | |||
}; | |||
YARP_END_PACK | |||
|
|||
const std::map<int, std::string> tag2FormatStr = { | |||
{BOTTLE_TAG_INT32, "d"}, | |||
{BOTTLE_TAG_INT64, "ld"}, |
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 suggest to use PRId32
and PRId64
here
Swig(3.0.12) crashes when generating ruby bindings without these guards. Bindings for Vector are generated anyways throught the %template directive in the interface file.
6dc6741
to
2417c7d
Compare
…ass yarp::sig::Vector This is related to robotology/yarp#1657 which refactored the class `Vector` to be a typedef of `VectorOF<double>`.
…ass yarp::sig::Vector This is related to robotology/yarp#1657 which refactored the class `Vector` to be a typedef of `VectorOF<double>`.
This PR refactors
yarp::sig::Vector
in order to be a typedef ofyarp::sig::VectorOf<double>
Moreover it enables and fixes the
VectorOfTest
disabled because broken.I have to check how these changes impact the build on windows.
Fixes #1598
please review code.