概要
ROS(1および2)とGazeboシミュレーションの統合
科学・工学計測したスター増加
- 24時間
- -1
- 7日間
- +1
- 15日間
- +3
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル| ROS 2 version | Gazebo version | Branch | Binaries hosted at |
|---|---|---|---|
| Humble | Fortress | humble | https://packages.ros.org |
| Humble | Garden | humble | gazebo packages[^1] [^2] |
| Humble | Harmonic | humble | gazebo packages[^1] |
| Jazzy | Garden | ros2 | only from source [^2] |
| Jazzy | Harmonic | jazzy | https://packages.ros.org |
| Kilted | Ionic | kilted | https://packages.ros.org |
| Lyrical | Harmonic | ros2 | only from source |
| Lyrical | Ionic | ros2 | only from source |
| Lyrical | Jetty | ros2 | https://packages.ros.org |
| Rolling | Harmonic | ros2 | only from source |
| Rolling | Ionic | ros2 | only from source |
| Rolling | Jetty | ros2 | https://packages.ros.org |
[^1]: Binaries for these pairings are provided from the packages.osrfoundation.org repository. Refer to https://gazebosim.org/docs/latest/ros_installation for installation instructions. [^2]: Note that the Gazebo version on this row has reached end-of-life.
For information on ROS(1) and Gazebo compatibility, refer to the noetic branch README
Note: The ros_ign prefixed packages are shim packages that redirect to their ros_gz counterpart.
Under most circumstances you want to be using the ros_gz counterpart.
Integration between ROS and Gazebo
Packages
This repository holds packages that provide integration between ROS and Gazebo:
- ros_gz: Metapackage which provides all the other packages.
- ros_gz_image: Unidirectional transport bridge for images from Gazebo Transport to ROS using image_transport.
- ros_gz_bridge: Bidirectional transport bridge between Gazebo Transport and ROS.
- ros_gz_sim: Convenient launch files and executables for using Gazebo Sim with ROS.
- ros_gz_sim_demos: Demos using the ROS-Gazebo integration.
- ros_gz_point_cloud: Plugins for publishing point clouds to ROS from Gazebo Sim simulations.
Install
This branch supports ROS Rolling. See above for other ROS versions.
Binaries
Rolling binaries are available for Rotary. They are hosted at https://packages.ros.org.
Add https://packages.ros.org with the
ros2-apt-sourcepackage (see the ROS installation instructions):sudo apt-get update && sudo apt-get install -y curl export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}') curl -L -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo ${UBUNTU_CODENAME:-${VERSION_CODENAME}})_all.deb" sudo dpkg -i /tmp/ros2-apt-source.deb sudo apt-get updateInstall
ros_gzsudo apt install ros-rolling-ros-gz
From source
ROS
Be sure you've installed ROS Rolling (at least ROS-Base). More ROS dependencies will be installed below.
Gazebo
The version of Gazebo paired with Rolling will automatically be installed when running rosdep below.
Compile ros_gz
The following steps are for Linux and macOS.
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 ros2Install dependencies (this may also install Gazebo):
cd ~/ws rosdep install -r --from-paths src -i -y --rosdistro rollingIf
rosdepfails to install Gazebo libraries and you have not installed them before, please follow Gazebo installation instructions.Build the workspace:
# Source ROS distro's setup.bash source /opt/ros/<distro>/setup.bash # Build and install into workspace cd ~/ws colcon build
[!TIP] The
ros_gzlibrary makes heavy use of templates which causes compilers to consume a lot of memory. If your build fails withc++: fatal error: Killed signal terminated program cc1plustry building withcolcon build --parallel-workers=1 --executor sequential. You might also have to setexport MAKEFLAGS="-j 1"before runningcolcon buildto limit the number of processors used to build a single package.
ROSCon 2022
Project Template
関連プロジェクトを探す
読み込み中…
