Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 52 additions & 3 deletions configuration/packages/configuring-loopback-sim.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,34 +86,68 @@ Parameters
============== ==============
Type Default
-------------- --------------
string 0.1
double 0.1
============== ==============

Description
The duration between publishing scan (in sec)

:odom_publish_dur:

============== ==============
Type Default
-------------- --------------
double <update_duration>
Comment thread
tonynajjar marked this conversation as resolved.
============== ==============

Description
The duration between publishing odometry (in sec). Defaults to ``update_duration``.

:publish_map_odom_tf:

============== ==============
Type Default
-------------- --------------
string true
bool true
============== ==============

Description
Whether or not to publish tf from ``map_frame_id`` to ``odom_frame_id``

:publish_scan:

============== ==============
Type Default
-------------- --------------
bool true
============== ==============

Description
Whether or not to publish a fake laser scan.

:publish_clock:

============== ==============
Type Default
-------------- --------------
string true
bool true
============== ==============

Description
Whether or not to publish simulated clock to ``/clock``

:speed_factor:

============== ==============
Type Default
-------------- --------------
double 1.0
============== ==============

Description
Speed factor for the simulated clock, e.g. ``2.0`` runs simulation at 2x wall time.
Only used when ``publish_clock`` is ``true``. Dynamically reconfigurable.

:scan_range_min:

============== ==============
Expand Down Expand Up @@ -181,6 +215,17 @@ Parameters
Whether to use ``inf`` for out-of-range values.
If ``false``, values are set to ``scan_range_max - 0.1`` instead.

:scan_noise_std:

============== ==============
Type Default
-------------- --------------
double 0.01
============== ==============

Description
Standard deviation of Gaussian noise added to scan ranges (in meters).

Example
*******
.. code-block:: yaml
Expand All @@ -192,9 +237,13 @@ Example
map_frame_id: "map"
scan_frame_id: "base_scan" # tb4_loopback_simulator.launch.py remaps to 'rplidar_link'
update_duration: 0.02
publish_scan: true
publish_clock: true
speed_factor: 1.0
scan_range_min: 0.05
scan_range_max: 30.0
scan_angle_min: -3.1415
scan_angle_max: 3.1415
scan_angle_increment: 0.02617
scan_use_inf: true
scan_noise_std: 0.01
13 changes: 13 additions & 0 deletions migration/Kilted.rst
Original file line number Diff line number Diff line change
Expand Up @@ -908,3 +908,16 @@ Earlier, `nav2_constrained_smoother` was using a cost formulation of :math:`cost
The internal squaring of `Ceres` is now considered and the cost formulation is corrected to :math:`cost = w_1 * cost_1^2 + w_2 * cost_2^2 + ...`. This makes the constrained smoother approximately 10x faster in testing and results in converged solutions and improved path quality. A detailed analysis of improvement is available in: `Issue #5072 <https://github.com/ros-navigation/navigation2/issues/5072#issuecomment-3992795987>`_

Values for the weights will need to be retuned for all users, unfortunately, but will get faster and more reliable results!

Nav2 Loopback Simulator converted to C++
-----------------------------------------
Comment thread
tonynajjar marked this conversation as resolved.
Outdated

`PR #6062 <https://github.com/ros-navigation/navigation2/pull/6062>`_ converts ``nav2_loopback_sim`` from Python to C++ for improved performance and consistency with the rest of the Nav2 stack.

Key changes:

- The ``clock_publisher`` is no longer a separate node. It is now embedded within the ``loopback_simulator`` node. Launch files that previously launched both nodes should be updated to launch only the ``loopback_simulator`` node.
- A new ``speed_factor`` parameter (default ``1.0``) controls the simulated clock speed (e.g. ``2.0`` for 2x). This parameter is dynamically reconfigurable.
- New parameters ``publish_scan``, ``odom_publish_dur``, and ``scan_noise_std`` are available.

See :ref:`configuring_loopback_sim` for full parameter documentation.
Loading