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

Error trying to plot multi array in ros2 #64

Closed
mcevoyandy opened this issue Mar 20, 2020 · 2 comments
Closed

Error trying to plot multi array in ros2 #64

mcevoyandy opened this issue Mar 20, 2020 · 2 comments
Assignees
Labels

Comments

@mcevoyandy
Copy link

When I try to plot a Float64 multi array I get the following error:

[ERROR] [get_message_class]: Malformed message_type: sequence<double>
Traceback (most recent call last):
  File "/opt/ros/dashing/lib/python3.6/site-packages/rqt_plot/plot_widget.py", line 259, in on_topic_edit_textChanged
    plottable, message = is_plottable(self._node, topic_name)
  File "/opt/ros/dashing/lib/python3.6/site-packages/rqt_plot/plot_widget.py", line 154, in is_plottable
    fields, message = get_plot_fields(node, topic_name)
  File "/opt/ros/dashing/lib/python3.6/site-packages/rqt_plot/plot_widget.py", line 137, in get_plot_fields
    for slot, slot_type in field_class.get_fields_and_field_types().items():
AttributeError: 'NoneType' object has no attribute 'get_fields_and_field_types'

I'm using dashing and trying to add the values as topic/data[0]

the echo of the topic is:

layout:
  dim:
  - label: a
    size: 6
    stride: 1
  data_offset: 0
data: [0.0, 0.9924335590913128, 0.22426324056320937, -0.9525528340078406, -0.36382767049387277, 0.9149277755179431]
@dirk-thomas dirk-thomas transferred this issue from ros-visualization/rqt Jun 12, 2020
@dirk-thomas dirk-thomas transferred this issue from ros-visualization/rqt_topic Jun 13, 2020
@briansoe66
Copy link

There is an open PR for this, any updates?

@ivanpauno ivanpauno self-assigned this Mar 4, 2021
@ivanpauno ivanpauno added the bug label Mar 4, 2021
@clalancette
Copy link
Contributor

This looks like it was fixed in #71 , so closing this out. Feel free to reopen if I'm mistaken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants