Skip to main content
🤝

이 가이드는 인류와 AI가 함께 만드는 지식입니다.

이 콘텐츠는 Human + AI Partnership 철학 아래 모든 사람이 로봇·AI를 배울 수 있도록 무료로 제공됩니다. 당신의 질문과 기여가 다음 학생의 미래를 바꿉니다.

ROS 2 RViz Visualization Guide 2026

RViz is the primary visualization tool for ROS 2. This guide covers configuration, custom plugins, visualizing sensor data, markers, and debugging robot systems.

Launching RViz

ros2 run rviz2 rviz2 ros2 run rviz2 rviz2 -d my_config.rviz from launch_ros.actions import Node rviz_node = Node( package="rviz2", executable="rviz2", arguments=["-d", "/path/to/config.rviz"])

Display Plugins

TF/Frames: Coordinate frames and transformations

LaserScan: Point clouds from lidar sensors

Camera: Camera feed from image topics

Markers: Custom shapes/text visualization

Robot Model: Display URDF with transforms

Custom Markers

from visualization_msgs.msg import Marker marker = Marker() marker.header.frame_id = "base_link" marker.type = Marker.SPHERE marker.pose.position.x = 1.0 marker.scale.x = marker.scale.y = marker.scale.z = 0.1 marker.color.r = 1.0 marker.color.a = 1.0 pub.publish(marker)

Configuration Tips

Save configuration: File → Save Config As Load configuration: File → Open Config Common displays: - RobotModel: URDF visualization - TF: Coordinate frames - LaserScan: Point cloud data - Image: Camera feed - Odometry: Robot path history

Next Steps

  • Save RViz configurations for different setups.
  • Create custom marker publishers for debugging.
  • Use RViz for motion planning visualization.