Skip to content

Unable to subscribe and plot to my custom LCM Message #39

@zulfiqar-zaidi

Description

@zulfiqar-zaidi

I am trying to use lcm-signal-scope to plot values from my custom LCM message. My LCM message has the following definition:

`struct my_message {
// The timestamp in microseconds.
int64_t utime;

// position
float q[23];

// velocity
float v[22];
}`

The name of the channel is "MY_MESSAGE". I wrote the following python script to plot the signal:

addSignal('MY_MESSAGE', msg.utime, msg.q[0])

I used the following command to run the signal scope:

$ build/bin/signal-scope examples/example9.py

I get the following error:
File "<string>", line 143, in decodeMessageFunction
KeyError: 'R\xff\xd3\tO\x1a\x9b\x1f'

Any suggestions to overcome this issue will be highly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions