question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nodes missing from `ros2 node list` after relaunch

See original GitHub issue

Bug report

Required Info:

  • Operating System:
    • Ubuntu 20.04
  • Installation type:
    • Foxy binaries
  • Version or commit hash:
    • ros-foxy-navigation2 0.4.5-1focal.20201210.084248
  • DDS implementation:
    • Fast-RTPS (default)
  • Client library (if applicable):
    • n/a

Steps to reproduce issue

1

From the workspace root, launch (e.g.) a TurtleBot3 simulation:

export TURTLEBOT3_MODEL=burger
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:$(pwd)/src/turtlebot3/turtlebot3_simulations/turtlebot3_gazebo/models
ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py

Then, in a second terminal, launch the navigation:

export TURTLEBOT3_MODEL=burger
ros2 launch turtlebot3_navigation2 navigation2.launch.py use_sim_time:=true

Print the node list:

ros2 node list

Close (ctrl-c) the navigation and the simulation.

2

Relaunch from the same respective terminals, the simulation:

ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py

and the navigation:

ros2 launch turtlebot3_navigation2 navigation2.launch.py use_sim_time:=true

Print the node list again (2nd time):

ros2 node list

Close (ctrl-c) the navigation and the simulation. Stop the ros2 daemon:

ros2 daemon stop
3

Relaunch from the same respective terminals, the simulation:

ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py

and the navigation:

ros2 launch turtlebot3_navigation2 navigation2.launch.py use_sim_time:=true

Print the node list again (3rd time):

ros2 node list

Expected behavior

The node list should be the same all three times (up to some hash in the /transform_listener_impl_... nodes).

Actual behavior

The second time, the following nodes are missing (the remainder is practically the same):

/controller_server
/controller_server_rclcpp_node
/global_costmap/global_costmap
/global_costmap/global_costmap_rclcpp_node
/global_costmap_client
/local_costmap/local_costmap
/local_costmap/local_costmap_rclcpp_node
/local_costmap_client
/planner_server
/planner_server_rclcpp_node

The third time, after stopping the daemon, it works as expected again.

Note, that everything else works fine and in case of the above navigation use case, the nodes are fully functional.

Additional information

This issue was raised here: ros-planning/navigation2#2145.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:28 (6 by maintainers)

github_iconTop GitHub Comments

10reactions
v-lopezcommented, Feb 10, 2021

I’m seeing something similar with gazebo + ros2_control as well.

The interesting thing is that if I do: ros2 node list I get 0 nodes.

If I do ros2 node list --no-daemon I get the list of nodes.

Restarting the daemon with ros2 daemon stop; ros2 daemon start also shows all nodes.

3reactions
iuhilnehc-ynoscommented, Dec 2, 2022

I hope you guys can reproduce this issue on your machine, otherwise, nobody can help confirm even if I have a workaround patch 😄 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

ros2 topic empty with fastdds discovery server - ROS Answers
Hello, I followed this tutorial to set up a discovery server for ros2. The talker and listener examples all worked fine. However, when...
Read more >
ros2 run and ros2 node - Start and Introspect your ROS2 Nodes
ros2 node list will give you the list of all the nodes you've launched in the same graph/network. Great, we can see the...
Read more >
Fail to use ros2 node list to see the node run in ... - MathWorks
I set the ROS_DOMAIN_ID = 1 in both machine. Then I use ros2 node list to see the node run in ubuntu machine~....
Read more >
Where is roscore in ROS2? - The Construct
The command above “finds existing nodes, including hidden ones”. In ROS1, roscore , which was a single node, used to rule this space....
Read more >
The ROS Command Line Interface - Programming Multiple ...
Positional arguments are the words and values that come after ros2 and the ... a node list Output a list of available nodes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found