-
Notifications
You must be signed in to change notification settings - Fork 39
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
Handle the case without force/torque sensors #625
Conversation
/** | ||
* Getters | ||
*/ | ||
|
||
/** | ||
* @brief Access model. | ||
* @brief Access m_model. |
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 would avoid mentioning m_model
you can change the documentation in
* @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
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.
Done
* @brief access the length of m_ftList. | ||
* @return the number of force/torque sensors in the sub-model. | ||
*/ | ||
int getNrOfFTSensor() const; |
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.
int getNrOfFTSensor() const; | |
std::size_t getNrOfFTSensor() const; |
This is valid also foe the others
317ed70
to
00374c5
Compare
00374c5
to
692a0f3
Compare
Let's wait for the CI. (I should add the auto-merge CI 🤔 ) |
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.