You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run connect MAVROS to the ArduPilot's SITL from inside a Docker container (see attached for Dockerfile). APM runs without any problems inside the container. However, when I launch MAVROS, I observe a recurring error in the node logs, and the MAVROS consumes all available CPU resources.
Interestingly, CPU usage also appears to be fairly high when only roscore is running.
root@9d820d31bf83:/ros_ws# rosrun mavros checkid
OK. I got messages from 1:1.
---
Received 171 messages, from 1 addresses
sys:comp list of messages
1:1 0, 253, 111
Do you use prebuilt packages or from source?
Because roscore also eats CPU, i think that most likely problem in roscpp.
And yes, bug in node::spin may result in high CPU usage.
Can you try older distribution? Mavros shoud still work on Indigo (i don't recommend to use it, but it help with understanding).
Issue details
I'm trying to run connect MAVROS to the ArduPilot's SITL from inside a Docker container (see attached for
Dockerfile
). APM runs without any problems inside the container. However, when I launch MAVROS, I observe a recurring error in the node logs, and the MAVROS consumes all available CPU resources.Interestingly, CPU usage also appears to be fairly high when only
roscore
is running.MAVROS version and platform
MAVROS: 0.29.0
ROS: Kinetic / Lunar (occurs on both)
Container OS: Ubuntu 16.04 / 17.04
Host OS: Ubuntu 18.04 / Arch-2019.02.01 (same machine, different OS)
Machine: 14" Razer Blade, 2016. i7-6700HQ (4c/8t), 16GB DDR4, GTX 1060.
Autopilot type and version
[X] ArduPilot
[ ] PX4
Version: 3.6.4 (https://github.com/ArduPilot/ardupilot/releases/tag/Copter-3.6.4)
Node logs
Diagnostics
Check ID
Bug Reproduction
Using the provided Dockerfile:
The text was updated successfully, but these errors were encountered: