From d000da7862712699c55606987b5c22244a4c3631 Mon Sep 17 00:00:00 2001 From: YASVANTH S <83586632+Yasvanth-S@users.noreply.github.com> Date: Wed, 28 May 2025 16:54:11 +0530 Subject: [PATCH] Changed the links for Gazebo classic. --- setup_guides/odom/setup_odom_gz_classic.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup_guides/odom/setup_odom_gz_classic.rst b/setup_guides/odom/setup_odom_gz_classic.rst index 9fabe53ca1..f5e57a7835 100644 --- a/setup_guides/odom/setup_odom_gz_classic.rst +++ b/setup_guides/odom/setup_odom_gz_classic.rst @@ -75,7 +75,7 @@ As an overview for this section, we will first setup Gazebo and the necessary pa Setup and Prerequisites ======================= -`Gazebo `_ is a 3D simulator that allows us to observe how our virtual robot will function in a simulated environment. To start using Gazebo with ROS 2, follow the installation instructions in the `Gazebo Installation Documentation `_. +`Gazebo `_ is a 3D simulator that allows us to observe how our virtual robot will function in a simulated environment. To start using Gazebo with ROS 2, follow the installation instructions in the `Gazebo Installation Documentation `_. We also need to install the ``gazebo_ros_pkgs`` package to simulate odometry and control the robot with ROS 2 in Gazebo: @@ -83,19 +83,19 @@ We also need to install the ``gazebo_ros_pkgs`` package to simulate odometry and sudo apt install ros--gazebo-ros-pkgs -You can test if you have successfully set up your ROS 2 and Gazebo environments by following the instructions `given here `_. +You can test if you have successfully set up your ROS 2 and Gazebo environments by following the instructions `given here `_. Note that we described ``sam_bot`` using URDF. However, Gazebo uses `Simulation Description Format (SDF) `_ to describe a robot in its simulated environment. Fortunately, Gazebo automatically translates compatible URDF files into SDF. The main requirement for the URDF to be compatible with Gazebo is to have an ```` element within each ```` element. This requirement is already satisfied in the URDF file of ``sam_bot``, so it can already be used in Gazebo. .. seealso:: - For more information on how to use URDF in Gazebo, see `Tutorial: Using a URDF in Gazebo `_. + For more information on how to use URDF in Gazebo, see `Tutorial: Using a URDF in Gazebo `_. Adding Gazebo Plugins to a URDF =============================== -We will now add the IMU sensor and the differential drive plugins of Gazebo to our URDF. For an overview of the different plugins available in Gazebo, have a look at `Tutorial: Using Gazebo plugins with ROS `_. +We will now add the IMU sensor and the differential drive plugins of Gazebo to our URDF. For an overview of the different plugins available in Gazebo, have a look at `Tutorial: Using Gazebo plugins with ROS `_. -For our robot, we will be using the `GazeboRosImuSensor `_ which is a SensorPlugin. A SensorPlugin must be attached to a link, thus we will create an ``imu_link`` to which the IMU sensor will be attached. This link will be referenced under the ```` element. Next, we will set ``/demo/imu`` as the topic to which the IMU will be publishing its information, and we will comply with `REP145 `_ by setting ``initialOrientationAsReference`` to ``false``. We will also add some noise to the sensor configuration using Gazebo's `sensor noise model `_. +For our robot, we will be using the `GazeboRosImuSensor `_ which is a SensorPlugin. A SensorPlugin must be attached to a link, thus we will create an ``imu_link`` to which the IMU sensor will be attached. This link will be referenced under the ```` element. Next, we will set ``/demo/imu`` as the topic to which the IMU will be publishing its information, and we will comply with `REP145 `_ by setting ``initialOrientationAsReference`` to ``false``. We will also add some noise to the sensor configuration using Gazebo's `sensor noise model `_. Now, we will set up our IMU sensor plugin according to the description above by adding the following lines before the ```` line in our URDF: