> For the complete documentation index, see [llms.txt](https://www.learnros2.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.learnros2.com/ros/ros2-building-blocks/configurations/rviz-configuration.md).

# Rviz Configuration

Manually configuring the Rviz every time a new instance is launched can be inconvenient. We can actually provide a configuration file when launching rviz. Here is [an example of the rviz config](https://github.com/gazebosim/ros_gz_project_template/blob/main/ros_gz_example_bringup/config/diff_drive.rviz) file.

Now the question is where to find the documentation about these parameters. The good news is we don't need to. After the rviz is configured, we can save the configuration.

<figure><img src="/files/tigJPGNx2llbA11rZRUd" alt=""><figcaption></figcaption></figure>

To specify the rviz config file in a python launch file, we can use the syntax below:

```python
rviz = Node(
    package="rviz2",
    executable="rviz2",
    condition=IfCondition(LaunchConfiguration("rviz")),
    arguments=["-d", path.join(bringup_package, "config", "slam_and_nav_v1.rviz")]
)
```
