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

PyKDL - 'Tree" Object Attribute Error #351

Open
willnil opened this issue Aug 26, 2021 · 3 comments
Open

PyKDL - 'Tree" Object Attribute Error #351

willnil opened this issue Aug 26, 2021 · 3 comments

Comments

@willnil
Copy link

willnil commented Aug 26, 2021

My issue is similar to issue #74, in which I have problems with the 'Tree' object when using PyKDL. I cannot access some of the functions listed in the API.

AttributeError: 'Tree' object has no attribute 'getSegment'

According to issue #74, I think it is not fixed yet as some functions are not exported yet in the kinfam.cpp. I cannot use the functions getSegment, getRootSegment and getSegments.

It would be great if you have updates on this problem. Thanks.

@MatthijsBurgh
Copy link
Collaborator

I am not sure all functions are possible as we are depending on the functionality of PyBind11.
When you have time, please give it a try and open a PR. I may not have time for a month to take a better look at this.

@MatthijsBurgh
Copy link
Collaborator

MatthijsBurgh commented Sep 9, 2021

I am not sure what the return type of these functions should be. Just the Segment, the TreeElement or the std::pair<std::string,TreeElement>?

I think the best would be to return the map(dict?) for getSegments and the pair(tuple?) for the other functions?

@meyerj @smits Do you have an opinion on this.

edit: This would require adding TreeElement to PyKDL. This requires the parent and children to be handled correctly.

@MatthijsBurgh
Copy link
Collaborator

@kashifzr I am deleting your comment, just open a new issue. There is zero correlation between your problem and this issue.

@orocos orocos deleted a comment from kashifzr Oct 5, 2021
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

No branches or pull requests

2 participants