> 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="https://442453138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWs42vVsGF012EH3SD2WG%2Fuploads%2F81TrkJbREEYgO4KpT9Kn%2Fimage.png?alt=media&amp;token=3a4b1744-9425-4be7-9d62-04d610f1db36" 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")]
)
```
