You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: setup_guides/odom/setup_odom_gz.rst
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,9 +79,17 @@ Setup and Prerequisites
79
79
80
80
`Gazebo <http://gazebosim.org/>`_ 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 <https://gazebosim.org/docs/latest/ros_installation/>`_.
81
81
82
+
First, source your ROS 2 installation to set the environment variables:
Copy file name to clipboardExpand all lines: setup_guides/odom/setup_odom_gz_classic.rst
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,11 +77,17 @@ Setup and Prerequisites
77
77
78
78
`Gazebo <http://classic.gazebosim.org/>`_ 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 <http://classic.gazebosim.org/tutorials?cat=install>`_.
79
79
80
-
We also need to install the ``gazebo_ros_pkgs`` package to simulate odometry and control the robot with ROS 2 in Gazebo:
80
+
First, source your ROS 2 installation to set the environment variables:
Then install the ``gazebo_ros_pkgs`` package to simulate odometry and control the robot with ROS 2 in Gazebo:
87
+
88
+
.. code-block:: shell
89
+
90
+
sudo apt install ros-$ROS_DISTRO-gazebo-ros-pkgs
85
91
86
92
You can test if you have successfully set up your ROS 2 and Gazebo environments by following the instructions `given here <http://classic.gazebosim.org/tutorials?tut=ros2_installing&cat=connect_ros#TestingGazeboandROS2integration>`_.
Let us now configure the ``robot_localization`` package to use an Extended Kalman Filter (``ekf_node``) to fuse odometry information and publish the ``odom`` => ``base_link`` transform.
27
27
28
-
First, install the ``robot_localization`` package using your machines package manager or by executing the following command:
28
+
First, source your ROS 2 installation to set the environment variables:
Next, we specify the parameters of the ``ekf_node`` using a YAML file. Create a directory named ``config`` at the root of your project and create a file named ``ekf.yaml``. Copy the following lines of code into your ``ekf.yaml`` file.
Copy file name to clipboardExpand all lines: setup_guides/sdf/setup_sdf.rst
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,17 @@ SDF is a file format for simulators, like Gazebo, that describes the simulator e
15
15
16
16
We can also use our SDF with the robot_state_publisher using the following package. You will see how to do this in the tutorial below.
17
17
18
+
First, source your ROS 2 installation to set the environment variables:
19
+
20
+
.. code-block:: shell
21
+
22
+
source /opt/ros/<ros2-distro>/setup.bash
23
+
24
+
Then install the sdformat-urdf package:
25
+
18
26
.. code-block:: shell
19
27
20
-
sudo apt install ros-<ros2-distro>-sdformat-urdf
28
+
sudo apt install ros-$ROS_DISTRO-sdformat-urdf
21
29
22
30
This package contains a C++ library and urdf_parser_plugin for converting SDFormat XML into URDF C++ structures. Installing it allows one to use SDFormat XML instead of URDF XML as a robot description.
Copy file name to clipboardExpand all lines: setup_guides/sensors/mapping_localization.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,7 +165,7 @@ To be able to launch ``slam_toolbox``, make sure that you have installed the ``s
165
165
166
166
.. code-block:: shell
167
167
168
-
sudo apt install ros-<ros2-distro>-slam-toolbox
168
+
sudo apt install ros-$ROS_DISTRO-slam-toolbox
169
169
170
170
We will launch the ``async_slam_toolbox_node`` of ``slam_toolbox`` using the package's built-in launch files. Open a new terminal and then execute the following lines:
171
171
@@ -197,8 +197,8 @@ First, Make sure you have installed the Nav2 packages by executing the following
197
197
198
198
.. code-block:: shell
199
199
200
-
sudo apt install ros-<ros2-distro>-navigation2
201
-
sudo apt install ros-<ros2-distro>-nav2-bringup
200
+
sudo apt install ros-$ROS_DISTRO-navigation2
201
+
sudo apt install ros-$ROS_DISTRO-nav2-bringup
202
202
203
203
We will now launch Nav2 using the ``nav2_bringup``'s built-in launch file, ``navigation_launch.py`` . Open a new terminal and execute the following:
0 commit comments