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

Can this be used for pretty printing of Eigen data without drake? #6

Open
pglira opened this issue Aug 23, 2021 · 0 comments
Open

Can this be used for pretty printing of Eigen data without drake? #6

pglira opened this issue Aug 23, 2021 · 0 comments

Comments

@pglira
Copy link

pglira commented Aug 23, 2021

I've found this repo while I was searching for a gdb pretty printer for Eigen data.

Can this be used without using drake?

If yes, can you give me a hint how this should be installed and used?

(I've tried the standard installation process, but I'm getting the following error:

Traceback (most recent call last):
  File "/home/philipp/drake_gdb/eigen_printers.py", line 218, in to_string
    return self.get_prefix() + " (data ptr: %s)\n%s" % (self.data, self.matString())
  File "/home/philipp/drake_gdb/eigen_printers.py", line 197, in matString
    s = '{:.14g}'.format(getFloat(ptr.dereference()))
  File "/home/philipp/drake_gdb/eigen_printers.py", line 184, in <lambda>
    getFloat = lambda x: float(x['m_value'])
gdb.error: Attempt to extract a component of a value that is not a struct/class/union.

)

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