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

Handle the case without force/torque sensors #625

Merged
merged 2 commits into from
Mar 14, 2023

Conversation

isorrentino
Copy link
Collaborator

The case without force/torque sensors to split the model was not considered and if the list of sensors was empty we had a segmentation fault error. This PR fixes the problem and now if the user does not specify a list of sensors, the SubModelCreator creates a unique SubModel object corresponding to the full model.

/**
* Getters
*/

/**
* @brief Access model.
* @brief Access m_model.
Copy link
Member

Choose a reason for hiding this comment

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

I would avoid mentioning m_model you can change the documentation in

Suggested change
* @brief Access m_model.
* @brief Get the `iDynTree::Model` instance.
* @note The actual implementation of the Model is currently stored in an `iDynTree::Model`

This is valid also for the others

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

* @brief access the length of m_ftList.
* @return the number of force/torque sensors in the sub-model.
*/
int getNrOfFTSensor() const;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
int getNrOfFTSensor() const;
std::size_t getNrOfFTSensor() const;

This is valid also foe the others

@GiulioRomualdi
Copy link
Member

The first commit shouldn't be there 😭

image

@GiulioRomualdi
Copy link
Member

Let's wait for the CI. (I should add the auto-merge CI 🤔 )

@GiulioRomualdi GiulioRomualdi merged commit 3c9470a into ami-iit:master Mar 14, 2023
@isorrentino isorrentino deleted the HandleModelNotSplitted branch March 31, 2023 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants