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

rostopic: list --host raises ValueError #1758

Closed
kakkoko opened this issue Jul 14, 2019 · 2 comments · Fixed by #1780
Closed

rostopic: list --host raises ValueError #1758

kakkoko opened this issue Jul 14, 2019 · 2 comments · Fixed by #1780
Labels

Comments

@kakkoko
Copy link

kakkoko commented Jul 14, 2019

Steps to reproduce:

  1. Execute roscore on a terminal
  2. Execute rostopic list --host on another terminal

Expected:

Host [vboxres]:
  /rosout
  /rosout_agg

Actual:

Host [vboxros]:
Traceback (most recent call last):
  File "/opt/ros/melodic/bin/rostopic", line 35, in <module>
    rostopic.rostopicmain()
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rostopic/__init__.py", line 2119, in rostopicmain
    _rostopic_cmd_list(argv)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rostopic/__init__.py", line 2059, in _rostopic_cmd_list
    exitval = _rostopic_list(topic, verbose=options.verbose, subscribers_only=options.subscribers, publishers_only=options.publishers, group_by_host=options.hostname) or 0
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rostopic/__init__.py", line 1242, in _rostopic_list
    verbose, indent='  ')
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rostopic/__init__.py", line 1150, in _sub_rostopic_list
    topics = list(set([t for t, _, _ in pubs] + [t for t, _, _ in subs]))                
ValueError: need more than 2 values to unpack

Note rostopic list worked as expected:

$ rostopic list
/rosout
/rosout_agg

Environment:

@artivis
Copy link
Contributor

artivis commented Aug 1, 2019

I can confirm the issue.
Ubuntu 18.04
rostopic 1.14.3

@danielwangksu
Copy link
Contributor

the same, confirm the issue
Ubuntu 18.04
rostopic 1.14.3

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

Successfully merging a pull request may close this issue.

4 participants