`ros2 node list -a` reports an extra node the first time it is run.

Aperta
#465 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@cottsay ci sta già lavorando.

Dal 2/4/2020.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Required Info:

  • Operating System:
    • Ubuntu Focal
  • Installation type:
    • source
  • Version or commit hash:
    • master
  • DDS implementation:
    • rmw_cyclonedds_cpp, rmw_fastrtps_cpp
  • Client library (if applicable):
    • N/A
Steps to reproduce issue
echo on
ros2 daemon stop; ros2 node list -a
ros2 node list --no-daemon; ros2 node list -a
ros2 daemon start; ros2 node list -a
Expected behavior

All invocations of ros2 node list show the same nodes.

The daemon has been stopped
/_ros2cli_daemon_0

/_ros2cli_daemon_0

The daemon is already running
/_ros2cli_daemon_0
Actual behavior
The daemon has been stopped
/_ros2cli_293393
/_ros2cli_daemon_0

/_ros2cli_daemon_0

The daemon is already running
/_ros2cli_daemon_0

If the daemon is stopped when you run ros2 node list -a, an additional node is shown, presumably one that is spun up to start the daemon. This node does not show up without the -a flag, nor with the --no-daemon flag.

Additional information

This may be related to CI failure of test_list_all_node_count at http://build.ros2.org/view/Fci/job/Fci__nightly-cyclonedds_ubuntu_focal_amd64/53/testReport/ros2node.test/test_cli/test_cli/

This is probably unrelated to any current CI test failures

Lingua principale
Python
Stelle
274
Fork
246
Merge medio
1g 14h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ros2/ros2cli

Tutte le issue di ros2/ros2cli

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.