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.

[bug] ROS2 status always showing Offline

See original GitHub issue

(Please add appropriate labels)

  • Windows: (Version)

  • Linux: (Ubuntu 20.04)

  • ROS 1: Dist

  • ROS 2: foxy

  • Version of the plugin: v0.8.2

what is the bug

Even when the ROS2 daemon is running, the status is “Offline”. image

Alternative bug

Also, I’m not able to launch anything. It times out waiting for the ROS daemon to start: image

Repro steps

<how to reproduce the bug. Please attach sample files or github repo if appropriate.>

  1. Installed ROS2 foxy from binaries (as indicated in the ROS2 foxy installation tutorial, https://docs.ros.org/en/foxy/Installation/Ubuntu-Install-Debians.html)
  2. Installed the vscode-ros plugging (Last updated: 2/26/2022, 23:12:23)
  3. Start the ROS2 daemon from the Cmd Pallete in VS Code (“ROS: Start”)
  4. Run the “ROS: Show Status” and expect to see the status page pop up as “Offline” (as shown in the screenshot)
  5. However, the rus2 daemon status from the Terminal shows it’s “running” (as shown in the screenshot)

expected behavior

I would expect to see the proper status and list of topics in the page

additional context

<any additional information would be helpful for a better understanding>

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Lakmuslukcommented, Sep 1, 2022

I had the exact same behavior. My problem was that I set the ROS_DOMAIN_ID to a different value in my .bashrc file. Switching back to the default value made VSCode discover my ROS daemon.

Maybe this helps to dig deeper into the issue.

1reaction
ubuntuslavecommented, Jun 10, 2022

Update: If I build the extension from source (version v0.8.3), it works as expected

Read more comments on GitHub >

github_iconTop Results From Across the Web

USING ros2 offline (ROS_LOCALHOST_ONLY=1)
Hi, I'm trying to do a demo of mapping a large building with ROS2 Foxy, Slam Toolbox and a Rover Pro. I'm starting...
Read more >
[feature] Request for more user-friendly instruction #399 - GitHub
If you just open VS Code and look at the core status it'll say its offline but if you run the Start Core...
Read more >
ROS and ROS2 Navigation Stacks: A performance review
Working as a robotics consultant, I am often asked about what's new with ROS2 navigation stack or if it is the right time...
Read more >
THE ROBOT OPERATING SYSTEM IN TRANSITION
The poor publication rate of ROS2 — specifically the error term associated with sampling the 100 Hz sinusoid, as compared to ROS1 —...
Read more >
Offline Speech Recognition on Raspberry Pi 4 with Respeaker
The first one ran successfully, but only supported Python 2… A closer look at snowboy Github repo shows that it is probably not...
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