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

how to echo custom-defined message remotely?

asked 2018-03-22 12:22:51 -0500

chanhyeoni gravatar image

There are two machines, A and B, connected via Ethernet cable, and their connections are established. One of the ROS package implemented at the machine A has custom messages, and I would like it to be read at the machine B by using the command rostopic echo <topic-name>.

When I typed the command, I got the following error message.

ERROR: Cannot load message class for [<message-name>]. Are your messages built?

Does this mean that I have to build the custom message at the machine B as well? If so, how?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-03-22 14:12:21 -0500

gvdhoorn gravatar image

Does this mean that I have to build the custom message at the machine B as well?

That would be the most straightforward way, yes.

If so, how?

Exactly the same way as you built the package on machine A:

  • create a Catkin workspace
  • copy the sources of the package that contains your msg definitions to machine B
  • catkin_make
  • `source devel/setup.bash

rostopic should now be able to find your message definitions.

edit flag offensive delete link more


Note that a convenient way to share sources of packages between multiple machines would be use a VCS like git, svn or hg.

gvdhoorn gravatar image gvdhoorn  ( 2018-03-22 14:13:27 -0500 )edit

Question Tools

1 follower


Asked: 2018-03-22 12:22:51 -0500

Seen: 875 times

Last updated: Mar 22 '18