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

compile node which uses messages defined in an other machine

asked 2016-05-07 08:45:39 -0500

jappoz gravatar image

Hello everybody I have a problem. I am using INDIGO. I am using as ROS MASTER my own account on my pc in communication with ROS running in a virtual machine. The problem is that I would like to subscribe a message which is defined in the nodes belonging to the virtual machine and not to my catkin folder. So basically when I compile trying to include such message, I get a compilation error saying that this package is not found. (Obviously, because it is defined in the virtual machine). Is there any workaround for that? Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-05-07 11:03:28 -0500

NEngelhard gravatar image

This is the reason why there are message-packages. If you have a package foo that contains a lot of algorithms, dependencies and message definitions, you should create a package foo-msgs that contains only the message-definitions. The original foo package then depends on this foo-msgs. In your case, you'd then only have to install the foo-msgs package on your machine so set up the communication.

edit flag offensive delete link more

Comments

1

Thank you. So I did and it worked fine.

jappoz gravatar image jappoz  ( 2016-05-12 08:54:02 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-05-07 08:45:39 -0500

Seen: 98 times

Last updated: May 07 '16