ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Turtlesim Node not showing

asked 2022-09-25 17:42:46 -0600

PointCloud gravatar image

Hi people! Hey I was following along the ROS2 tutorials (I have some ROS1 experience, just a little though) and found that the darn turtlesim is not creating a node. Neither are any of them services showing. However when looking with rqt, I can make service calls, as I can select them in the drop-down.

Further rqt_graph does show the node.

I have searched the forum and seems I'm not the first one to encounter this problem. However, none of the other posts did receive any replies. So hopefully this will get some attention, as it makes it hard for newbeis to follow the tutorials and it doesn't line-up.

Just to be clear, I did source the setup.bash (using born again sh) in every terminal. ALso i did attach a screenshot, so you know I'm not insane (my psychiatrist insists I'm fine. Both of them!!)

ros2 (humble) on Ubuntu 22.04

image description Thaaanks :-)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-09-25 18:03:06 -0600

PointCloud gravatar image

For anyone else trying to troubleshoot this issue when following along the tutorials. Please make sure that you set you ROS_DOMAIN properly. As in the first few sections of the tutorials ROS_DOMAIN is mentioned to default to "0". So if any nodes, services, params, etc don't show up as expected, ensure you are in deed using the right ROS_DOMAIN.

One easy way is adding "export ROS_DOMAIN=0" to your ~/.bashrc at the bottom. Alternatively to editing the file, you can also just execute the following line in the terminal:

echo "export ROS_DOMAIN_ID=0" >> ~/.bashrc

Do one or the other, it won't hurt doing both but it would be silly :-) Hope this helps someone

edit flag offensive delete link more

Comments

Hello! Unfortunately, this didn't solve it for me. When I run ros2 run turtlesim turtlesim_node and then ros2 run turtlesim turtle_teleop_key and finally ros2 node list, the only node that gets listed is /teleop_turtle. I can't get the /turtlesim node to get listed, and this problem persists into params and services too.

The turtle in the popup window still responds to my key commands anyways, even though the \turtlesim node doesn't appear. Any ideas?

Rakmo97 gravatar image Rakmo97  ( 2023-08-08 14:38:55 -0600 )edit

Apologies! Turns out restarting my computer solved the issue. Leaving all these comments here in case someone else runs into the same issues as me :)

Rakmo97 gravatar image Rakmo97  ( 2023-08-08 14:45:24 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2022-09-25 17:42:46 -0600

Seen: 1,275 times

Last updated: Sep 25 '22