Skip to content

Software

moveit_visual_tools

By MoveIt, from github.com/moveit/moveit_visual_tools (opens in a new tab)

  • Robot arms and industry
  • Library
  • BSD-3-Clause

A C++ helper library for visualizing MoveIt data in Rviz, such as markers, trajectories, collision objects and robot states. It is built on top of rviz_visual_tools.

Facts

GitHub stars
173read on 28 Nov 2026
Last update
3 Aug 2026Newest commit on ros2
Maintenance
Maintaineda commit in the last 12 months
Difficulty
Intermediate

Checked on GitHub on 28 Nov 2026.

Licenses

Code
BSD-3-Clause (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit e5681a7 (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Displays basic Rviz geometric shapes via published markers.
  • Visualizes MoveIt collision objects, such as blocks, cylinders, trees, tables and walls.
  • Shows MoveIt and ROS trajectories, robot states and end effectors.
  • Provides interactive markers to move robot arms using inverse kinematics from remote applications.
  • Offers helpers for adding, removing and attaching collision objects in the planning scene.
  • Includes a demo launch file that shows robot states and collision objects in Rviz.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
BSD-3-Clause. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Maintained, last commit on 3 Aug 2026.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit e5681a7

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by MoveIt, at commit e5681a7, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

MoveIt Visual Tools

Helper functions for displaying and debugging MoveIt data in Rviz via published markers, trajectories, and MoveIt collision objects. It is sometimes hard to understand everything that is going on internally with MoveIt, but using these quick convenience functions allows one to easily visualize their code. This package is built in top of rviz_visual_tools (opens in a new tab) and all those features are included via class inheritance.

This package helps you visualize:

  • Basic Rviz geometric shapes
  • MoveIt collision objects
  • MoveIt and ROS trajectories
  • Robot states
  • End effectors
  • Interactive markers to move robot arms using IK from remote applications

Image (opens in a new tab)

This open source project was developed at PickNik Robotics (opens in a new tab). Need professional ROS development and consulting? Contact us at projects@picknik.ai (opens in a new tab) for a free consultation.

Status:
ROS:
ROS2:

Picture: screenshot.png

Picture: demo.png

ROS2 Install
Install From Source

Install moveit2 following the instructions here (opens in a new tab). After sourcing the moveit workspace clone this repository into a colcon workspace, import and install dependencies and build:

source ~/ws_moveit/install/setup.bash
cd $COLCON_WS/src
git clone -b ros2 https://github.com/ros-planning/moveit_visual_tools
vcs import < moveit_visual_tools/moveit_visual_tools.repos
rosdep install -r --from-paths . --ignore-src --rosdistro foxy -y
cd $COLCON_WS
colcon build --event-handlers desktop_notification- status- --cmake-args -DCMAKE_BUILD_TYPE=Release
Quick Start Demo

To run some demos displaying robot states and collision objects:

ros2 launch moveit_visual_tools demo_rviz.launch.py
Code API

See VisualTools Class Reference (opens in a new tab)

Usage

We'll assume you will be using these helper functions within a class.

Initialize

Add to your includes:

#include <moveit_visual_tools/moveit_visual_tools.h>

Add to your class's member variables:

// For visualizing things in rviz
moveit_visual_tools::MoveItVisualToolsPtr visual_tools_;

In your class' constructor add:

visual_tools_ = std::make_shared<moveit_visual_tools::MoveItVisualTools>(node_, "world", "/moveit_visual_tools");
Collision Object Functions

Helpers for adding and removing objects from the MoveIt planning scene. CO stands for Collision Object and ACO stands for Active Collision Object.

  • cleanupCO
  • cleanupACO
  • attachCO
  • publishCollisionBlock
  • publishCollisionCylinder
  • publishCollisionTree
  • publishCollisionTable
  • publishCollisionWall

And more...

Animate Trajectories

Higher level robot and trajectory functions

  • publishTrajectoryPath
  • publishTrajectoryPoint
  • publishRobotState
  • publishAnimatedGrasps
  • publishIKSolutions
Show parts of a robot

These functions are a little more complicated

  • publishEEMarkers
Parent Class

This class is built on top of rviz_visual_tools (opens in a new tab) so all features and documentation for that package apply here as well.

Developers Notes

Useful notes for anyone wanting to dig in deeper:

  • All poses are published with respect to the world frame e.g. /world, /odom, or maybe /base
  • All publish() ROS topics should be followed by a rclcpp::spin_some(node); but no sleep
  • Do not want to load any features/publishers until they are actually needed since this library contains so many components
Linting (pre-commit)

pre-commit is a tool that is used in moveit2_tutorials to check and apply style guidelines automatically. To install pre-commit into your system:

pip3 install pre-commit

Then under moveit2_tutorials directory install the git hooks like this:

cd $COLCON_WS/src/moveit2_tutorials && pre-commit install

With this pre-commit will automatically run and check a list of styling including clang-format, end of files and trailing whitespaces whenever you run git commit. To run pre-commit any time other than git commit:

cd $COLCON_WS/src/moveit2_tutorials && pre-commit run -a
Contribute

Please send PRs for new helper functions, fixes, etc!

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.