Mavros: Mavros 1.2 无法正常工作 紧急

创建于 2020-06-02  ·  2评论  ·  资料来源: mavlink/mavros


问题详情

我正在与 docker 合作,我正在使用 ros-melodic-mavros 和 ros-melodic-mavros-extras 来控制 PX4 iris 无人机。 在 1.1 版本中,它工作得很好。 我正在使用 Positiontarget 控制无人机到主题:'/iris_{}/mavros/setpoint_raw/local 但在 1.2 中没有任何反应。 无法从 apt-get 获取以前的版本(为什么?)

MAVROS 版本和平台

马夫罗斯:1.2
ROS:旋律
Ubuntu:18.04
码头工人:19.03.11
凉亭 : 9

自动驾驶仪类型和版本

[ ] ArduPilot
[×] PX4

版本:1.10

诊断

header: 
  seq: 889
  stamp: 
    secs: 1345
    nsecs: 601000000
  frame_id: ''
status: 
  - 
    level: 0
    name: "iris_1/mavros: FCU connection"
    message: "connected"
    hardware_id: "udp://:14541<strong i="20">@localhost</strong>:14581"
    values: 
      - 
        key: "Received packets:"
        value: "27630"
      - 
        key: "Dropped packets:"
        value: "0"
      - 
        key: "Buffer overruns:"
        value: "0"
      - 
        key: "Parse errors:"
        value: "0"
      - 
        key: "Rx sequence number:"
        value: "238"
      - 
        key: "Tx sequence number:"
        value: "0"
      - 
        key: "Rx total bytes:"
        value: "24864594"
      - 
        key: "Tx total bytes:"
        value: "735053"
      - 
        key: "Rx speed:"
        value: "24529.000000"
      - 
        key: "Tx speed:"
        value: "742.000000"
  - 
    level: 0
    name: "iris_1/mavros: GPS"
    message: "3D fix"
    hardware_id: "udp://:14541<strong i="21">@localhost</strong>:14581"
    values: 
      - 
        key: "Satellites visible"
        value: "10"
      - 
        key: "Fix type"
        value: "3"
      - 
        key: "EPH (m)"
        value: "0.00"
      - 
        key: "EPV (m)"
        value: "0.00"
  - 
    level: 0
    name: "iris_1/mavros: Heartbeat"
    message: "Normal"
    hardware_id: "udp://:14541<strong i="22">@localhost</strong>:14581"
    values: 
      - 
        key: "Heartbeats since startup"
        value: "1016"
      - 
        key: "Frequency (Hz)"
        value: "0.951928"
      - 
        key: "Vehicle type"
        value: "Quadrotor"
      - 
        key: "Autopilot type"
        value: "PX4 Autopilot"
      - 
        key: "Mode"
        value: "OFFBOARD"
      - 
        key: "System status"
        value: "Active"
  - 
    level: 2
    name: "iris_1/mavros: System"
    message: "Sensor health"
    hardware_id: "udp://:14541<strong i="23">@localhost</strong>:14581"
    values: 
      - 
        key: "Sensor present"
        value: "0x1020002F"
      - 
        key: "Sensor enabled"
        value: "0x1021000F"
      - 
        key: "Sensor health"
        value: "0x1020002F"
      - 
        key: "3D gyro"
        value: "Ok"
      - 
        key: "3D accelerometer"
        value: "Ok"
      - 
        key: "3D magnetometer"
        value: "Ok"
      - 
        key: "absolute pressure"
        value: "Ok"
      - 
        key: "rc receiver"
        value: "Fail"
      - 
        key: "AHRS subsystem health"
        value: "Ok"
      - 
        key: "CPU Load (%)"
        value: "0.0"
      - 
        key: "Drop rate (%)"
        value: "0.0"
      - 
        key: "Errors comm"
        value: "0"
      - 
        key: "Errors count #1"
        value: "0"
      - 
        key: "Errors count #2"
        value: "0"
      - 
        key: "Errors count #3"
        value: "0"
      - 
        key: "Errors count #4"
        value: "0"
  - 
    level: 0
    name: "iris_1/mavros: Battery"
    message: "Normal"
    hardware_id: "udp://:14541<strong i="24">@localhost</strong>:14581"
    values: 
      - 
        key: "Voltage"
        value: "11.32"
      - 
        key: "Current"
        value: "-1.0"
      - 
        key: "Remaining"
        value: "51.0"
  - 
    level: 0
    name: "iris_1/mavros: Time Sync"
    message: "Normal"
    hardware_id: "udp://:14541<strong i="25">@localhost</strong>:14581"
    values: 
      - 
        key: "Timesyncs since startup"
        value: "10168"
      - 
        key: "Frequency (Hz)"
        value: "9.995240"
      - 
        key: "Last RTT (ms)"
        value: "0.000000"
      - 
        key: "Mean RTT (ms)"
        value: "0.117328"
      - 
        key: "Last remote time (s)"
        value: "1016.949000000"
      - 
        key: "Estimated time offset (s)"
        value: "328.622159175"
---

查身份证

WARNING: mavros/target_system_id not set. Used default value: 1
WARNING: mavros/target_component_id not set. Used default value: 1
NOTE: Target parameters may be unset, but that may be result of incorrect --mavros-ns option.Double check results!
ERROR. I got 0 addresses, but not your target 1:1

---
Received 0 messages, from 0 addresses
sys:comp   list of messages

检查单个无人机命名空间的 ID

rosrun mavros checkid --mavros-ns iris_1/mavros

ERROR. I got 0 addresses, but not your target 2:1

---
Received 0 messages, from 0 addresses
sys:comp   list of messages

点正在发布(使用 rostopic echo 检查),但无人机根本没有移动。

所有2条评论

我有同样的问题。 我的代码在 1.1.0 中工作,在被迫升级到 1.2.0 后一切都坏了。 现在我的无人机由于一些奇怪的原因在它的陀螺仪上出现了问题。

您可以检出 1.1.0 并从源代码构建它。 但我认为还有其他原因,因为 setpoint_raw 多年来保持不变。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

RR2-IP2 picture RR2-IP2  ·  4评论

lucaspenna00 picture lucaspenna00  ·  7评论

TSC21 picture TSC21  ·  12评论

L4ncelot picture L4ncelot  ·  5评论

zhahaoyu picture zhahaoyu  ·  12评论