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

micro_ros_agent px4 topics are not visible #165

Open
maltinho8 opened this issue Nov 1, 2022 · 2 comments
Open

micro_ros_agent px4 topics are not visible #165

maltinho8 opened this issue Nov 1, 2022 · 2 comments

Comments

@maltinho8
Copy link

I want to list all the published topics with the command "ros2 topic list" - but only 2 (default) topics are showing up:

topics

Connection is also there:

connection

I already tried to clean all the builds, got the newest version of the repository, etc.
Also did the ros2 daemon stop/start - no success.

Any tips for this problem?

@JohnTGZ
Copy link

JohnTGZ commented Nov 8, 2022

Are you able to check if it works with the ROS_DOMAIN_ID environment variable set to 0 consistently across your environment?

@stevehenderson
Copy link

I also had this issue and the fix was as @JohnTGZ suggested: Ensure you issue a export ROS_DOMAIN_ID=0 in all terminal windows:

  • The terminal window where you launch Gazebo
  • The terminal window where you run the micro_ros_agent
  • The terminal where you run the ros2 topic list command
  • ....any other windows running ROS2 nodes)

I'm also passing the ROS_DOMAIN_ID to the micro_ros_agent:

ros2 run micro_ros_agent micro_ros_agent udp4 --port 8888 ROS_DOMAIN_ID=0

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

3 participants