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

Add accessors #419

Merged
merged 14 commits into from
Nov 27, 2022
Merged

Add accessors #419

merged 14 commits into from
Nov 27, 2022

Conversation

Masa0u0
Copy link
Contributor

@Masa0u0 Masa0u0 commented Nov 10, 2022

Hello. I am a university student in Japan.
I propose the following two things

  • Add accessors for Joint, Segment and RigidbodyInertia.
  • Let TreeFkSolverPos_recursive and TreeJntToJacSolver hold the constant reference of the Tree.

orocos_kdl will be easier to use. Please consider.

add accessors of scale and offset
add accessor of f_tip
add accessor of h
change return types of getMass() and getRotationalInertia()
privat variale this->tree to a const reference
@MatthijsBurgh
Copy link
Collaborator

I will have to check which changes are ABI compatible. As these are small changes, 8 don't want to break ABI compatibility for it.

@Masa0u0
Copy link
Contributor Author

Masa0u0 commented Nov 11, 2022

@MatthijsBurgh
Thank you for your comments.
Could you tell me what I should do?

const double& getMass() -> double getMass()
@Masa0u0
Copy link
Contributor Author

Masa0u0 commented Nov 22, 2022

@MatthijsBurgh
I updated PR. Please check again.

@MatthijsBurgh
Copy link
Collaborator

@Masa0u0 These are the only ABI compatible changes.

@Masa0u0
Copy link
Contributor Author

Masa0u0 commented Nov 22, 2022

@MatthijsBurgh
I understand.
I am disappointed that TreeFkSolverPos_recursive and TreeJntToJacSolver cannot have the const reference of Tree.

@MatthijsBurgh
Copy link
Collaborator

@Masa0u0 could you add missing docstring to the added function in Segment. I have no idea what a good docstring would be.

getFrameToTipRaw -> getFrameToTipZero
add docstring to get FrameToTipZero
add docstring to get FrameToTipZero
@Masa0u0
Copy link
Contributor Author

Masa0u0 commented Nov 24, 2022

@MatthijsBurgh
I changed the name of the added function and added docstring to it.
I'm sorry, I made a mistake in the commit messages.

@MatthijsBurgh MatthijsBurgh changed the title Accessors and constant references Add accessors Nov 27, 2022
@MatthijsBurgh MatthijsBurgh merged commit 9a35f0a into orocos:master Nov 27, 2022
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