ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

create an executable with custom msgs

asked 2013-07-31 07:34:13 -0500

canatan gravatar image

updated 2013-11-14 12:30:46 -0500

tfoote gravatar image


I want to create a ros executable that uses a custom msg. I used catkin to make a package with a custom message. I ran catkin_make and copied the executable to another location the node seems to run fine (I put in print statements that are continuously executing). The topic I'm publishing is part of the rostopic list but when a rostopic echo mytopic results in the following: ERROR: Cannot load message class for mynode/mycustommsg. Are your messages built?

a rosmsg show mycustommsg shows the msg.

What should I be doing ?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-11 07:43:55 -0500

tfoote gravatar image

Make sure you are in the same environment for both rosmsg and rostopic.

And be careful about copying executables around. Many use shared libs and need the environment in which they were either built or isntalled.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-07-31 07:34:13 -0500

Seen: 227 times

Last updated: Oct 11 '13