Open canberkgurel opened 2 years ago
If you need me to run any experiments, let me know!
Hi, has there been any update?
@emileakbarzadeh No, I still experience the same problem. Every once in a while (about 30 % of the time) mavros topics stop publishing when I try to take off using the SetMode service proxy.
Issue details
I'm using the mavros/set_mode ROS service to set the mode of the drone. This is how I'm using it:
In init
In set_mode function:
This is what is printed in the terminal. After this mavros freezes up, for example, nothing is published over mavros/local_position/pose topic.
If we compare with the print statements in the function, the next line of code after the last is:
For some reason not known to me, mavros SetMode service proxy is causing mavros to freeze up. All of the data traffic freezes, the drone doesn't switch to OFFBOARD, it doesn't ARM, it stops responding to all commands. However, the weird part is it only happens occasionally, i.e., if I restart the PX4-SITL simulation, and reattempt to set mode, the drone sometimes switches to the OFFBOARD mode, arms, and takes off successfully. Before you ask, Yes, I'm publishing setpoints to the drone at ~20 Hz. For the sake of completeness, when everything works, this is what I see in the terminal output.
MAVROS version and platform
Mavros: HEAD detached at 1.5.2 - I have some modifications in mavros/launch/px4_config.yaml, if this is relevant, let me know and I'll upload it. ROS: Melodic Ubuntu: 18.04.6 LTS
Autopilot type and version
[ ] ArduPilot [x ] PX4
Version: HEAD detached at v1.11.3
Node logs
Diagnostics
Check ID