2022年-基于ubuntu16.04系统-在gazebo环境下-安装hector_quadrotor

(本文用anaconda创建基于python2的虚拟环境,在其中完成所有工作)
在这里插入图片描述

1、 参考

玩转四旋翼无人机(仿真)(ROS)hector_quadrotor 的编译运行

2、 随后遇到编译的问题

参考https://blog.csdn.net/xiaodingqq/article/details/87083510
sudo apt-get install ros-kinetic-***安装即可解决

3、其次是版本的问题

注意所有版本都要协调一致,采用kinetic版本的,困难一点的是要找到合适版本的hector_gazebo,尤其是这个hector_gazebo如下:
https://github.com/tu-darmstadt-ros-pkg/hector_gazebo/tree/add_zero_pos_hold_kinetic

4、 编译后遇到问题

xacro: Traditional processing is deprecated. Switch to --inorder processing!
To check for compatibility of your document, use option --check-order.
For more infos, see http://wiki.ros.org/xacro#Processing_Order
resource not found: hector_sensors_description
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/fyo/auv_ws/src
ROS path [2]=/opt/ros/kinetic/share None

when processing file: /home/fyo/auv_ws/src/hector_quadrotor-kinetic-devel/hector_quadrotor_description/urdf/quadrotor_base.urdf.xacro
included from: /home/fyo/auv_ws/src/hector_quadrotor-kinetic-devel/hector_quadrotor_description/urdf/quadrotor_hokuyo_utm30lx.urdf.xacro
included from: /home/fyo/auv_ws/src/hector_quadrotor-kinetic-devel/hector_quadrotor_description/urdf/quadrotor_hokuyo_utm30lx.gazebo.xacro
while processing /home/fyo/auv_ws/src/hector_quadrotor-kinetic-devel/hector_quadrotor_gazebo/launch/spawn_quadrotor.launch:
Invalid <param> tag: Cannot load command parameter [robot_description]: command [/opt/ros/kinetic/lib/xacro/xacro '/home/fyo/auv_ws/src/hector_quadrotor-kinetic-devel/hector_quadrotor_description/urdf/quadrotor_hokuyo_utm30lx.gazebo.xacro' base_link_frame:=/base_link world_frame:=world] returned with code [2]. 

Param xml is <param command="$(find xacro)/xacro '$(arg model)' base_link_frame:=$(arg base_link_frame) world_frame:=$(arg world_frame)" name="robot_description"/>
The traceback for the exception was written to the log file

解决办法仍然是一顿sudo apt-get install ros-kinetic-***安装,此时要安装的东西即是sudo apt-get install ros-kinetic-hector-sensors-description,注意上方报错中的下划线在此处发生了更换。

后面仍然不知名报错,于是我根据https://github.com/tu-darmstadt-ros-pkg/hector_quadrotor/issues/60

先安装

sudo apt-get install synaptic

打开synaptic进行查看

sudo synaptic

在这里插入图片描述
把看起来需要的东西统统用sudo apt-get install ros-kinetic-***安装一遍

5、 运行程序和结果

(再次说明,本文用anaconda创建基于python2的虚拟环境,在其中完成所有工作)

打开室外环境

source activate py27
cd ~/auv_ws
source devel/setup.bash
roslaunch hector_quadrotor_demo outdoor_flight_gazebo.launch

xbox手柄控制

source activate py27
cd ~/auv_ws
source devel/setup.bash
roslaunch hector_quadrotor_teleop xbox_controller.launch

gazebo中订阅图像功能
在这里插入图片描述

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
clang llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz是一个编译器工具集合的压缩文件。这个工具集合由Clang和LLVM组成,适用于在Linux系统上进行编译和开发。此处压缩文件的扩展名为.tar.xz,表明它使用tar命令进行打包,并使用xz算法进行压缩。它提供了x86_64架构的二进制文件,可以在基于Ubuntu 16.04的Linux操作系统上运行。 Clang是一个开源的C语言家族编译器,支持C、C++、Objective-C和Objective-C++等语言,它以其高度模块化的设计、优秀的诊断功能和快速的编译速度而闻名。LLVM是一个低级虚拟机( Low Level Virtual Machine)工具链,提供了C、C++等语言的编译器基础设施,如编译器前端、汇编器、优化器和链接器等。Clang和LLVM通常一起使用,可以为开发者提供强大而高效的编译工具。 这个压缩文件适用于Ubuntu 16.04操作系统,其x86_64架构表示支持64位的x86计算机。当我们解压缩这个文件时,可以得到Clang和LLVM的执行文件,可以通过命令行或其他集成开发环境进行调用和使用。它可以用于编译C、C++、Objective-C和Objective-C++等语言的源代码,并生成可执行文件或库。这个工具集合还提供了各种调试和优化选项,以及丰富的编程接口,使开发者能够更好地进行代码的分析和优化。 总而言之,clang llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz是一个包含Clang和LLVM工具集的压缩文件,用于在Ubuntu 16.04操作系统上进行C、C++、Objective-C和Objective-C++等语言的编译和开发。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值