PX4 / px4_ros_com

ROS2/ROS interface with PX4 through a Fast-RTPS bridge
http://px4.io
BSD 3-Clause "New" or "Revised" License
143 stars 167 forks source link

micro_ros_agent px4 topics are not visible #165

Open maltinho8 opened 1 year ago

maltinho8 commented 1 year ago

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 commented 1 year ago

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

stevehenderson commented 1 year ago

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:

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