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

/tf suddenly missing

asked 2022-03-27 03:53:45 -0500

Kevin1719 gravatar image

Hi, I'm using a robot run with Raspberry Pi 3, and I'm controlling it from my computer using ROS_MASTER_URI. As usual, after loading my robot_description parameter and run robot_state_publisher node, I can view my robot in Rviz from /tf, but suddenly, when I re-run the process, Rviz said "no tf data", although the topic /tf still exist and there still have the robot_description parameter. What could be the problem? I have struggled with this for days.

edit retag flag offensive close merge delete

Comments

Did you restart the ros-master (roscore)? All ros nodes must be restarted if the ros-master restarts, including rviz.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-03-27 08:50:50 -0500 )edit

Thanks Mike for your reply, good to see you. I figured out the problem and will post the answer.

Kevin1719 gravatar image Kevin1719  ( 2022-03-27 09:58:19 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-03-27 10:01:27 -0500

Kevin1719 gravatar image

After a while, I found the solution. When I echo the /tf topic in my computer's terminal, nothing is displayed, but when I did that in the Pi3's terminal, those data appeared. Then I think it may be the connection problem. I realized that there were many devices using the Wifi, so I turn off some of them and restart the machine, then everything back to normal.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-03-27 03:53:45 -0500

Seen: 145 times

Last updated: Mar 27 '22