Gazebo | Ignition | Community
Ask Your Question
0

Custom message error

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

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
1

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

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

Comments

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 -0600 )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 -0600 )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 -0600 )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 https://github.com/PX4/sitl_gazebo in Gazebo Gui.

AlexandreB gravatar imageAlexandreB ( 2017-07-14 09:21:49 -0600 )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 -0600 )edit

Question Tools

Stats

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

Seen: 1,445 times

Last updated: Oct 28 '13