A ROS 2 RViz2 plugin designed to visualize Doppler Velocity Log (DVL) data. This plugin specifically supports the marine_acoustic_msgs/msg/Dvl format, providing an intuitive way to monitor underwater vehicle velocity and beam data in a 3D environment.
- Velocity Vector Visualization: Renders the vehicle's velocity relative to the seafloor or water column.
- Beam Visualization: Displays individual DVL beams (transducer directions) as lines or cones.
- Real-time Data Updates: Subscribes to marine_acoustic_msgs/msg/Dvl topics and updates the display dynamically.
- Customizable Aesthetics: Adjust colors, scale, and line thickness directly from the RViz display panel.
This package requires a ROS 2 installation (Humble, Iron, or Jazzy recommended) and the marine_acoustic_msgs package.
Install dependencies (replace <ros-distro> with your version, e.g., humble)
sudo apt update
sudo apt install ros-\<ros-distro\>-marine-acoustic-msgs-
Clone the repository into your ROS 2 workspace:
cd \~/ros2\_ws/src git clone \[https://github.com/arihantb2/dvl\_rviz\_plugins.git\](https://github.com/arihantb2/dvl\_rviz\_plugins.git) -
Install dependencies using rosdep:
cd \~/ros2\_ws rosdep install \--from-paths src \--ignore-src \-r \-y -
Build the package:
colcon build \--packages-select dvl\_rviz\_plugins -
Source the workspace:
source install/setup.bash
-
Launch RViz2:
rviz2 -
In the Displays panel, click Add.
-
Under the By display type tab, look for dvl_rviz_plugins.
-
Select the DvlDisplay (or similar) and click OK.
-
Set the Topic to your DVL message topic (e.g., /dvl/data).
-
Ensure your Fixed Frame is set correctly (e.g., base_link or dvl_link) to see the visualization.
The plugin subscribes to:
- Type: marine_acoustic_msgs/msg/Dvl
- Description: This message includes velocity covariance, individual beam ranges, and velocities.
Contributions are welcome! If you encounter bugs or have feature requests, please open an issue or submit a pull request.
- Fork the Project
- Create your Feature Branch (
git checkout \-b feature/AmazingFeature) - Commit your Changes (
git commit \-m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Arihant Lunawat - GitHub Profile