Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot see topics in Foxglove but can echo them inside Docker Container #2

Open
jhairssteven opened this issue Nov 20, 2024 · 3 comments

Comments

@jhairssteven
Copy link
Contributor

jhairssteven commented Nov 20, 2024

I am running the MCAP files inside the container and can see the topics being published by using ros2 bag play <filename>.mcap. In a separate terminal, I can monitor the topics' frequency with ros2 topic hz <topic_name> and echo them with ros2 topic hz <topic_name> so the messages are being published correctly inside the container.

While the rosbag is running, I am trying to visualize the topics in Foxglove Studio following the steps outlined in the documentation. The topic names appear in the left panel of Foxglove, but no messages are being received (see image below, next to the /livox/lidar topic frecuency and message count appears as "--"), it is the same behaviour with ALL other topics including /rosout and /tf_static.

image

It seems that my local host is not receiving the topic data from the Docker container.

System details:
Host OS: Ubuntu 22.04.3 LTS (jammy)
docker: 25.0.1
docker compose: v2.24.2

Any assistance would be greatly appreciated.

@garzonwilmer5
Copy link
Collaborator

Hi, You can open a rosbag directly from foxglove, you don't need to play the rosbag.

  1. Click the foxglove icon
    image

  2. choose a local file.

  3. enjoy!
    image

@jhairssteven
Copy link
Contributor Author

Hi @garzonwilmer5, thank you.

Yes, I have been doing that. However, in order to test the code for the other tasks I would need to see the new topics that are not present in the recorded bags. For instance, the fail_detection/fail node.

Currently I am testing using the CLI, but this is quite inefficient. I was wondering if someone has faced this issue before and ways to solve it, so I can use Foxglove.

@garzonwilmer5
Copy link
Collaborator

garzonwilmer5 commented Nov 21, 2024

Hi @jhairssteven, there was indeed an issue. In the last commit it was solved. Please pull the fix in your project.
You may need some custom layout to see correctly all the topics. We made it available for all of you, use it adding this parameter:
ros2 run rosboard rosboard_node --ros-args -p foxglove_uri:=https://foxglove.kiwibot.com

Study what we change, and you may obtain some extra points in the presentation 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants