ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

This answer assumes that you've gone through the tutorials of configuring your ROS2 environment and setting up colcon_cd here:

colcon_cd by default finds your ROS2 package located in src/, which I assume is beneficial for your problem.

The command to launch RViz in ROS2 using ROS1 styling:

rviz2 -d $(colcon_cd your_package && pwd)/path/to/config.rviz


Note: Please let me know if this solution doesn't work out for you. If in case it does, feel free to upvote my answer. `