Gazebo | Ignition | Community
Ask Your Question

Custom message error

asked 2013-10-28 06:39:27 -0500

GuidoG gravatar image

Hi, why when I use a custm message and I try to see it with che command line "$gztopic echo [message]" I return this error message: "Unable to get message type for topic [message]?"

If I try to see the message with the GUI the error message is: "Unable to parse message of type [message_type]"

How I need to configure gazebo to understand my custom message?

thanks for all the answer

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-28 19:31:37 -0500

scpeters gravatar image

In order to understand your custom message type, gztopic and the Gazebo gui would need to be recompiled and linked with the protobuf headers from your custom message type. You can write your own tools the publish and subscribe to custom messages (see the tutorial), but the pre-compiled Gazebo tools won't be able to parse them.

Unless, of coure, you did something fancy with self-describing messages, but that's probably a lot of effort.

edit flag offensive delete link more


In few words it's nota automatic the parse of a custom message, like in ROS. Thanks for your answer!

GuidoG gravatar imageGuidoG ( 2013-10-30 05:16:25 -0500 )edit

In few words it's nota automatic the parse of a custom message, like in ROS.

GuidoG gravatar imageGuidoG ( 2013-10-30 05:16:26 -0500 )edit

Could please mark the answer as correct using the check button?

Jose Luis Rivero gravatar imageJose Luis Rivero ( 2013-10-30 09:22:12 -0500 )edit

I would love to have more information on to process to get Gazebo to compiler my custom message. Im trying to read the custom messages of in Gazebo Gui.

AlexandreB gravatar imageAlexandreB ( 2017-07-14 09:21:49 -0500 )edit

@scpeters does Gazebo 9 currently supports self-describing messages? For using them, is there anything we need to be aware on the Gazebo side? The idea is not having to recompile Gazebo but rather use custom plugins with custom messages that could use the Gazebo tools to parse them (including echoing using `gztopic -e <topic>`

Nuno Marques gravatar imageNuno Marques ( 2018-12-03 16:50:58 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2013-10-28 06:39:27 -0500

Seen: 937 times

Last updated: Oct 28 '13