0
$\begingroup$

Rosanswers logo

I am running Ubuntu 14.04 and indigo on my host computer. I want to visualize some rviz visualization markers on my remote laptop. However, I cannot install Ubuntu 14.04 on my laptop since some hardware problems (too new?kabylake). So I installed Ubuntu 16.04 and kinetic instead. However, when I subscribe to the same topic, I get this error:

[ERROR]: Client [/rviz_1493900002586455363] wants topic /prm_graph to have datatype/md5sum [visualization_msgs/Marker/4048c9de2a16f4ae8e0538085ebf1b97], but our version has [visualization_msgs/Marker/18326976df9d29249efc939e00342cde]. Dropping connection.

I checked that the message type both are "visualization_msgs/Marker". The only difference is those numbers and letters. Any idea why this is happening? I guess it is because the ROS version is different.


Originally posted by Tixiao on ROS Answers with karma: 130 on 2017-05-04

Post score: 2


Original comments

Comment by Tixiao on 2017-05-04:
BTW, the Rviz is running ok on another client computer that is installed with Indigo.

Comment by NEngelhard on 2017-05-04:
Your two system use different versions of the visualization_msgs/Marker (It was changed between Indigo and Kinetic)

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

I will pose the answer for myself. The reason is that the MD5Sum value for visualization markers is changed for different ROS distributions. Here are the steps to fix this problem (example: use Kinect rviz to display Indigo visualization markers)

  1. Find the MD5Sum for Indigo. (Go to /opt/ros/indigo/include/visualization_msgs/Marker.h, find the MD5Sum value, which is 18326976df9d29249efc939e00342cde)

  2. Change MD5Sum for Kinect. (Go to /opt/ros/Kinect/include/visualization_msgs/Marker.h, replace the MD5Sum with the value in Indigo distribution)

  3. Download Kinetic Rviz source files to your workspace and compile it. (The newly compiled Rviz will use this modified Marker.h file, which has Indigo's MD5sum, to compile)

Now you should have a re-compiled Kinetic version of Rviz to visualize markers that are sent from Indigo.


Originally posted by Tixiao with karma: 130 on 2017-05-09

This answer was ACCEPTED on the original site

Post score: 2


Original comments

Comment by George Petrogiannis on 2017-07-26:
Did you find a workaround for this?

Comment by Tixiao on 2017-07-26:
Hi George, the revised answer is updated above.

Comment by gvdhoorn on 2017-07-26:
This is really not a good idea, as your from-source RViz is now incompatible with all other 'normal' ROS installs. Also: editing files in /opt/ros/.. is not a good idea. For one thing, your changes will be overwritten next time ROS pkgs get updated.

$\endgroup$
0
$\begingroup$

Rosanswers logo

I had a similar problem and found a more robust solution that won't break your kinetic install.

In order to get kinetic to publish an indigo friendly visualization msgs marker, you can simply download the indigo branch of the common msgs git repo: https://github.com/ros/common_msgs/tree/indigo-devel

Then copy the visualization_msgs folder into your catkin workspace, do a catkin_make, and then your kinetic branch will publish an indigo compliant message (because your workspace packages override your installed packages)

To go back to the standard kinetic format, simply remove the visualization_msgs package from your workspace, delete build/ and devel/, then catkin_make again. No need to permanently break your kinetic install.


Originally posted by biglotusturtle with karma: 165 on 2018-09-06

This answer was NOT ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.