Ask Your Question
2

Missing joint_state_publisher_gui when l run display.launch

asked 2020-02-25 02:30:21 -0500

brodwix gravatar image

I created a new urdf from original universal-robot package and a 2 finger robotiq gripper (from stl). URDF seems to be ok when i use the check_urdf command but when i try to see the urdf in rviz:

$roslaunch ur5_with_measurement_tool display.launch

I get this error

$Could not find the GUI, install the 'joint_state_publisher_gui' package

Which package would provide me this?

I installed ros melodic from apt I installed universal_robot package and ur-robot-driver from git

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
7

answered 2020-02-25 04:43:54 -0500

gvdhoorn gravatar image

updated 2020-02-26 08:19:24 -0500

A recent PR (ros/joint_state_publisher#31) split the GUI parts of the JSP from the non-GUI parts.

This was done to avoid depending on GUI libraries in the non-GUI ROS metapackages (those defined in REP-142 and REP-150). This facilitates deployments of ROS on robots, as it avoids pulling in all sorts of GUI libraries when they are not needed.

To fix the error you would have to make sure to install the joint_state_publisher_gui package. On Ubuntu/Debian (and other OS for which .deb packages are available and apt is used), you could do that with the following command:

sudo apt update
sudo apt install ros-<your_ros_version>-joint-state-publisher-gui

Make sure to replace <your_ros_version> with the code name of the ROS version you are using. So for Kinetic, replace it with kinetic. For Melodic, replace it with melodic.

The first command is to make sure you've downloaded up-to-date package indices.

The second command actually installs the package.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-02-25 02:30:21 -0500

Seen: 1,006 times

Last updated: Feb 26