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.

Can't read "/tf" when used ROS 1 connection

See original GitHub issue

Description When I used the ROS1 connection, the 3D panel can’t display anything. And the “Topics” list is normal, but the “TF” list is empty. And I found the “Connection” panel shows this information:

Error: Subscribing to /tf_static at http://LAPTOP-188K0BM3:43911/ failed (Error: requestTopic(“/tf_static”) from http://LAPTOP-188K0BM3:43911/ failed. err=TypeError: Failed to fetch), this connection will be dropped at x._subscribeToPublisher (file:///C:/Users/14535/AppData/Local/Programs/foxglove-studio/resources/app.asar/renderer/main.js:5:77173) at async file:///C:/Users/14535/AppData/Local/Programs/foxglove-studio/resources/app.asar/renderer/main.js:5:76335

  • Version: 0.20.1
  • OS: Windows 10

Steps To Reproduce

Expected Behavior

Actual Behavior

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
defunctzombiecommented, Nov 10, 2021

We definitely rely on the “non-compliant” behavior of ros_comm for the publisher to send the message_definition. Without the message definition, we have no way to know how to deserialize the message. But I don’t think thats the problem described above.

The error above I am almost certain relates to misconfigured ROS_HOSTNAME between the computer running studio and the computer running ROS. The error message is somewhat misleading (or lacking full information) but likely the hostname of AGV_MCU is not resolvable from the computer running studio.

@jhurliman Ideas on what we can do to attempt detecting this and maybe presenting error text or message that is more obvious? Maybe one that links to our connection docs (https://foxglove.dev/docs/connection/native) or the ROS Network setup docs (http://wiki.ros.org/ROS/NetworkSetup) /cc @esthersweon

0reactions
defunctzombiecommented, Dec 3, 2021

My hypothesis is that the original error is due to hostname resolution when using ROS and studio across machines. There’s some useful info on the ROS network wiki page (http://wiki.ros.org/ROS/NetworkSetup). And I believe we’ve recently made some enhancements to the error messages when these name resolution issues happen (https://github.com/foxglove/studio/pull/2224) (will be in the next release).

Closing this. @iceuw if you believe the above comments are incorrect or need further help debugging feel free to re-open with more notes on steps to reproduce or hop in our slack and we can try debugging realtime.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tf/Troubleshooting
Debugging a problem with tf can be very tricky. Many tf related problems are caused by users asking tf the wrong questions.
Read more >
TF ROS - Full Course for Beginners - YouTube
How to use TF in ROS ? This course will center on hands-on experience, making you able to:* Publish & Subscribe to TF...
Read more >
ROS2 Wrapper for Intel® RealSense™ Devices
When using D435 or D415, the gyro and accel topics wont be available. Likewise, other topics will be available when using T265 (see...
Read more >
Getting Python error "from: can't read /var/mail/Bio"
Solution was to first enter in the Python shell with the command python and when you get these >>> then run any Python...
Read more >
RVIZ2 Tutorials Episode1: Learn TF
... How to connect to a real robot through our robot lab; Start the ros1 bridge to be able to see TF data...
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