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

Drop trailing \0 characters in value returned by iCubModels::getModelsPath function and release 1.23.4 #154

Merged
merged 4 commits into from
May 6, 2022

Conversation

@traversaro
Copy link
Member Author

For an error, I already updated the master's CHANGELOG: f9630fe .

@traversaro traversaro changed the title Drop trailing \0 characters in value returned by iCubModels::getModelsPath function Drop trailing \0 characters in value returned by iCubModels::getModelsPath function and release 1.23.4 May 6, 2022
@traversaro traversaro requested a review from GiulioRomualdi May 6, 2022 15:28
@@ -7,11 +7,18 @@

#include <iCubModels/iCubModels.h>

#include <algorithm>

namespace iCubModels
{
std::string getModelsPath()
Copy link
Member

Choose a reason for hiding this comment

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

We should modify also

    modelFile = "@ICUB_MODELS_MODELS_PATH@/" + modelName + "/model.urdf";
    return modelFile;
}

into

    modelFile = getModelsPath() + "/" + modelName + "/model.urdf";
    return modelFile;
}

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in ea88144 .

@traversaro traversaro requested a review from GiulioRomualdi May 6, 2022 15:53
@traversaro traversaro merged commit f546203 into master May 6, 2022
@traversaro traversaro deleted the traversaro-patch-1 branch May 6, 2022 17:24
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