Visualize URDF(Unified Robot Description Format) file.
urdf_viz
is written by rust-lang.
It supports .obj
files as mesh format, but it can convert other files using meshlabserver
command
or assimp
command. Please install meshlab
and assimp
.
bash
$ cargo install urdf_viz
Install mesh converter commands
bash
$ sudo apt-get install meshlab assimp-utils
urdf_viewer
command will be installed by cargo.
bash
$ urdf_viewer URDF_FILE.urdf
It is possible to use xacro file directly.
It will be converted by rosrun xacro xacro
in urdf_viewer
.
bash
$ urdf_viewer XACRO_FILE.urdf.xacro
The default mesh converter is meshlabserver
. If you failed to convert mesh files,
try -a
option to use assimp
.
bash
$ urdf_viewer -a URDF_FILE.urdf
For other commands, please read -h
option.
bash
$ urdf_viewer -h
In the GUI, you can
Up
/Down
keyCtrl
+ Drag to move the angle of a joint[
and ]
Shift
+ Drag to use inverse kinematics(Y and Z axis)Shift
+ Ctrl
+ Drag to use inverse kinematics(Y and X axis),
and .
r
key to set random joints