【问题标题】:ROS mavros build errorROS mavros 构建错误
【发布时间】:2018-08-07 23:02:42
【问题描述】:

硬件:树莓派 3

操作系统:Raspbian Stretch

ROS:动力学


当尝试将 mavros 添加到 pre-made image 时,我 rosdep 会引发错误。

按照source installation 的说明,我在行结束:

rosdep install --from-paths src --ignore-src -y

但得到错误:

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
image_geometry: No definition of [opencv3] for OS version [stretch]
mavros: No definition of [geographic_msgs] for OS version [stretch]
mavros_msgs: No definition of [geographic_msgs] for OS version [stretch]
mavros_extras: No definition of [tf] for OS version [stretch]
test_mavros: No definition of [control_toolbox] for OS version [stretch]
cv_bridge: No definition of [opencv3] for OS version [stretch]

因为我在 Raspbian Stretch 中,所以我改为使用命令:

rosdep install -y –from-paths src –ignore-src –rosdistro kinetic -r –os=debian:stretch

但得到错误:

ERROR: Rosdep cannot find all required resources to answer your query
Missing resource –from-paths
ROS path [0]=/home/pi/ros_catkin_ws/build/opt/ros/kinetic/share/ros
ROS path [1]=/home/pi/rosbots_catkin_ws/src
ROS path [2]=/home/pi/ros_catkin_ws/build/opt/ros/kinetic/share

我什至也尝试过this method,但是,我的树莓派上仍然没有mavros (kinetic)

【问题讨论】:

    标签: raspberry-pi ros mavlink


    【解决方案1】:

    我认为您不需要从源代码编译。

    为什么不使用 apt-get 安装?

    试试 sudo apt-get install ros-kinetic-mavros?

    【讨论】:

    • 我试过了。但是,它说类似E: ros-kinetic-mavros not found (我不记得了)
    • Raspian 似乎对 ROS 有很多问题 here's Their Issue On This 他们还建议从源代码编译所有内容而不仅仅是 Mavros
    猜你喜欢
    • 1970-01-01
    • 2019-05-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多