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

Support accessing eigen_matrix elements in eigen_typekit #23

Open
xwavex opened this issue Jan 27, 2017 · 0 comments
Open

Support accessing eigen_matrix elements in eigen_typekit #23

xwavex opened this issue Jan 27, 2017 · 0 comments

Comments

@xwavex
Copy link

xwavex commented Jan 27, 2017

I would like to use the [ , ]-operator for eigen_matrix to get and set elements.
I saw that there is already an attempt in the code to achieve that, but unfortunately, newTernaryOperator seems to be missing.

So I tried to get the input for a statement like this mat[0,1] by utilizing the getMember function for the MatrixTypeInfo.
Using the following cast, I am able to get the first index in this case 0, but not the second one.

RTT::internal::DataSource<int>::shared_ptr id_indx = RTT::internal::DataSource<int>::narrow( RTT::internal::DataSourceTypeInfo<int>::getTypeInfo()->convert(id).get() );

I don't know if it makes sense this way... Perhaps someone could point me in the right direction :)

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

1 participant