ros2中ros_gz_bridge/gazebo安装的注意事项

 这个搞错了:这个是安装ros_gz_bridge的,不是安装gazebo的

AT:如果是安装的Harmonic,在安装ros_gz_bridge的时候要从源码编译

 ros2完整版里面好像已经包含了gazebo的一个版本

 包名应该就是叫ros-humble-ros-ign-gazebo

 所以gazebo是作为一个普通的apt包安装的,不是作为ros2的包安装的

Install From source(推荐安装Fortress版本,好像很方便

ROS

Be sure you've installed ROS Humble (at least ROS-Base). More ROS dependencies will be installed below.

Gazebo

Install either Edifice, Fortress, or Garden.(没有harmonic,我觉得最好还是使用Fortress版本好了,因为我安装了一个Harmonic版本出现了异常说是某个库找不到什么的)

Set the GZ_VERSION environment variable to the Gazebo version you'd like to compile against. For example:

export GZ_VERSION=edifice # IMPORTANT: Replace with correct version

You only need to set this variable when compiling, not when running.

Compile ros_gz

The following steps are for Linux and OSX.

  1. Create a colcon workspace:

    # Setup the workspace
    mkdir -p ~/ws/src
    cd ~/ws/src
    
    # Download needed software
    git clone https://github.com/gazebosim/ros_gz.git -b humble
    
  2. Install dependencies (this may also install Gazebo):

    cd ~/ws
    rosdep install -r --from-paths src -i -y --rosdistro humble
    

    If rosdep fails to install Gazebo libraries and you have not installed them before, please follow Gazebo installation instructions.

  3. Build the workspace:

    # Source ROS distro's setup.bash
    source /opt/ros/<distro>/setup.bash
    
    # Build and install into workspace
    cd ~/ws
    colcon build
    

    If colcon build fails with this issue

    CMake Error at CMakeLists.txt:81 (find_package):
      By not providing "Findactuator_msgs.cmake" in CMAKE_MODULE_PATH this
      project has asked CMake to find a package configuration file provided by
      "actuator_msgs", but CMake did not find one.
    
    cd src
    git clone git@github.com:rudislabs/actuator_msgs.git
    cd ../
    colcon build

相关推荐

  1. ros1转ros2注意事项

    2023-12-27 07:48:03       24 阅读
  2. mysql使用IN注意事项

    2023-12-27 07:48:03       60 阅读
  3. Linux之Vmware安装Ubuntu注意事项

    2023-12-27 07:48:03       37 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-27 07:48:03       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-27 07:48:03       106 阅读
  3. 在Django里面运行非项目文件

    2023-12-27 07:48:03       87 阅读
  4. Python语言-面向对象

    2023-12-27 07:48:03       96 阅读

热门阅读

  1. DshanMCU-R128s2硬件设计参考

    2023-12-27 07:48:03       56 阅读
  2. SpringBoot3 整合Redis

    2023-12-27 07:48:03       49 阅读
  3. vue3中安装并使用CSS预处理器Sass的方法介绍

    2023-12-27 07:48:03       62 阅读
  4. Redis Stream消息队列之基本语法与使用方式

    2023-12-27 07:48:03       39 阅读
  5. [oracle数据库]dblink的使用

    2023-12-27 07:48:03       63 阅读
  6. 如何将自建的ElasticSearch注册成一个服务

    2023-12-27 07:48:03       59 阅读
  7. codeforces 1676F

    2023-12-27 07:48:03       65 阅读
  8. latexshop 使用bug:xxx has a comma at the end

    2023-12-27 07:48:03       56 阅读
  9. c++ qt QtWidgetsApplication 项目 使用外部ui

    2023-12-27 07:48:03       61 阅读
  10. GO基础进阶篇 (八)、runtime包

    2023-12-27 07:48:03       67 阅读
  11. k8s解决 搭建集群的时候notReady问题

    2023-12-27 07:48:03       62 阅读
  12. 【Go语言入门:Go程序的流程控制语句】

    2023-12-27 07:48:03       50 阅读
  13. client-go使用方法

    2023-12-27 07:48:03       61 阅读