Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

lcm-debug-print-all.py: try to resolve symbols #42

Open
tmplt opened this issue Dec 12, 2020 · 0 comments
Open

lcm-debug-print-all.py: try to resolve symbols #42

tmplt opened this issue Dec 12, 2020 · 0 comments

Comments

@tmplt
Copy link
Owner

tmplt commented Dec 12, 2020

Because we cannot seem to have proper enum fields in a message we have to resolve enum symbols ourself. This is trivial and done in the spoofing node. But if I run

$ ./lcm-debug-spoof-message.py IO_ENCODER PLATFORM PORT_A 30 1000

I get

$ ./lcm-debug-print-all.py
18:18:18.844400: IO_ENCODER:
        brickpi = 1
        port    = 5
        ticks   = 30
        dt      = 1000

Can we somehow find the enum symbol names such that we instead get the below?

$ ./lcm-debug-print-all.py
18:18:18.844400: IO_ENCODER:
        brickpi = 1 (PLATFORM)
        port    = 5 (PORT_A)
        ticks   = 30
        dt      = 1000
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant