Ask Your Question
0

Echoing custom messages over SSH error

asked 2016-01-12 18:30:01 -0500

djsw gravatar image

I have a node running on an embedded platform publishing a custom message (just a float32[]). I have a ros master running on a different machine, and both ROS_MASTER_URIs and ROS_IPs are set correctly. On the master machine, if I run rostopic echo <topic>, I get:

 ERROR: Cannot load message class for [<package>/<msg>]. Are your messages built?

If I ssh into the embedded platform and run a rostopic echo <topic>, I get the data printed out.

I think I understand why it's not working - I haven't sourced the workspace on the embedded platform from the master - but I don't know the solution to this problem, since I want to be able to run nodes on multiple platforms, including the master.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-01-12 22:02:07 -0500

updated 2016-01-12 22:04:49 -0500

You should source or install the custom message on the master machine. If it was std_msgs, it would be installed on both but a custom message would not be found on the master machine as the warning says.

edit flag offensive delete link more

Comments

I made a package specifically to hold the message I was using, then copied it across to my master and built the package (i.e., "install the custom message on the master machine"). This fixed the problem.

djsw gravatar imagedjsw ( 2016-01-13 00:11:41 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-01-12 18:30:01 -0500

Seen: 209 times

Last updated: Jan 12 '16