Open yuan-0816 opened 1 month ago
Hi @yuan-0816, this does not seem to be a mavros-specific problem. It's worth investigating if you can ros2 topic pub
any topic on one machine and ros2 topic echo
the same on another.
Yes, I can publish the MAVROS topics by running ros2 launch flight_control flight_prepare.launch.py
. However, I cannot receive the topics on another computer. Interestingly, when I publish topics unrelated to MAVROS, the other computer can receive them over WiFi.
Issue details
I am using a Raspberry Pi 4 connected to an Ardupilot Pixhawk 6C, and I use MAVROS to start it. When I run ros2 topic list on the Raspberry Pi, I can see the topics being published. However, when I run ros2 topic list on another computer (OS is ubuntu 22.04) on the same WiFi network, I can't see the topics.
MAVROS version and platform
Mavros: 2.8.0 ROS: Humble Ubuntu: 22.04
Autopilot type and version
[ x ] ArduPilot [ ] PX4
Version: ArduCopter V4.5.3
Node logs
flight_prepare.launch.py
I can see topic on raspberry pi,
ros2 topic list
But I use the another computer can't see it,
ros2 topic list
I check the ROS_DOMAIN_ID before, the two computer's ROS_DOMAIN_ID=1