Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.
This repository was archived by the owner on May 31, 2025. It is now read-only.

rostopic echo topic/field no longer works #908

@mikepurvis

Description

@mikepurvis

Looks like this might be more fallout from e0f6397:

$ rostopic echo /rosout/msg -n 1
Traceback (most recent call last):
  File "<ws>/lib/python2.7/dist-packages/rostopic/__init__.py", line 940, in callback
    self.suffix + '\n')
  File "<ws>/lib/python2.7/dist-packages/rostopic/__init__.py", line 876, in custom_strify_message
    val = value_transform(val)
  File "<ws>/lib/python2.7/dist-packages/rostopic/__init__.py", line 1393, in value_transform
    class TransformedMessage(genpy.Message):
  File "<ws>/lib/python2.7/dist-packages/rostopic/__init__.py", line 1396, in TransformedMessage
    __slots__ = val.__slots__[:]
AttributeError: 'str' object has no attribute '__slots__'

$ rostopic echo /rosout/topics -n 1
Traceback (most recent call last):
  File "<ws>/lib/python2.7/dist-packages/rostopic/__init__.py", line 940, in callback
    self.suffix + '\n')
  File "<ws>/lib/python2.7/dist-packages/rostopic/__init__.py", line 876, in custom_strify_message
    val = value_transform(val)
  File "<ws>/lib/python2.7/dist-packages/rostopic/__init__.py", line 1393, in value_transform
    class TransformedMessage(genpy.Message):
  File "<ws>/lib/python2.7/dist-packages/rostopic/__init__.py", line 1396, in TransformedMessage
    __slots__ = val.__slots__[:]
AttributeError: 'list' object has no attribute '__slots__'

@wkentaro @dirk-thomas Thoughts on a fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions