px4_ros_com
px4_ros_com copied to clipboard
micro_ros_agent px4 topics are not visible
I want to list all the published topics with the command "ros2 topic list" - but only 2 (default) topics are showing up:
Connection is also there:
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?
Are you able to check if it works with the ROS_DOMAIN_ID environment variable set to 0 consistently across your environment?
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